bufsize配合maxrate参数使用可控制编码时的码率波动,例如264的cbr恒定码率编码中,同时设置b:v maxrate minrate bufsize(前三个都是设置为1M,bufsize设置为50k,最后编码出来的码率波动最小996kbit/s,1001kbit/s)。bufsize is the "rate control buffer",即码率控制缓存。作用是每次达到bufsize大小,都是计算并调整到average平均码率。
4.2   deprecated pixel format used, make sure you did set range correctly
This is just a warning, not an error. You can safely ignore it when using ffmpeg from the command-line, and you don't have to fix anything.
The warning occurs when converting from a yuv420p source to JPEG, which makes ffmpeg choose yuvj420p as output format. That format is required for writing files with the mjpeg encoder.
These two pixel formats have different color ranges: the former is from 16–235, which is "limited range" (also called "MPEG" range), the latter defaults to 0–255, which is "full range". The warning is meant for using FFmpeg as a library in your own code (like here). See also the comments on this question.
defexecute_script(self): window = bpy.context.window screen = window.screen areas = [area for area in screen.areas if area.type == self.area_type] area = areas[0] iflen(areas) else screen.areas[0] prev_ui_type = area.ui_type area.ui_type = self.ui_type regions = [region for region in area.regions if region.type == 'WINDOW'] region = regions[0] iflen(regions) elseNone with ContextExecuterOverride(window=window, screen=screen, area=area, region=region) as override: self.script_content(override) area.ui_type = prev_ui_type