i wanna learn how to do Constrained encoding (VBV / maximum bit rate) encoding
but i dont understand maxrate and bufsize
i saw this post but its still confusing
https://superuser.com/questions/945413/how-to-consider-bitrate-maxrate-and-bufsize-of-...-video-for-web
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 8 of 8
Thread
-
Anonymous543Guest
-
From the ffmpeg wiki:
-b:v: specifies the target (average) bit rate for the encoder to use
-minrate specifies a minimum tolerance to be used
-maxrate specifies a maximum tolerance. this is only used in conjunction with bufsize
-bufsize specifies the decoder buffer size, which determines the variability of the output bitrate
bufsize specifies how often you compare the current bitrate to the desired average bitrate (-b:v).
Consider this command line from the wiki as well:
ffmpeg -i input -c:v libx264 -b:v 2M -maxrate 2M -bufsize 1M output.mp4
-maxrate 2M says don't exceed 2M (avg) when encoding
-bufsize 1M tells the encoder to check every 1M to see if the current bitrate matches the average bitrateLast edited by blud7; 24th Feb 2022 at 14:02.
-
Anonymous543Guest
Shall I use this one Constrained encoding (VBV / maximum bit rate) rate control mode or 2 pass rate control mode or any other mode(suggest) for rencoding movies and other multimedia
Am..thinking to make a website for movies and other multimedia contents ,where people can download good quality movies and other multimedia in good quality at low file size..
So which rate control mode will be good?
Am targeting filesize(bitrate) that's why am not considering crf or constant qp modesLast edited by Anonymous543; 25th Feb 2022 at 11:53.
-
I don't see any reason to use VBV encoding for downloadable files. Or bitrate based encoding. Why should a movie of mostly still shots and little noise (ie, easily compressible) be encoded with the same bitrate as another movie with lots of action, grain, smoke, flickering lights, etc. (ie, difficult to compress)? If you use high bitrates for all you're wasting bitrate on the easily compressed movies. If you use low bitrates for all the action movies are going to look bad. But if you must use bitrate based encoding you should use 2-pass encoding. Single pass bitrate based encoding delivers lower quality overall.
-
Anonymous543Guest
for reasonable download file size and quality
i will change bitrates according to action and video resolution
with -b:v we specify only target filesize i guess..so may be what if it increases too much during complex sections? what if bitrates goes much higher(during playback) then hardware's read write speed or processing speed?
btw am asking this questions because i am lil curious.. in current genration may be this kind of situations dont happen much or rarely happens -
You don't need bitrate based encoding for that. CRF and 2-pass VBR deliver about the same quality when the bitrates match.
That's exactly what CRF encoding is for. You specify the quality you want and you get exactly the right bitrate needed to deliver that quality.
VBV is really only an issue with disc based playback -- DVD and Blu-ray. The limited transfer rate from the disc to the decoder, and the limited amount of memory within the player will cause problems if the bitrate spikes too high for too long. But that's usually not an issue until you get into Blu-ray bitrates (20 to 30 Mb/s). If you're shooting for small file sizes that's not going to be an issue for you.
Similar Threads
-
Using Virtualdub What is the Best Codec to Capture and Best Codec to Save?
By mjgreer in forum Newbie / General discussionsReplies: 31Last Post: 11th Sep 2024, 08:01 -
Scaling down h264 video for joining with another h264 video
By JamNujo in forum Video ConversionReplies: 1Last Post: 3rd May 2019, 17:57 -
Relation between bufsize and maxrate(minrate)
By TheFunkyDude in forum Video ConversionReplies: 1Last Post: 11th Sep 2017, 09:55 -
Handbrake increase vbv-maxrate ?
By Hanted in forum Video ConversionReplies: 0Last Post: 31st May 2017, 10:19 -
using virtualdub to batch process deshaking, saving using h264 codec
By seanincali in forum EditingReplies: 7Last Post: 31st Mar 2017, 11:38