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

Request mp4 container when transcoding HLS video #662

Merged
merged 2 commits into from
Nov 2, 2024

Conversation

3flex
Copy link
Contributor

@3flex 3flex commented Nov 2, 2024

Shaka player 4.8 and up always remuxes TS to MP4, while the Jellyfin Cast client always requests a TS container. This means any transcoded MP4 stream will be remuxed to TS on the server then remuxed again on the device.

As Cast clients (particularly older ones) are low-powered devices, it's important to reduce load on the device when possible. It also avoids unnecessary remuxing on the server in some scenarios.

In local testing the Shaka player version is 4.3.4 but this will be updated automatically to 4.9.2 in future. This change is still useful for earlier Shaka player versions since TS remuxing was identified as a problem area anyway, so using MP4 should improve streaming reliablity to Cast devices regardless of the Shaka version.

3flex added 2 commits November 2, 2024 18:05
Shaka player 4.8 and up always remuxes TS to MP4, while the Jellyfin Cast
client always requests a TS container. This means any transcoded MP4 stream
will be remuxed to TS on the server then remuxed again on the device.

As Cast clients (particularly older ones) are low-powered devices, it's
important to reduce load on the device when possible. It also avoids
unnecessary remuxing on the server in some scenarios.

In local testing the Shaka player version is 4.3.4 but this will be updated
automatically to 4.9.2 in future. This change is still useful for earlier
Shaka player versions since TS remuxing was identified as a problem area
anyway, so using MP4 should improve streaming reliablity to Cast devices
regardless of the Shaka version.
@nielsvanvelzen nielsvanvelzen merged commit 1baac2d into jellyfin:master Nov 2, 2024
5 checks passed
@3flex 3flex deleted the mp4-hls-container branch November 2, 2024 11: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.

2 participants