Re:Show HN: WebAssembly and ffmpeg = Quick clip, overlay, re...
by iudqnolq on Thursday March 25, 2021 @02:42PM
(#26583821)
Amy advice for someone trying to write code against the ffmpeg api for the first time? It's...esoteric and the "correct" way seems to be reading a bunch of ten year old blog posts by random uncertain people. Even the python binding devs have a disclaimer they aren't confident they understand everything they document, despite doing their best to read the source.
[ Parent
| on HN ]
Re:Show HN: WebAssembly and ffmpeg = Quick clip, overlay, re...
by Andrew_W on Thursday March 25, 2021 @02:50PM
(#26583901)
Oh, no, I have nothing there, sorry! haha
I'm using ffmpeg.wasm, it's basically ffmpeg compiled for the browser, and it's a simple layer where you basically treat it like the ffmpeg command, eg:
ffmpeg.run(['-i', 'input.gif', ..., 'output.gif').then(() => { // handle output file })
Re:Show HN: WebAssembly and ffmpeg = Quick clip, overlay, re...
by iudqnolq on Thursday March 25, 2021 @03:09PM
(#26584136)
Don't sell yourself short, the cli args aren't easier either.
Re:Show HN: WebAssembly and ffmpeg = Quick clip, overlay, re...
by Andrew_W on Thursday March 25, 2021 @03:33PM
(#26584419)
True! When I first started building a video creation app, I was flailing around with google searches to find snippets to use. It was such a relief to spend an hour reading ffmpeg docs to understand how it works.
And I'm still learning a ton :)