Skip to content
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

transcoding: fix encoder time_base again #602

Closed
wants to merge 1 commit into from

Conversation

stbenz
Copy link
Contributor

@stbenz stbenz commented Feb 25, 2015

Apparently my last push request still had an error in it.

It was missing the ticks_per_frame, which is usually 2 when decoding h264 or mpeg2 but by default set to 1 in encoder context.

I also changed it to use framerate instead of time_base from decoder context to calculate time_base for encoder context, as reading time_base from decoder context is marked deprecated and will probably be removed in a future version of ffmpeg.

@perexg
Copy link
Contributor

perexg commented Mar 9, 2015

Merged. Thanks.

@perexg perexg closed this Mar 9, 2015
@stbenz stbenz deleted the transcoding-fixes branch March 9, 2015 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants