ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

Not adding subtitles into video

Open sampathkumar7 opened this issue 2 years ago • 3 comments

(async () => { await ffmpeg.load(); ffmpeg.FS('writeFile', 'videoplayback.mp4', await fetchFile('./videoplayback.mp4')); ffmpeg.FS('writeFile', 'subs.ass', await fetchFile('./subs.ass')); await ffmpeg.run('-y','-i', 'videoplayback.mp4', '-vf', "subtitles=subs.ass", "-c:a", "copy", "out_bwf.mp4"); await fs.promises.writeFile('out_bwf.mp4', ffmpeg.FS('readFile', 'out_bwf.mp4')); process.exit(0); })();

sampathkumar7 avatar Jul 07 '23 09:07 sampathkumar7

mark

huanghaiyang avatar Oct 10 '23 13:10 huanghaiyang

Working fine for others when done correctly. #588

LostBeard avatar Oct 10 '23 13:10 LostBeard

hi, did you mention can't find selected font provider when adding subtitles

syjf avatar Apr 15 '24 06:04 syjf