Comments (4)
One thing that I found is that it takes much longer if you don't copy the codecs. Try using the worker#run command with the -codec copy
argument after the input and before the output. This sped up my transcode times by by like 15x.
Example
await worker.run("-i in.mkv -codec copy out.mp4");
from ffmpeg.wasm.
This solves the problem: '-preset', 'ultrafast'
Example:
await ffmpeg.run("-i", "input. mkv", '-preset', 'ultrafast', "output.mp4");
from ffmpeg.wasm.
@birbe what's your benchmark for encoding 1 second video over ffmpeg.js?
from ffmpeg.wasm.
Use -codec copy
is one way to speed up. Also you can try to use other preset:
from ffmpeg.wasm.
Related Issues (20)
- Dual Pass (2 pass) does not work
- Playground throws: Uncaught (in promise) RuntimeError: memory access out of bounds HOT 6
- Enabling these two headers through nginx will block all third-party resources that the website is currently using. HOT 2
- I added text with FFmpeg, but Chinese characters are displayed incorrectly while English is displayed correctly
- Does ffmpeg. wasm not support Chinese? HOT 5
- When adding subtitles, prompt can't find selected font provider
- Did anyone encounter this issue when adding subtitles? HOT 2
- Deploying to server error: Missing download-assets.js
- Hi! I have built a collaborative video editor with ffmpeg wasm HOT 4
- support silk format
- Who has encountered this problem, which brother will help me
- 'Cross-Origin-Opener-Policy': 'same-origin', 'Cross-Origin-Embedder-Policy': 'require-corp' HOT 6
- Failed to load resource: net::ERR_REQUEST_RANGE_NOT_SATISFIABLE HOT 3
- load() error!!
- createDir error HOT 2
- load error
- When can ffprobe be used?ffprobe
- Upgrade to FFmpeg 6.x
- Memory error
- (bug/question) How to properly use one ffmpeg.exec() execution output as another's ffmpeg.exec() input? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg.wasm.