This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

hierarchical B frames or B-pyramid
#2
Okay, a few things,...
  • Sure, the gop size limits the number of potential gain from b-pyramids, but:
    • you usually don't encode with a fixed gop size (you either let the encoder decide to use gop sizes up to a limit, or you let it decide for itself without a limit)
    • A b-pyramid of level 1 requires 2-bframes, level 2 requires 3-4 b-frames and level 3 7+. So by liming the number of b-frames you also limit theoretical max level of the pyramid. It rarely makes sense to use too many b-frames or too high of a b-pyramid.
  • Your OBS parameters, seem strange:
    • vbv values will be ignored by x264 unless a level and profile is also configured. (this was years ago and afaik. this has never changed)
    • using opencl is a bad idea, since it will be slower and less quality than using the cpu (it basically was declared useless in the way it exists nowadays in x264 unless in some rare cases on 15+years old hardware)
    • 'filler' usually makes no sense unless you use some ancient editing or streaming software/hardware.
  • NVEnc and b-pyramid with ffmpeg: '-b_ref_mode <mode>' is probably the value you want to use.
    iirc:
    The -b_ref_mode:v option in FFmpeg's NVENC encoder supports the following values:
    • disabled (0): B-frames will not be used for reference
    • each (1): Each B-frame will be used for reference
    • middle (2): Only (number of B-frames)/2 will be used for reference
    Also note that this is only supported for H.265 (hevc_nvenc), and like mentioned before for middle mode, you need at least -bf 2 (2 B-frames) and -refs 3 (3 reference frames).

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Messages In This Thread
RE: hierarchical B frames or B-pyramid - by Selur - 15.04.2025, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)