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

Better handling of "non-monotonically increasing dts to muxer" errors #227

Open
1 of 3 tasks
jailuthra opened this issue Apr 12, 2021 · 0 comments
Open
1 of 3 tasks
Labels

Comments

@jailuthra
Copy link
Contributor

jailuthra commented Apr 12, 2021

Transcoding fails semi-frequently with:

[mpegts @ 0x7f277c4fb880] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 181812 >= 181812
ERROR: transcoder.c:267] Error encoding : Invalid argument

TODO:

  • Find root-cause

This is caused by bad source video with messed up timestamps, causing the MPEGTS muxer to fail https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/mux.c#L602 and return EINVAL ("Invalid argument")

  • Improve logs around it

The logging around this is confusing and not very descriptive. EINVAL could come from various sources.

  • Fix it/handle it better

Dig deeper if we can handle the frame[n].pts == frame[n+1].pts case better to avoid these failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant