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

fix: av1 codecs string #11280

Merged
merged 5 commits into from
Apr 2, 2024
Merged

fix: av1 codecs string #11280

merged 5 commits into from
Apr 2, 2024

Conversation

gnattu
Copy link
Member

@gnattu gnattu commented Apr 2, 2024

Changes

Browsers are very picky about this string. The profile level has to be padded to double digits otherwise the stream is going to be rejected and the playback would not continue.

This is confirmed to work with latest Chromium 122 and Firefox 124, but Chromium used to be more picky about this string so additional hacks to lying about the level to it may be needed.

Issues

Fixes jellyfin/jellyfin-web#5364

Browsers are very picky about this string. The profile level has to be padded to double digits otherwise the stream is going to be rejected and the playback would not continue.

Signed-off-by: gnattu <gnattuoc@me.com>
@gnattu gnattu requested a review from nyanmisaka April 2, 2024 06:45
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
Copy link
Member

@nyanmisaka nyanmisaka left a comment

Choose a reason for hiding this comment

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

Good catch. The link in line 195 is outdated. Here’s the latest https://aomediacodec.github.io/av1-isobmff/#codecsparam

The level and bitdepth strings can be updated to use AppendFormat.

Signed-off-by: gnattu <gnattuoc@me.com>
Signed-off-by: gnattu <gnattuoc@me.com>
@gnattu gnattu requested a review from Bond-009 April 2, 2024 10:41
Signed-off-by: gnattu <gnattuoc@me.com>
@crobibero crobibero merged commit 0af101c into master Apr 2, 2024
14 checks passed
@crobibero crobibero deleted the fix-av1-codecs-string branch April 2, 2024 13:03
SourSulfur pushed a commit to SourSulfur/jellyfin that referenced this pull request Apr 19, 2024
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
SourSulfur pushed a commit to SourSulfur/jellyfin that referenced this pull request Apr 19, 2024
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
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.

Unstable: Firefox/Chromium cannot play AV1
7 participants