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.
+ Reply to Thread
Results 1 to 2 of 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
Similar Threads
-
ReFrames Encoding for MKV videos
By blinkmadden in forum Newbie / General discussionsReplies: 2Last Post: 19th Nov 2012, 22:55 -
FFmpeg Runtime error / FFmpeg git-df82454 32-bit Static (2012-10-03)
By MashedPotatoes in forum Newbie / General discussionsReplies: 5Last Post: 6th Oct 2012, 17:22 -
H.264 Reframes
By Calvin132 in forum Newbie / General discussionsReplies: 0Last Post: 18th Jun 2011, 17:36 -
Need to Remove Logo for a set time at a set place.
By Ensign in forum EditingReplies: 3Last Post: 11th Sep 2009, 15:39 -
x264, set quantizer to 10 and vary keyinterval to reach set target bitrate?
By frifox in forum Video ConversionReplies: 6Last Post: 20th Feb 2009, 15:59