Re:Show HN: WebAssembly and ffmpeg = Quick clip, overlay, re...
by felixfbecker on Thursday March 25, 2021 @04:23PM
(#26584906)
I use this command I found on SO (was the first Google result): https://video.stackexchange.com/a/28276
ffmpeg -i input.mp4 -b:v 0 -crf 30 -pass 1 -an -f webm /dev/null
ffmpeg -i input.mp4 -b:v 0 -crf 30 -pass 2 output.webm
Making it two passes seems to be important for WEBM according to the post. It has worked well for me so far, but I need to look it up every time.
Re:Show HN: WebAssembly and ffmpeg = Quick clip, overlay, re...
by shakna on Thursday March 25, 2021 @01:25PM
(#26582945)
I use the very basic:
ffmpeg -i FILE -codec:v libvpx-vp9 -qscale:v 0 -codec:a libvorbis -qscale:a 0 FILE.webm
And end up with really good results out the other end. When I was rendering with pre-VP9 I needed a few more flags (stuff like crf) to maintain quality, but this works fine for most things. And has been really impressive on the filesize side of things.
We're trying to keep this tool super simple for our end users, but I think we might be able to add a webm preset.
If you'd like me to look into it, drop me an email: andrew@<domain in link> and show me a sample command :)