[FFmpeg-user] What is option -level ?

Ulf Zibis Ulf.Zibis at gmx.de
Tue Feb 12 22:33:28 EET 2019

Am 12.02.19 um 19:42 schrieb Ted Park:
> Try searching for level on the page you linked, it is listed, along with syntax.

Ah, you mean to use "level" with hyphen, so "-level". This is poorly
described. But how to determine, if such option is meant for audio,
video or both?

> I think its name is the only practical explanation of its meaning, as I mentioned, it can be completely different for each codec.

Well, saying "Set the level option of the codec." IMHO would not be
superfluous. Also "codec-specific" would be better than "unknown".

In another option set of K9copy there is:
-b $VIDBRk -s $WIDTHx$HEIGHT -vf
-aspect $ASPECT -codec:v libx264 -level 30 -flags +loop+mv4 -cmp 256
-partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex
-subq 7 -trellis 1 -refs 5 -bf 3 -b-pyramid normal -weightb 1
-mixed-refs 1 -8x8dct 1 -coder 1 -me_range 16 -g 250 -keyint_min 25
-sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -pass $PASS
-passlogfile $PASSLOGFILE

Shouldn't it be "-flags pass1" instead "-pass 1"?
Are there other elements in that option set, which are bad syntax? E.g.
for -cmp I only see values like 'sad' in the ffmpeg docs, but not '256'.


More information about the ffmpeg-user mailing list