VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. ffmpeg -i input.h264 -s 1280x720 -filter:v yadif -pix_fmt yuv420p -vcodec libx264 -preset slow -profile:v high -level:v 4.1 -aspect 16:9 -r 25 -trellis 2 -refs:v 2 -b:v 4500k -minrate 4500k -maxrate 4500k -bufsize 4500k -an -f mp4 -y out.mp4

    Hi I tried to set the ReFrames to 2 using the above command, but the output shown by MediaInfo is always ReFrames = 4 frames.


    I also tried "-x264opts ref=2", but still the ReFrames is always 4.


    How to set this using the right ffmpeg option?


    Thanks.
    Quote Quote  
  2. mediainfo doesn't read reference frames correctly - it reads the DPB size

    See the last post in this thread
    http://doom10.org/index.php?topic=1557.0



    MediaInfo is reading out the DPB size, not the number of reference frames.

    b-frames introduces 1 ref regardless of nr of b-frames
    b pyramid introduces 2 refs
    x264 ref as specified

    so to get 2 ref frames, disable b pyramid and set ref at 1
    so if you want mediainfo to say "ReFrames 2", add -refs 1 -x264opts b-pyramid=0
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!