mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Consider using larger HLS segment size for audio-only transcoding #2170
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sfan5 on GitHub (Oct 4, 2020).
Describe the bug
When transcoding audio files Jellyfin creates small and a lot of HLS segments for a single song (e.g. 70 segments for a 3m30s file).
Fetching lots of small files over HTTP is unnecessarily slow. Jellyfin should be using a larger segment size such as
-hls_time 30instead.System:
To Reproduce
Expected behavior
By changing ffmpeg's
hls_timeparameter there would be less segments.Logs
Example of how Jellyfin uses
-hls_time 3:Screenshots

Screenshot of segments in devtools Network tab:
@Artiume commented on GitHub (Oct 14, 2020):
I tried seeing what other programs used but they also based their info off video data. My concern for doing something like this is for devices that have sporadic internet connectivity. If a segment fails to transmute, that's a large segment to have to resend. Looking at the HLS spec, Apple does recommend 6 seconds these days so we could look at doing that.
https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices
@sfan5 commented on GitHub (Oct 14, 2020):
I assume other programs don't use HLS to stream just audio, but there's nothing inherently wrong with doing that.
In the example 30s segments would be roughly 540KB, I wouldn't consider that too large.
@Artiume commented on GitHub (Oct 15, 2020):
One weekend when I'm in an area with weak cell signal, I can try it out but it might be a hot minute. I'd rather not fix something that isn't broken per se
@stale[bot] commented on GitHub (Mar 20, 2021):
This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.
If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or nightlies, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.
This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.
@sfan5 commented on GitHub (Mar 27, 2021):
Retested with 10.7.1, Jellyfin still uses
-hls_time 3.@HybridSarcasm commented on GitHub (Oct 10, 2023):
This has been open quite a while. Can this be re-produced with the current build? If so, please update the bug report details. Thanks!