@snacks ffmpeg -i input.mp4 -c:a libopus -pix_fmt yuv420p10 -c:v librav1e -qp 50 -speed 3 -movflags +faststart output.mp4
try replacing -c:v librav1e -qp 50 -speed 3 with -c:v libsvtav1 -preset:v 5 -crf 28if that’s way too slow for you. also-vf scale=-8:1080` (or 720) before the output file for downscaling if you want
@snacks (sorry typo’d libopus) (yes i memorized this stuff)
@snacks ffmpeg defaults get you bad quality and don’t allow faststart with mp4 streaming fwiw
🔜fosdem
@lanodan @snacks yeah that was added to have a replacement for mencoder that isn’t completely terrible
libmpv is actually what i’d recommend if you want a high-level API for this because it’s very simple to use and supports most of the things you might do with the ffmpeg command line tool. also i wrote a luajit ffi wrapper on a weekend years ago for a frontend that some colleagues are using to run specific video processing tasks from within the subtitle editor that we use, and it has not been affected by API breakage at all since then
@icedquinn @snacks @lanodan ffmpeg basically grew out of mplayer/mencoder