Skip to content

Add stream parsing fallback for duration setting.#3443

Merged
bjester merged 3 commits intolearningequality:hotfixesfrom
rtibbles:duration_set
Jul 6, 2022
Merged

Add stream parsing fallback for duration setting.#3443
bjester merged 3 commits intolearningequality:hotfixesfrom
rtibbles:duration_set

Conversation

@rtibbles
Copy link
Member

@rtibbles rtibbles commented Jul 5, 2022

Adds a fallback using ffmpeg in cases where the container header parsing with ffprobe does not produce a valid value.

This is somewhat intensive as it actually decodes the entire stream in order to get the duration, but should be relatively foolproof.

@rtibbles rtibbles requested review from aronasorman and bjester July 5, 2022 23:47
Copy link
Member

@bjester bjester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@bjester bjester merged commit 365f077 into learningequality:hotfixes Jul 6, 2022
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.

3 participants