[FFmpeg-user] Some parameters are not included while encoding

Hardik Sharma hardik.sharma22 at yahoo.com
Wed Jun 22 20:53:13 CEST 2011


Hi guys,

I selected some parameters like slice-size-max, bframes/bf but they are not coming right in vstats and passlog files. Please let me know if I am doing anything wrong. Following are the commands i m using for encoding-
ffmpeg -y -s 720x480 -b 256k -r 30 -pix_fmt yuv420p -f rawvideo -i akiyo_720x480.yuv -pass 1 -vcodec libx264 -y -b 256k -r 30 -preset fast -s 720x480 -flags +loop -cmp +chroma -flags2 -fastpskip -partitions +parti4x4+partp8x8+partb8x8+parti8x8+partp4x4 -chromaoffset 0 -b_qfactor 0.45 -flags2 +wpred -subq 8 -flags2 +mixed_refs -flags2 +dct8x8 -me_range 32 -me_method umh -sc_threshold 40 -trellis 2 -vstats -i_qfactor 0.71 -qcomp 0.5 -rc_eq 'blurCplx^(1-qComp)' -level 40 -flags2 +bpyramid -bidir_refine 1 -refs 6 -qmin 5 -qmax 35 -bf 1 -x264opts bframes=1 -x264opts slice-max-size=800 -deinterlace -f h264 -mbd 1 -psnr -x264opts intra-refresh=20 -bf 1 -tune psnr -x264opts keyint=20 -deblockalpha 0 -deblockbeta 0 -threads 0 /dev/null

But the log files(vstats) are telling me- 
frame=     5 q= 32.0 PSNR=    inf f_size=  14452 s_size=       14kB time= 0.167 br=  3468.5kbits/s avg_br=   693.7kbits/s type= I
frame=     6 q= 34.0 PSNR=    inf f_size=    340 s_size=       14kB time= 0.200 br=    81.6kbits/s avg_br=   591.7kbits/s type= P
frame=     7 q= 34.0 PSNR=    inf f_size=     35 s_size=       14kB time= 0.233 br=     8.4kbits/s avg_br=   508.4kbits/s type= B
frame=     8 q= 34.0 PSNR=    inf f_size=     24 s_size=       15kB time= 0.267 br=     5.8kbits/s avg_br=   445.5kbits/s type= B
frame=     9 q= 34.0 PSNR=    inf f_size=     26 s_size=       15kB time= 0.300 br=     6.2kbits/s avg_br=   396.7kbits/s type= B
frame=    10 q= 34.0 PSNR=    inf f_size=    339 s_size=       15kB time= 0.333 br=    81.4kbits/s avg_br=   365.2kbits/s type= P
frame=    11 q= 34.0 PSNR=    inf f_size=    165 s_size=       15kB time= 0.367 br=    39.6kbits/s avg_br=   335.6kbits/s type= B
frame=    12 q= 34.0 PSNR=    inf f_size=     30 s_size=       15kB time= 0.400 br=     7.2kbits/s avg_br=   308.2kbits/s type= B
frame=    13 q= 34.0 PSNR=    inf f_size=     88 s_size=       15kB time= 0.433 br=    21.1kbits/s avg_br=   286.1kbits/s type= B
frame=    14 q= 34.0 PSNR=    inf f_size=    669 s_size=       16kB time= 0.467 br=   160.6kbits/s avg_br=   277.2kbits/s type= P
frame=    15 q= 34.0 PSNR=    inf f_size=    106 s_size=       16kB time= 0.500 br=    25.4kbits/s avg_br=   260.4kbits/s type= B
frame=    16 q= 34.0 PSNR=    inf f_size=     60 s_size=       16kB time= 0.533 br=    14.4kbits/s avg_br=   245.0kbits/s type= B
frame=    17 q= 34.0 PSNR=    inf f_size=     67 s_size=       16kB time= 0.567 br=    16.1kbits/s avg_br=   231.5kbits/s type= B
frame=    18 q= 34.0 PSNR=    inf f_size=    761 s_size=       17kB time= 0.600 br=   182.6kbits/s avg_br=   228.8kbits/s type= P
frame=    19 q= 34.0 PSNR=    inf f_size=    232 s_size=       17kB time= 0.633 br=    55.7kbits/s avg_br=   219.7kbits/s type= B
frame=    20 q= 34.0 PSNR=    inf f_size=    104 s_size=       17kB time= 0.667 br=    25.0kbits/s avg_br=   210.0kbits/s type= B
frame=    21 q= 34.0 PSNR=    inf f_size=    156 s_size=       17kB time= 0.700 br=    37.4kbits/s avg_br=   201.8kbits/s type= B
frame=    22 q= 32.0 PSNR=    inf f_size=  13510 s_size=       30kB time= 0.733 br=  3242.4kbits/s avg_br=   340.0kbits/s type= I

And Pass log files are telling me-
#options: 720x480 fps=30/1 timebase=1/30 bitdepth=8 cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=1 weightp=1 keyint=20 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=20 rc=abr mbtree=1 bitrate=256 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:0.00
in:0 out:0 type:I dur:2 cpbdur:2 q:43.52 tex:27944 mv:12607 misc:5705 imb:1350 pmb:0 smb:0 d:- ref:;
in:4 out:1 type:P dur:2 cpbdur:2 q:50.43 tex:33 mv:59 misc:164 imb:0 pmb:5 smb:1345 d:- ref:0 ;
in:2 out:2 type:B dur:2 cpbdur:2 q:50.43 tex:0 mv:0 misc:144 imb:0 pmb:0 smb:1350 d:- ref:0 ;
in:1 out:3 type:b dur:2 cpbdur:2 q:50.43 tex:0 mv:0 misc:144 imb:0 pmb:0 smb:1350 d:- ref:0 ;
in:3 out:4 type:b dur:2 cpbdur:2 q:50.43 tex:0 mv:0 misc:144 imb:0 pmb:0 smb:1350 d:- ref:0 ;  

Where x264 is using totally different options like trellis is 0 bframes are 3 instead of 1 and no mention of slice-max- size and same for intra-refresh etc. Please let me know what you think. I really appreciate any suggestion or help. Thanks.

Regards,
Hardik Sharma   


More information about the ffmpeg-user mailing list