Question / Help Meet YouTube's recommended GOP?

vencabot

Member
YouTube recommends a GOP of half the frame-rate (30 GOP for 60fps video, etc.). In my limited understanding, this would mean a keyframe interval, in seconds, of 0.5s (two keyframes per second). However, it seems that OBS Studio's GUI will only accept whole seconds as a keyframe interval.

Is it possible, while using the NVENC encoder, to meet YouTube's recommend GOP?

Thank you for your help.
 

Sapiens

Forum Moderator
@TryHD He's talking about video uploads rather than streaming.

@vencabot You'll probably want to run the recording through a program like Handbrake instead. This not only lets you meet the encoding recommendations but also lets you perform way more compression on the video than you could while recording in real time. If you absolutely positively have to upload the raw OBS output then I'm not sure if NVENC can do it; x264 could by manually setting the keyint custom param to half of your frame rate.
 

vencabot

Member
@TryHD He's talking about video uploads rather than streaming.

@vencabot You'll probably want to run the recording through a program like Handbrake instead. This not only lets you meet the encoding recommendations but also lets you perform way more compression on the video than you could while recording in real time. If you absolutely positively have to upload the raw OBS output then I'm not sure if NVENC can do it; x264 could by manually setting the keyint custom param to half of your frame rate.

Thank you, Sapiens. That's what I was afraid of, since the NVENC UI doesn't support custom params. I've used and love Handbrake, but, now that I'm recording and uploading ~40 hours per week, I find there simply isn't enough time in a day -- literally -- to process all of the video. I upload on a friend's fiber internet, so file size and bandwidth become non-issues, and the video processing time becomes the bottleneck, haha, so I just use what comes out of OBS.

[EDIT] Also, although I'm no expert on video compression, it seems to me like keyframes would need to be a part of the recording process (rather than post-processing), right? If the keyframes are what follow-up frames are compared to as a basis for compression, it seems like, if the keyframes aren't saved during recording, there'd be no way to losslessly 'recover' them via processing the video.

But maybe I'm way off-base, since my understanding is very limited. I'd just heard keyframes be compared to image files, and the rest of the (compressed) video data in the 'group of pictures' is based on (compared to) that image, which is why video with a very long interval between keyframes has a growing blurriness after each keyframe that then visibly 'pulses' back to clarity at the next keyframe. It seems to me, then, that handbrake would be able to remove keyframes, but adding keyframes (by specifying a lower keyint than the original recording) wouldn't really improve the quality of the video, right?

[EDIT] Oh, it IS possible to use NVENC via the Custom Output (FFMPEG) output in OBS Studio. I'm a noob. So, there's probably some way to set the GOP in sub-second intervals, there. I'll have a look at it.
 
Last edited:
Top