mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
Subtitle extraction fails #7955
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 @jacekowski on GitHub (Dec 28, 2025).
Description of the bug
Subtitle extraction failed, when i ran the ffmpeg comand manually it returned an error
[srt @ 0x7f0e95cb6d80] Unsupported subtitles codec: hdmv_pgs_subtitle
[out#2/srt @ 0x7f0e95a41000] Could not write header (incorrect codec parameters ?): Invalid argument
I suspect the issue might be related to stream numbers being out of order and missing some IDs.
The command that jellyfin runs to extract the subtitles:
"/usr/lib/jellyfin-ffmpeg/ffmpeg" "-i file:"/video/Filmy/Cloud.Atlas.2012.2160p.UHD.Blu-ray.Remux.DV.HDR.HEVC.DTS-HD.MA.5.1-CiNEPHiLES/Cloud.Atlas.2012.2160p.UHD.Blu-ray.Remux.DV.HDR.HEVC.DTS-HD.MA.5.1-CiNEPHiLES.mkv" -copyts -map 0:2 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/2.srt" -map 0:3 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/3.srt" -map 0:4 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/6.srt" -map 0:5 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/7.srt" -map 0:6 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/9.srt" -map 0:7 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/11.srt" -map 0:8 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/12.srt" -map 0:9 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/13.srt" -map 0:10 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/15.srt" -map 0:11 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/16.srt" -map 0:12 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/18.srt" -map 0:13 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/19.srt" -map 0:14 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/22.srt" -map 0:15 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/23.srt" -map 0:16 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/25.srt" -map 0:17 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/26.srt" -map 0:18 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/28.srt" -map 0:19 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/29.srt" -map 0:20 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/31.srt" -map 0:21 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/33.srt" -map 0:22 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/34.srt" -map 0:23 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/36.srt" -map 0:24 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/38.srt" -map 0:25 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/39.srt" -map 0:26 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/41.srt" -map 0:27 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/43.srt" -map 0:28 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/45.srt" -map 0:29 -an -vn -c:s copy "/config/data/subtitles/32/32462138-d187-32a9-30fa-78f0de63ad24/47.srt""mediainfo:
Reproduction steps
Play movie with subtitles.
What is the current bug behavior?
Subtitle extraction fails
What is the expected correct behavior?
Subtitle extraction does not fail.
Jellyfin Server version
10.11.5
Specify commit id
No response
Specify unstable release number
No response
Specify version number
No response
Specify the build version
1
Environment
Jellyfin logs
FFmpeg logs
Client / Browser logs
No response
Relevant screenshots or videos
No response
Additional information
No response