-
Notifications
You must be signed in to change notification settings - Fork 985
[WIP] Add the transcoding chapter #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Vassilis helped me through the mailling list to fix the wrong time / frame rate transcoding problem (ffprobe was shoing 60.11), you must set explicitly the |
In order to solve the + av_opt_set(encoder_context->codec_context[index]->priv_data, "x264opts", "vbv-maxrate=3000000:vbv-bufsize=3000000:keyint=60:min-keyint=60:scenecut=-1", 0);
+
+ encoder_codec_context->rc_min_rate = 3000000;
+ encoder_codec_context->rc_max_rate = 3000000;
+ encoder_codec_context->rc_buffer_size = 3000000;
+ encoder_codec_context->rc_max_available_vbv_use = 3000000;
+ encoder_codec_context->rc_initial_buffer_occupancy = 3000000;
+
+ encoder_codec_context->profile = FF_PROFILE_H264_HIGH_422;
+ encoder_codec_context->level = 51; |
it seems that the x264 message |
The message |
People at doom9 continue to help and now I'm digging further to understand if it's a timing issue, in fact there are some timing parameters that are different from the decoder to the encoder.
|
But the messages |
Command line output:
|
tasks/issues to be done
The chapter will demonstrate how to transcoding using libav/ffmpeg. Things we need to be done/fixed before:
MB rate (125337600) > level limit (2073600)
while transcoding h264 (thanks doom9 people)forced frame type (3) at 141 was changed to frame type (1)
while transcoding h264specified frame type (5) at 120 is not compatible with keyframe interval
while transcoding h265min_keyint
for h264 not being properly handled (it happens also on command line)long explanation
While I'm doing this chapter I'm also trying to understand some issues I found although the main examples seems to be okay, aka the
vlc
is playing it fine:But anyway here are my doubts:
ffprobe
is showing 60.11 fps butmediainfo
is showing 60.000fps while the original video has fixed 60fps, why this usually happens? (could be the 250 gop conversion?)MB rate (125337600) > level limit (2073600)
andforced frame type (3) at 141 was changed to frame type (1)
should I be worried about them? or are they just warning because I changed the GOP structure?specified frame type (5) at 120 is not compatible with keyframe interval
what does it means?