Kagami / ffmpeg.js

Port of FFmpeg with Emscripten
Other
3.29k stars 335 forks source link

can't concat webm files together #91

Closed rur0 closed 4 years ago

rur0 commented 4 years ago

I am attempting to concatenate two webm files as one and return it as a single file via browser. the arguments I provide: ["-f","concat", "-i","clips.txt", "-c","copy", "out.webm"] (mentioned files are in MEMFS).

When I try this with worker version, I get exit 1 and no error every time. When I try this with sync version, I get a corrupt webm file that cannot be opened

woranl commented 4 years ago

This works for me: arguments: ["-f", "concat", "-safe", "0", "-i", "l.txt", "-c", "copy", "out.webm"] Make sure you are using ffmpeg-worker-webm.js

Kagami commented 4 years ago
$ cat test/1.txt
file 'test.webm'
file 'test.webm'
$ test/ffwebm.js -f concat -i test/1.txt -c copy -y test/out.webm

works fine.