Skip to main content
Participant
December 25, 2019
Answered

Rendering H.264 with 2 consecutive B frames

  • December 25, 2019
  • 2 replies
  • 8663 views

Hello,

 

I want to render an H.264 project for youtube.

 

YouTube recommends "2 consecutive B frames" in the exports.

 

 

my project is 60fps so what setting i need to type in the "keyframe distance" to get this 2 consecutive B frames?

This topic has been closed for replies.
Correct answer Dave_LaRonde

Well, this is pretty easy. Open Adobe Media Encoder. There's a command to open an AE comp. Navigate to the project file, pick the right comp, and then use the YouTube compression preset. Hit the start button. AME takes care of it for you. 

2 replies

Community Expert
December 26, 2019

Dave hit the nail on the head. Until you completely understand video compression and video formats you really have no business messing with the presets. They are all set up and they will give you the best results almost all projects. It's pretty hard to improve on anything.

Participant
December 26, 2019

I understand tha you believe that the YT preset is using the correct "keyframe distance" value to output

2 consecutive B frames. I would like to learn more about it and want know how to calculate it.

Community Expert
December 27, 2019

My dear friend,

 

5+5 is 10 right?

 

there is no discussion about it.

 

the advanced render setting "keyframe distance" for h.264 is there to set the video structure right?

 

so what is the calculation to have a video at 2 consecutive B frames


The keyframe distance does not set the arrangement of the IBP frames. You are not clearly understanding the way the Media Encoder works or the purpose of the keyframes. Both the YouTube and the Vimeo presets produce perfectly compatible files for YouTube and Vimeo according to their standards. Their standards are pretty universal to all streaming services. YouTube and Vimeo both re-compress every video that is sent to them to prepare them for multiple data rate playback. Sending them a video that matches their recommendations does not mean that your original will be served up to users, it means that their system will do the least amount of damage to the file when they re-compress the file. Following their recommendations also will help your video be ready for distribution in less time.

 

Keyframes in the media encoder have nothing at all to do with the IBP compression. They are automatically set based on the frame rate and you should not mess with them unless you are trying to do something custom with the frame rate. Custom frame rates are not a good idea so that setting should not be messed with unless you are following a template for some kind of specialized media player. The frame rate also has nothing at all to do with IBP frames or their arrangement. IBBP is going to be the same for 23.976 or 24, or 25 or 29.97 or any other frame rate. You will get an intraframe compressed frame (the only one with all of the pixel and color data) then a pair of bi-directional predicted data (color predictions and luminance predictions) and then a predicted frame that is nothing more than a software prediction of where the colors are and where the detail has moved using the AME and there is nothing you can do to change that setting.

 

Let me say this one more time. The presets in the AME already send the right format video to the streaming services. There is nothing you can do in the AME to change the IBP cadence. That option does not exist. You are obsessing about a setting that you cannot change in the AME.

 

Check the User Guide. 

Dave_LaRonde
Dave_LaRondeCorrect answer
Inspiring
December 26, 2019

Well, this is pretty easy. Open Adobe Media Encoder. There's a command to open an AE comp. Navigate to the project file, pick the right comp, and then use the YouTube compression preset. Hit the start button. AME takes care of it for you. 

Participant
December 26, 2019

I understand tha you believe that the YT preset is using the correct "keyframe distance" value to output

2 consecutive B frames. I would like to learn more about it and want know how to calculate it.