Conversation
> 75 mb for 25s
someone give me good encoding setting please wtf
1
0
2
Edited 4 days ago

@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

1
0
1

@snacks (sorry typo’d libopus) (yes i memorized this stuff)

1
0
2
@mia i got it down to 9mb with just not specifying anything but i'll bookmark this ty
1
0
0

@snacks ffmpeg defaults get you bad quality and don’t allow faststart with mp4 streaming fwiw

1
0
3
@mia @snacks Kind of thing that sometimes makes me wish there would be ways to pick ~modern defaults or have things like profiles.
1
0
1

@lanodan @snacks mpv supports encoding profiles fwiw

1
0
2
@mia @snacks One can encode with mpv?

(Reminds me of mencoder, wow that brings me back)
2
0
0

@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

0
0
2
@lanodan @snacks @mia in the long lost days before everyone realized no use case found for encoders other than ffmpeg blabcat
1
0
1

@icedquinn @snacks @lanodan ffmpeg basically grew out of mplayer/mencoder

0
0
0