mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Subtitles not working, or working intermittently #2872
Labels
No labels
area:database
awaiting-feedback
backend
blocked
breaking change: web api
bug
build
ci
confirmed
discussion needed
dotnet future
downstream
duplicate
EFjellyfin.db
enhancement
feature
future
github-actions
good first issue
hdr
help wanted
invalid
investigation
librarydb
live-tv
lyrics
media playback
music
needs testing
nuget
performance
platform
pull-request
question
regression
release critical
requires-web
roadmap
security
security
stale
support
syncplay
ui & ux
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/jellyfin#2872
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @tltucker on GitHub (Mar 29, 2021).
I have multiple videos with embedded subtitles. Some will show the subtitles, some won't. Most of the videos that did work when I was running v10.6 stopped working when I upgraded to 10.7.0 and then 10.7.1
This is one file that does not work
Media Info of the file
My Brilliant Brain S01E01
Containermkv
Path/media/educational content/My Brilliant Brain/My Brilliant Brain S01E01.mkv
Size2258 MB
Video
Title480i MPEG2VIDEO SDR
CodecMPEG2VIDEO
ProfileMain
Level8
Resolution720x576
Aspect ratio16:9
InterlacedYes
Framerate25
Bitrate6704 kbps
Video rangeSDR
Pixel formatyuv420p
Ref frames1
Audio
TitleStereo - English - Dolby Digital - Default
Languageeng
CodecAC3
Layoutstereo
Channels2 ch
Bitrate192 kbps
Sample rate48000 Hz
DefaultYes
Subtitle
TitleEnglish - Default
Languageeng
CodecDVDSUB
DefaultYes
ForcedNo
ExternalNo
Logs
FFmpeg Logs
/videos/6eaa99a9-82cc-09f6-37ff-ed7e39609226/hls1/main/0.ts
{"Protocol":0,"Id":"6eaa99a982cc09f637ffed7e39609226","Path":"/media/educational content/My Brilliant Brain/My Brilliant Brain S01E01.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":2367702016,"Name":"My Brilliant Brain S01E01","IsRemote":false,"ETag":"dfed739e1afaa1fa14e521e33da07f04","RunTimeTicks":28252399616,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"mpeg2video","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1/25","Title":null,"VideoRange":"SDR","localizedUndefined":null,"localizedDefault":null,"localizedForced":null,"DisplayTitle":"480i MPEG2VIDEO SDR","NalLengthSize":null,"IsInterlaced":true,"IsAVC":null,"ChannelLayout":null,"BitRate":6704426,"BitDepth":null,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":576,"Width":720,"AverageFrameRate":25,"RealFrameRate":25,"Profile":"Main","Type":1,"AspectRatio":"16:9","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":8,"IsAnamorphic":null},{"Codec":"ac3","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"1/48000","Title":"Stereo","VideoRange":null,"localizedUndefined":null,"localizedDefault":null,"localizedForced":null,"DisplayTitle":"Stereo - English - Dolby Digital - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":192000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"DVDSUB","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":"0/1","Title":null,"VideoRange":null,"localizedUndefined":"Undefined","localizedDefault":"Default","localizedForced":"Forced","DisplayTitle":"English - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":6896426,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}
/usr/lib/jellyfin-ffmpeg/ffmpeg -f matroska,webm -i file:"/media/educational content/My Brilliant Brain/My Brilliant Brain S01E01.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec✌️0 libx264 -pix_fmt yuv420p -preset veryfast -crf 23 -maxrate 6704426 -bufsize 13408852 -profile✌️0 high -level 41 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,0+n_forced3)" -filter_complex "[0:2]scale=720x576[sub];[0:0]yadif=1👎0,scale=trunc(min(max(iw,ihdar),min(720,576*dar))/2)*2:trunc(min(max(iw/dar,ih),min(720/dar,576))/2)*2[base];[base][sub]overlay" -start_at_zero -vsync -1 -codec🅰️0 aac -ac 2 -ab 384000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae144208%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae144208.m3u8"
ffmpeg version 4.3.1-Jellyfin Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-gpl --enable-version3 --enable-static --enable-libfontconfig --enable-fontconfig --enable-gmp --enable-gnutls --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvenc --enable-nvdec --enable-ffnvcodec
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, matroska,webm, from 'file:/media/educational content/My Brilliant Brain/My Brilliant Brain S01E01.mkv':
Metadata:
encoder : libmakemkv v1.16.3 (1.3.10/1.5.2) x86_64-pc-linux-gnu
creation_time : 2021-03-29T15:21:23.000000Z
Duration: 00:47:05.24, start: 0.000000, bitrate: 6704 kb/s
Chapter #0:0: start 0.000000, end 481.480000
Metadata:
title : Chapter 01
Chapter #0:1: start 481.480000, end 959.200000
Metadata:
title : Chapter 02
Chapter #0:2: start 959.200000, end 1527.200000
Metadata:
title : Chapter 03
Chapter #0:3: start 1527.200000, end 2463.000000
Metadata:
title : Chapter 04
Chapter #0:4: start 2463.000000, end 2825.240000
Metadata:
title : Chapter 05
Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 50 tbc
Metadata:
BPS-eng : 6499053
DURATION-eng : 00:47:05.240000000
NUMBER_OF_FRAMES-eng: 70631
NUMBER_OF_BYTES-eng: 2295173244
SOURCE_ID-eng : 0100E0
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2021-03-29 15:21:23
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Side data:
cpb: bitrate max/min/avg: 9800000/0/0 buffer size: 1835008 vbv_delay: N/A
Stream #0:1(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
title : Stereo
BPS-eng : 192000
DURATION-eng : 00:47:05.184000000
NUMBER_OF_FRAMES-eng: 88287
NUMBER_OF_BYTES-eng: 67804416
SOURCE_ID-eng : 0180BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2021-03-29 15:21:23
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:2(eng): Subtitle: dvd_subtitle, 720x576 (default)
Metadata:
BPS-eng : 8477
DURATION-eng : 00:46:40.199822222
NUMBER_OF_FRAMES-eng: 672
NUMBER_OF_BYTES-eng: 2967496
SOURCE_ID-eng : 0120BD
_STATISTICS_WRITING_APP-eng: MakeMKV v1.16.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2021-03-29 15:21:23
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream mapping:
Stream #0:0 (mpeg2video) -> yadif (graph 0)
Stream #0:2 (dvdsub) -> scale (graph 0)
overlay (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[matroska,webm @ 0x560a93369780] sub2video: using 720x576 canvas
[libx264 @ 0x560a933982c0] using SAR=404/405
[libx264 @ 0x560a933982c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x560a933982c0] profile Main, level 4.1
[libx264 @ 0x560a933982c0] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=4 chroma_me=0 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=13 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=6704 vbv_bufsize=13408 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
Output #0, hls, to '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae144208.m3u8':
Metadata:
encoder : Lavf58.45.100
Stream #0:0: Video: h264 (libx264), yuv420p, 720x404 [SAR 404:405 DAR 16:9], q=-1--1, 50 fps, 90k tbn, 50 tbc (default)
Metadata:
encoder : Lavc58.91.100 libx264
Side data:
cpb: bitrate max/min/avg: 6704000/0/0 buffer size: 13408000 vbv_delay: N/A
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 384 kb/s (default)
Metadata:
encoder : Lavc58.91.100 aac
frame= 44 fps=0.0 q=31.0 size=N/A time=00:00:00.87 bitrate=N/A speed=1.74x
frame= 106 fps=105 q=31.0 size=N/A time=00:00:02.13 bitrate=N/A speed=2.12x
frame= 171 fps=113 q=31.0 size=N/A time=00:00:03.43 bitrate=N/A speed=2.27x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442080.ts' for writing
frame= 237 fps=117 q=31.0 size=N/A time=00:00:04.71 bitrate=N/A speed=2.33x
frame= 305 fps=121 q=31.0 size=N/A time=00:00:06.16 bitrate=N/A speed=2.45x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442081.ts' for writing
frame= 376 fps=124 q=31.0 size=N/A time=00:00:07.59 bitrate=N/A speed=2.51x
frame= 448 fps=127 q=31.0 size=N/A time=00:00:09.04 bitrate=N/A speed=2.57x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442082.ts' for writing
frame= 520 fps=129 q=31.0 size=N/A time=00:00:10.32 bitrate=N/A speed=2.56x
frame= 592 fps=131 q=31.0 size=N/A time=00:00:11.79 bitrate=N/A speed= 2.6x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442083.ts' for writing
frame= 661 fps=131 q=31.0 size=N/A time=00:00:13.20 bitrate=N/A speed=2.62x
frame= 736 fps=133 q=31.0 size=N/A time=00:00:14.63 bitrate=N/A speed=2.64x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442084.ts' for writing
frame= 807 fps=134 q=31.0 size=N/A time=00:00:16.14 bitrate=N/A speed=2.67x
frame= 883 fps=135 q=31.0 size=N/A time=00:00:17.68 bitrate=N/A speed= 2.7x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442085.ts' for writing
frame= 955 fps=135 q=31.0 size=N/A time=00:00:19.11 bitrate=N/A speed=2.71x
frame= 1024 fps=136 q=31.0 size=N/A time=00:00:20.50 bitrate=N/A speed=2.71x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442086.ts' for writing
frame= 1099 fps=136 q=31.0 size=N/A time=00:00:21.99 bitrate=N/A speed=2.73x
frame= 1167 fps=136 q=31.0 size=N/A time=00:00:23.33 bitrate=N/A speed=2.72x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442087.ts' for writing
frame= 1239 fps=137 q=31.0 size=N/A time=00:00:24.78 bitrate=N/A speed=2.73x
frame= 1308 fps=137 q=31.0 size=N/A time=00:00:26.19 bitrate=N/A speed=2.74x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442088.ts' for writing
frame= 1378 fps=137 q=31.0 size=N/A time=00:00:27.56 bitrate=N/A speed=2.73x
frame= 1448 fps=137 q=31.0 size=N/A time=00:00:28.88 bitrate=N/A speed=2.73x
frame= 1516 fps=137 q=28.0 size=N/A time=00:00:30.35 bitrate=N/A speed=2.74x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae1442089.ts' for writing
frame= 1584 fps=137 q=31.0 size=N/A time=00:00:31.59 bitrate=N/A speed=2.73x
frame= 1656 fps=137 q=31.0 size=N/A time=00:00:33.04 bitrate=N/A speed=2.73x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae14420810.ts' for writing
frame= 1726 fps=137 q=28.0 size=N/A time=00:00:34.51 bitrate=N/A speed=2.74x
frame= 1798 fps=137 q=31.0 size=N/A time=00:00:35.94 bitrate=N/A speed=2.74x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae14420811.ts' for writing
frame= 1863 fps=137 q=31.0 size=N/A time=00:00:37.33 bitrate=N/A speed=2.75x
frame= 1941 fps=138 q=31.0 size=N/A time=00:00:38.80 bitrate=N/A speed=2.75x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae14420812.ts' for writing
frame= 2014 fps=138 q=31.0 size=N/A time=00:00:40.27 bitrate=N/A speed=2.76x
frame= 2079 fps=138 q=31.0 size=N/A time=00:00:41.64 bitrate=N/A speed=2.76x
[hls @ 0x560a9339a5c0] Opening '/var/lib/jellyfin/transcodes/28c22ee463a208eeb4abf7baae14420813.ts' for writing
frame= 2092 fps=137 q=-1.0 Lsize=N/A time=00:00:41.92 bitrate=N/A speed=2.75x
video:5125kB audio:1963kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x560a933982c0] frame I:35 Avg QP:21.06 size: 19877
[libx264 @ 0x560a933982c0] frame P:602 Avg QP:26.20 size: 5775
[libx264 @ 0x560a933982c0] frame B:1455 Avg QP:29.45 size: 739
[libx264 @ 0x560a933982c0] consecutive B-frames: 2.3% 13.0% 5.3% 79.3%
[libx264 @ 0x560a933982c0] mb I I16..4: 42.6% 0.0% 57.4%
[libx264 @ 0x560a933982c0] mb P I16..4: 16.2% 0.0% 0.0% P16..4: 43.0% 0.0% 0.0% 0.0% 0.0% skip:40.8%
[libx264 @ 0x560a933982c0] mb B I16..4: 1.0% 0.0% 0.0% B16..8: 9.6% 0.0% 0.0% direct: 4.2% skip:85.2% L0:39.2% L1:46.1% BI:14.6%
[libx264 @ 0x560a933982c0] coded y,uvDC,uvAC intra: 48.2% 51.3% 23.2% inter: 8.1% 5.7% 0.4%
[libx264 @ 0x560a933982c0] i16 v,h,dc,p: 31% 36% 14% 19%
[libx264 @ 0x560a933982c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 23% 11% 7% 6% 6% 7% 6% 8%
[libx264 @ 0x560a933982c0] i8c dc,h,v,p: 42% 30% 19% 10%
[libx264 @ 0x560a933982c0] Weighted P-Frames: Y:4.3% UV:1.2%
[libx264 @ 0x560a933982c0] kb/s:1003.37
Stats for Nerds Screenshots
Server System (please complete the following information):
Server is running Ubuntu 20.04, with Jellyfin 10.7.1
Client System (please complete the following information):
Tried with the web interface on firefox, chrome, edge with the same results. Tried the android app and still the same results
@tltucker commented on GitHub (Apr 7, 2021):
I found out something about what is going on. If I extract a video from a DVD using makemkv/handbrake, the subtitles are embedded in the video, but these subtitles are vobsub or idx/sub type files. Jellyfin does not seem to recognize these embedded files.
If I use mkvtoolnix and embed a .SRT file, jellyfin recognizes it, and plays the subtitle correctly.
You can use mkvmerge and mkvextract to extract the sub file (it makes a pair of .idx/.sub files) and use vobsub2srt or this website: https://subconverter.com/convert-sub-idx-to-srt-online to convert it to .srt
That is a bit of hassle, but it does work.
@cvium commented on GitHub (Apr 9, 2021):
Duplicate of #3079. Vobsub is apparently a little broken.
@prahal commented on GitHub (Jan 7, 2023):
Works for me with 10.8.8. Could you confirm this issue still stand? My movies done using makemkv and handbrake shows the subtitles (vobsub) in jellyfin web fine.
@tltucker commented on GitHub (Jan 9, 2023):
It's worked for me since the last update
On 1/7/23 12:10 PM, Alban Browaeys wrote:
--
Tom Tucker
Director of Technology
Riverfield Country Day School
2433 West 61st Street
Tulsa, Oklahoma 74132