ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
14.01k stars 816 forks source link

Not adding subtitles into video #515

Open sampathkumar7 opened 1 year ago

sampathkumar7 commented 1 year ago

(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); })();

huanghaiyang commented 11 months ago

mark

LostBeard commented 11 months ago

Working fine for others when done correctly. #588

syjf commented 4 months ago

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