Bazzu85 21 Posted August 15, 2020 Share Posted August 15, 2020 Hi, as title I've a film subtitle extracted directly from bluray.. when playing the movie with this sub for example the first occurrence is showed.. the second one not.. and for other timing the same I tried additionaly: - with vlc and the problem is still here, so the problem is inside the .sup file. - opening the file with subtitle edit 3.5.14 the lines are all showed Someone can help me to find a solution? I can send privately the sup file to test.. Link to comment Share on other sites More sharing options...
Luke 37045 Posted August 15, 2020 Share Posted August 15, 2020 Is there anything different about the lines that aren't showed? Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted August 15, 2020 Author Share Posted August 15, 2020 1 hour ago, Luke said: Is there anything different about the lines that aren't showed? I mean first time range (ex from 24sec to 27 sec) is displayed, the second one (ex from 28 to 30 sec) is not displayed Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 12, 2021 Author Share Posted July 12, 2021 Hi, I reopen the topic because now I'm seeing again this behaviour.. I have a movie with this specs: Using the italian pgssub (not forced) and playing on emby web: but some subs lines are not showing trying the same situation on emby theater the subs are showing: s...is something related the trascoding? do you need other infos? thx Link to comment Share on other sites More sharing options...
Carlo 4330 Posted July 12, 2021 Share Posted July 12, 2021 Hi, would you be able to provide this media file to us for testing? Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 12, 2021 Author Share Posted July 12, 2021 2 hours ago, cayars said: Hi, would you be able to provide this media file to us for testing? PMed you.. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted July 12, 2021 Share Posted July 12, 2021 I'm just starting to look at this but it appears it's working correct for me. This first sub is a forced sub which usually means it will not have full subs but only in spots where needed if using a different language. Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 12, 2021 Author Share Posted July 12, 2021 28 minutes ago, cayars said: I'm just starting to look at this but it appears it's working correct for me. This first sub is a forced sub which usually means it will not have full subs but only in spots where needed if using a different language. The test I showed was on the first non forced hdmv sub..try using this.. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted July 12, 2021 Share Posted July 12, 2021 This one? Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 12, 2021 Author Share Posted July 12, 2021 1 minute ago, cayars said: This one? The next one ..the srt subs has no problem.. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted July 12, 2021 Share Posted July 12, 2021 OK so using this: Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 12, 2021 Author Share Posted July 12, 2021 1 minute ago, cayars said: OK so using this: Yes. Use emby web as player (I used chrome). Go to 1m 40s and the sub is not showing. Try a device that doesn't need transcoding (I used emby theater for Windows) and the subs showing. Refer btw to my previous screens Link to comment Share on other sites More sharing options...
Carlo 4330 Posted July 12, 2021 Share Posted July 12, 2021 This isn't full screen but you can see it had to be transcoded to handle the sub but it's showing for me. Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 12, 2021 Author Share Posted July 12, 2021 1 minute ago, cayars said: This isn't full screen but you can see it had to be transcoded to handle the sub but it's showing for me. As said above SOME LINES are not showing. If you check the scene at 1.39/1.40 there's a sub line "sono grato... E benedetto etc." That's not appearing when transcoding. It appear correctly on emby theater when direct playing. Please check the screens I sended above. Link to comment Share on other sites More sharing options...
Carlo 4330 Posted July 12, 2021 Share Posted July 12, 2021 Yes, I don't get them either in web player but did get them in VLC. This is something @Luke will need to check on. Link to comment Share on other sites More sharing options...
Luke 37045 Posted July 12, 2021 Share Posted July 12, 2021 Please attach the emby server and ffmpeg log files. thanks. Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 12, 2021 Author Share Posted July 12, 2021 here's.. these are the log from the trascoding play with missing lines.. ffmpeg-transcode-208feb47-6b78-4aa9-aa2d-99a8cde78f6f_1.txtembyserver.txt Link to comment Share on other sites More sharing options...
softworkz 3327 Posted July 13, 2021 Share Posted July 13, 2021 @Bazzu85 - thanks for the logs, looks all good here. There can be various reasons why some of your subtitles are not being burnt into the video by ffmpeg. It could be a spec violation of the subtitles stream or it could be a bug in ffmpeg. I could surely find out about the actual reason, but this would probably take me half a day and then.... You wouldn't be able to get this fixed in the video (in case when off-spec) and I wouldn't be able to get it fixed in ffmpeg, so this investigation would be pointless either way. This kind of issue has never been reported anytime before, so from experience, I'd suspect that there's some issue with this specific file. The fact that it works in VLC doesn't provide any proof that the file is correct. It could also just mean that VLC is more tolerant towards spec violations than ffmpeg (in this case; in other cases it's the other way round).. Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 13, 2021 Author Share Posted July 13, 2021 Just now, softworkz said: @Bazzu85 - thanks for the logs, looks all good here. There can be various reasons why some of your subtitles are not being burnt into the video by ffmpeg. It could be a spec violation of the subtitles stream or it could be a bug in ffmpeg. I could surely find out about the actual reason, but this would probably take me half a day and then.... You wouldn't be able to get this fixed in the video (in case when off-spec) and I wouldn't be able to get it fixed in ffmpeg, so this investigation would be pointless either way. This kind of issue has never been reported anytime before, so from experience, I'd suspect that there's some issue with this specific file. The fact that it works in VLC doesn't provide any proof that the file is correct. It could also just mean that VLC is more tolerant towards spec violations than ffmpeg (in this case; in other cases it's the other way round).. But as I said above the subs works with emby too, but in a NOT trascoding situation. If it's a ffmeg bug, I think that needs to be reported..don't you say? About the fact that's are not been reported yet.. if you check the original post is from august 2020. And now I've the exact same problem (the only difference is that I can now split the behaviour with trascoding/not trascoding play). The HDMV subtitle are not used often. Usually an OCR is made on the file to create the srt textual file..but if without the transcode the file is working ...well I think that's need to be found the problem.. Link to comment Share on other sites More sharing options...
softworkz 3327 Posted July 13, 2021 Share Posted July 13, 2021 2 minutes ago, Bazzu85 said: the subs works with emby too, but in a NOT trascoding situation. In that case it's the client player who does the overlay. 5 minutes ago, Bazzu85 said: If it's a ffmeg bug, I think that needs to be reported..don't you say? Finding out whether it is a bug and submitting it, would take a significant amount of work. Only two video files in 5 years having that symptom and both even from the same user - that's not the way how bugs look like. PGS subs are less often used than SRT/ASS, but with Emby, these have always been playing a major role in transcoding and there have been many support requests in this area over the recent years. Link to comment Share on other sites More sharing options...
softworkz 3327 Posted July 13, 2021 Share Posted July 13, 2021 I'm really sorry that I don't have a better answer for you at this time. We're in the process of catching up to the latest ffmpeg, so there's a small chance that it has been fixed mean while (!! if it would be a bug at all) Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 13, 2021 Author Share Posted July 13, 2021 Just now, softworkz said: In that case it's the client player who does the overlay. Finding out whether it is a bug and submitting it, would take a significant amount of work. Only two video files in 5 years having that symptom and both even from the same user - that's not the way how bugs look like. PGS subs are less often used than SRT/ASS, but with Emby, these have always been playing a major role in transcoding and there have been many support requests in this area over the recent years. Maybe the users doesn't notice this problem, I don't know.. digging a little I found that the missing lines are the one that need to be placed on the top during the play. here's some vlc screens of subtitle completely missing with emby transcode this: and this: and this: maybe is something related to the overlay parameters gaved to ffmpeg? the bottom one are ok. how can I play with this parameters? C:\Users\elbaz\AppData\Roaming\Emby-Server\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "C:\Users\elbaz\AppData\Roaming\Emby-Server\programdata\logs\ffmpeg-transcode-208feb47-6b78-4aa9-aa2d-99a8cde78f6f_1graph.txt" -copyts -start_at_zero -qsv_device 0 -qsv_use_dx11 -f matroska,webm -c:v:0 hevc_qsv -hwaccel:v:0 qsv -hwaccel_device:v:0 hw -load_plugin:v:0 hevc_hw -canvas_size:s:3 "1920:1080" -i "H:\Film\M\Mortal Kombat (2021)\Mortal Kombat (2021) [BDrip 1080p HEVC] [ITA+ENG].mkv" -filter_complex "[0:0]hwdownload@f1,format@f2=pix_fmts=nv12,format@f3=pix_fmts=yuv420p[f3_out0];[0:6]scale@f4=width=1920:height=-2:force_original_aspect_ratio=decrease[f4_out0];[f3_out0][f4_out0]overlay@f5=x=(W-w)/2:y=(H-h):repeatlast=0[f5_out0]" -map [f5_out0] -map 0:1 -sn -c:v:0 h264_qsv -b:v:0 8134252 -g:v:0 72 -maxrate:v:0 8134252 -bufsize:v:0 16268504 -sc_threshold:v:0 0 -level:v:0 40 -keyint_min:v:0 72 -profile:v:0 high -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -metadata:s:a:0 language=ita -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_%d.ts" Link to comment Share on other sites More sharing options...
softworkz 3327 Posted July 13, 2021 Share Posted July 13, 2021 There's not much to play with the parameters, but you could try with the latest ffmpeg instead (you will need to remove a few parameters that are Emby specific, but it's easy - just remove the ones that are shown as error). Another way to investigate would be to try whether you can find an application that can edit or at least decode those subtitle streams in detail, that might provide some hint at what's going on.. Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 13, 2021 Author Share Posted July 13, 2021 here I am with some tests.. using the emby log command line: C:\Users\elbaz\AppData\Roaming\Emby-Server\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "C:\Users\elbaz\AppData\Roaming\Emby-Server\programdata\logs\ffmpeg-transcode-208feb47-6b78-4aa9-aa2d-99a8cde78f6f_1graph.txt" -copyts -start_at_zero -qsv_device 0 -qsv_use_dx11 -f matroska,webm -c:v:0 hevc_qsv -hwaccel:v:0 qsv -hwaccel_device:v:0 hw -load_plugin:v:0 hevc_hw -canvas_size:s:3 "1920:1080" -i "r:\MEGUI\ZZZZ - OLD\Mortal Kombat (2021).mkv" -filter_complex "[0:0]hwdownload@f1,format@f2=pix_fmts=nv12,format@f3=pix_fmts=yuv420p[f3_out0];[0:6]scale@f4=width=1920:height=-2:force_original_aspect_ratio=decrease[f4_out0];[f3_out0][f4_out0]overlay@f5=x=(W-w)/2:y=(H-h):repeatlast=0[f5_out0]" -map [f5_out0] -map 0:1 -sn -c:v:0 h264_qsv -b:v:0 8134252 -g:v:0 72 -maxrate:v:0 8134252 -bufsize:v:0 16268504 -sc_threshold:v:0 0 -level:v:0 40 -keyint_min:v:0 72 -profile:v:0 high -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -metadata:s:a:0 language=ita -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_%d.ts" C:\Windows\system32>C:\Users\elbaz\AppData\Roaming\Emby-Server\system\ffmpeg.exe -loglevel +timing -y -print_graphs_file "C:\Users\elbaz\AppData\Roaming\Emby-Server\programdata\logs\ffmpeg-transcode-208feb47-6b78-4aa9-aa2d-99a8cde78f6f_1graph.txt" -copyts -start_at_zero -qsv_device 0 -qsv_use_dx11 -f matroska,webm -c:v:0 hevc_qsv -hwaccel:v:0 qsv -hwaccel_device:v:0 hw -load_plugin:v:0 hevc_hw -canvas_size:s:3 "1920:1080" -i "r:\MEGUI\ZZZZ - OLD\Mortal Kombat (2021).mkv" -filter_complex "[0:0]hwdownload@f1,format@f2=pix_fmts=nv12,format@f3=pix_fmts=yuv420p[f3_out0];[0:6]scale@f4=width=1920:height=-2:force_original_aspect_ratio=decrease[f4_out0];[f3_out0][f4_out0]overlay@f5=x=(W-w)/2:y=(H-h):repeatlast=0[f5_out0]" -map [f5_out0] -map 0:1 -sn -c:v:0 h264_qsv -b:v:0 8134252 -g:v:0 72 -maxrate:v:0 8134252 -bufsize:v:0 16268504 -sc_threshold:v:0 0 -level:v:0 40 -keyint_min:v:0 72 -profile:v:0 high -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -metadata:s:a:0 language=ita -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8" -segment_list_type m3u8 -segment_time 3 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_write_temp 1 "C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_%d.ts" 11:03:56.754 ffmpeg version 4.3.0-emby_2021_02_27-g8f222573e9+634 Copyright (c) 2000-2021 the FFmpeg developers and softworkz for Emby LLC 11:03:56.754 built with gcc 9.2.0 (Rev2, Built by MSYS2 project) 11:03:56.754 Execution Date: 2021-07-13 11:03:56 11:03:56.790 [matroska,webm @ 000001e22f1a1b00] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options 11:03:56.791 Input #0, matroska,webm, from 'r:\MEGUI\ZZZZ - OLD\Mortal Kombat (2021).mkv': 11:03:56.791 Metadata: 11:03:56.792 encoder : libebml v1.4.2 + libmatroska v1.6.4 11:03:56.792 creation_time : 2021-07-12T07:18:39.000000Z 11:03:56.792 Duration: 01:50:03.94, start: 0.000000, bitrate: 4067 kb/s 11:03:56.792 Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x800 [SAR 1:1 DAR 12:5], Level 120, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default) 11:03:56.793 Metadata: 11:03:56.793 BPS : 2922120 11:03:56.793 DURATION : 01:50:03.931000000 11:03:56.793 NUMBER_OF_FRAMES: 158336 11:03:56.793 NUMBER_OF_BYTES : 2412185538 11:03:56.793 Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) 11:03:56.793 Metadata: 11:03:56.793 title : Italiano 11:03:56.793 BPS : 640000 11:03:56.794 DURATION : 01:50:03.936000000 11:03:56.794 NUMBER_OF_FRAMES: 206373 11:03:56.794 NUMBER_OF_BYTES : 528314880 11:03:56.794 Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s 11:03:56.794 Metadata: 11:03:56.794 title : Inglese 11:03:56.794 BPS : 448000 11:03:56.794 DURATION : 01:50:03.936000000 11:03:56.795 NUMBER_OF_FRAMES: 206373 11:03:56.795 NUMBER_OF_BYTES : 369820416 11:03:56.795 Stream #0:3(ita): Subtitle: subrip (forced) 11:03:56.796 Metadata: 11:03:56.796 title : Italiano FORCED 11:03:56.796 BPS : 2 11:03:56.796 DURATION : 01:34:21.989000000 11:03:56.796 NUMBER_OF_FRAMES: 51 11:03:56.796 NUMBER_OF_BYTES : 1433 11:03:56.796 Stream #0:4(ita): Subtitle: hdmv_pgs_subtitle (forced) 11:03:56.796 Metadata: 11:03:56.797 title : Italiano FORCED 11:03:56.797 BPS : 1317 11:03:56.797 DURATION : 01:34:21.989000000 11:03:56.797 NUMBER_OF_FRAMES: 102 11:03:56.797 NUMBER_OF_BYTES : 932713 11:03:56.797 Stream #0:5(ita): Subtitle: subrip, Start-Time 2.670s 11:03:56.797 Metadata: 11:03:56.798 title : Italiano Non Udenti 11:03:56.798 BPS : 43 11:03:56.798 DURATION : 01:49:50.167000000 11:03:56.798 NUMBER_OF_FRAMES: 1415 11:03:56.798 NUMBER_OF_BYTES : 36102 11:03:56.798 Stream #0:6(ita): Subtitle: hdmv_pgs_subtitle, 1920x1080, Start-Time 2.670s 11:03:56.798 Metadata: 11:03:56.799 title : Italiano Non Udenti 11:03:56.799 BPS : 27224 11:03:56.799 DURATION : 01:49:50.167000000 11:03:56.799 NUMBER_OF_FRAMES: 2830 11:03:56.800 NUMBER_OF_BYTES : 22426529 11:03:56.800 Stream #0:7(eng): Subtitle: subrip, Start-Time 2.670s 11:03:56.802 Metadata: 11:03:56.802 title : Inglese Non Udenti 11:03:56.803 BPS : 44 11:03:56.803 DURATION : 01:41:34.755000000 11:03:56.804 NUMBER_OF_FRAMES: 1370 11:03:56.804 NUMBER_OF_BYTES : 33921 11:03:56.805 Stream #0:8(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080, Start-Time 2.670s 11:03:56.805 Metadata: 11:03:56.805 title : Inglese Non Udenti 11:03:56.806 BPS : 28362 11:03:56.807 DURATION : 01:41:34.755000000 11:03:56.807 NUMBER_OF_FRAMES: 2740 11:03:56.807 NUMBER_OF_BYTES : 21607984 11:03:56.808 Stream mapping: 11:03:56.808 Stream #0:0 (hevc_qsv) -> hwdownload (graph 0) 11:03:56.809 Stream #0:6 (pgssub) -> scale (graph 0) 11:03:56.809 overlay (graph 0) -> Stream #0:0 (h264_qsv) 11:03:56.810 Stream #0:1 -> #0:1 (ac3 (native) -> mp3 (libmp3lame)) 11:03:56.817 Press [q] to stop, [?] for help 11:03:56.825 [AVHWDeviceContext @ 000001e22f6c0780] Using D3D11 device 8086:9bc8 (Intel(R) UHD Graphics 630). 11:03:56.961 [matroska,webm @ 000001e22f1a1b00] sub2video: using 1920x800 canvas 11:03:57.081 Output #0, segment, to 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_%d.ts': 11:03:57.081 Metadata: 11:03:57.081 encoder : Lavf58.35.100 11:03:57.082 Stream #0:0: Video: h264 (h264_qsv), nv12, 1920x800 [SAR 1:1 DAR 12:5], q=-1--1, 8134 kb/s, Level 40, 23.98 fps, 90k tbn, 23.98 tbc (default) 11:03:57.082 Metadata: 11:03:57.083 encoder : Lavc58.62.100 h264_qsv 11:03:57.083 Side data: 11:03:57.084 cpb: bitrate max/min/avg: 8134252/0/8134252 buffer size: 16268504 vbv_delay: N/A 11:03:57.084 Stream #0:1(ita): Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp, 192 kb/s (default) 11:03:57.085 Metadata: 11:03:57.085 encoder : Lavc58.62.100 libmp3lame 11:03:58.066 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:03:58.069 SegmentComplete=video:0 Index=0 Start=0.000000 End=3.003000 Duration=3.003000 offset_pts=0 start_pts=0 Frames=72 filename=CD9FEB_0.ts 11:03:58.069 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_1.ts.tmp' for writing 11:03:58.967 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:03:58.970 SegmentComplete=video:0 Index=1 Start=3.003000 End=6.006000 Duration=3.003000 offset_pts=0 start_pts=3003000 Frames=72 filename=CD9FEB_1.ts 11:03:58.970 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_2.ts.tmp' for writing 11:03:59.731 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:03:59.733 SegmentComplete=video:0 Index=2 Start=6.006000 End=9.009000 Duration=3.003000 offset_pts=0 start_pts=6006000 Frames=72 filename=CD9FEB_2.ts 11:03:59.734 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_3.ts.tmp' for writing 11:04:00.397 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:00.400 SegmentComplete=video:0 Index=3 Start=9.009000 End=12.012000 Duration=3.003000 offset_pts=0 start_pts=9009000 Frames=72 filename=CD9FEB_3.ts 11:04:00.401 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_4.ts.tmp' for writing 11:04:01.119 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:01.121 SegmentComplete=video:0 Index=4 Start=12.012000 End=15.015000 Duration=3.003000 offset_pts=0 start_pts=12012000 Frames=72 filename=CD9FEB_4.ts 11:04:01.121 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_5.ts.tmp' for writing 11:04:01.772 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:01.775 SegmentComplete=video:0 Index=5 Start=15.015000 End=18.018000 Duration=3.003000 offset_pts=0 start_pts=15015000 Frames=72 filename=CD9FEB_5.ts 11:04:01.776 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_6.ts.tmp' for writing 11:04:02.452 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:02.455 SegmentComplete=video:0 Index=6 Start=18.018000 End=21.021000 Duration=3.003000 offset_pts=0 start_pts=18018000 Frames=72 filename=CD9FEB_6.ts 11:04:02.455 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_7.ts.tmp' for writing 11:04:03.129 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:03.132 SegmentComplete=video:0 Index=7 Start=21.021000 End=24.024000 Duration=3.003000 offset_pts=0 start_pts=21021000 Frames=72 filename=CD9FEB_7.ts 11:04:03.132 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_8.ts.tmp' for writing 11:04:03.769 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:03.771 SegmentComplete=video:0 Index=8 Start=24.024000 End=27.027000 Duration=3.003000 offset_pts=0 start_pts=24024000 Frames=72 filename=CD9FEB_8.ts 11:04:03.771 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_9.ts.tmp' for writing 11:04:04.370 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:04.373 SegmentComplete=video:0 Index=9 Start=27.027000 End=30.030000 Duration=3.003000 offset_pts=0 start_pts=27027000 Frames=72 filename=CD9FEB_9.ts 11:04:04.373 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_10.ts.tmp' for writing 11:04:05.003 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:05.006 SegmentComplete=video:0 Index=10 Start=30.030000 End=33.033000 Duration=3.003000 offset_pts=0 start_pts=30030000 Frames=72 filename=CD9FEB_10.ts 11:04:05.006 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_11.ts.tmp' for writing 11:04:05.626 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:05.628 SegmentComplete=video:0 Index=11 Start=33.033000 End=36.036000 Duration=3.003000 offset_pts=0 start_pts=33033000 Frames=72 filename=CD9FEB_11.ts 11:04:05.629 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_12.ts.tmp' for writing 11:04:06.333 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:06.335 SegmentComplete=video:0 Index=12 Start=36.036000 End=39.039000 Duration=3.003000 offset_pts=0 start_pts=36036000 Frames=72 filename=CD9FEB_12.ts 11:04:06.336 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_13.ts.tmp' for writing 11:04:06.998 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:07.001 SegmentComplete=video:0 Index=13 Start=39.039000 End=42.042000 Duration=3.003000 offset_pts=0 start_pts=39039000 Frames=72 filename=CD9FEB_13.ts 11:04:07.001 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_14.ts.tmp' for writing 11:04:07.643 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:07.646 SegmentComplete=video:0 Index=14 Start=42.042000 End=45.045000 Duration=3.003000 offset_pts=0 start_pts=42042000 Frames=72 filename=CD9FEB_14.ts 11:04:07.646 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_15.ts.tmp' for writing 11:04:08.416 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:08.418 SegmentComplete=video:0 Index=15 Start=45.045000 End=48.048000 Duration=3.003000 offset_pts=0 start_pts=45045000 Frames=72 filename=CD9FEB_15.ts 11:04:08.419 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_16.ts.tmp' for writing 11:04:09.153 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:09.156 SegmentComplete=video:0 Index=16 Start=48.048000 End=51.051000 Duration=3.003000 offset_pts=0 start_pts=48048000 Frames=72 filename=CD9FEB_16.ts 11:04:09.156 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_17.ts.tmp' for writing 11:04:09.998 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:10.000 SegmentComplete=video:0 Index=17 Start=51.051000 End=54.054000 Duration=3.003000 offset_pts=0 start_pts=51051000 Frames=72 filename=CD9FEB_17.ts 11:04:10.001 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_18.ts.tmp' for writing 11:04:10.809 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:10.812 SegmentComplete=video:0 Index=18 Start=54.054000 End=57.057000 Duration=3.003000 offset_pts=0 start_pts=54054000 Frames=72 filename=CD9FEB_18.ts 11:04:10.813 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_19.ts.tmp' for writing 11:04:11.520 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:11.523 SegmentComplete=video:0 Index=19 Start=57.057000 End=60.060000 Duration=3.003000 offset_pts=0 start_pts=57057000 Frames=72 filename=CD9FEB_19.ts 11:04:11.523 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_20.ts.tmp' for writing 11:04:12.277 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:12.279 SegmentComplete=video:0 Index=20 Start=60.060000 End=63.063000 Duration=3.003000 offset_pts=0 start_pts=60060000 Frames=72 filename=CD9FEB_20.ts 11:04:12.279 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_21.ts.tmp' for writing 11:04:13.014 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:13.017 SegmentComplete=video:0 Index=21 Start=63.063000 End=66.066000 Duration=3.003000 offset_pts=0 start_pts=63063000 Frames=72 filename=CD9FEB_21.ts 11:04:13.018 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_22.ts.tmp' for writing 11:04:13.716 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:13.762 SegmentComplete=video:0 Index=22 Start=66.066000 End=69.069000 Duration=3.003000 offset_pts=0 start_pts=66066000 Frames=72 filename=CD9FEB_22.ts 11:04:13.762 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_23.ts.tmp' for writing 11:04:14.510 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:14.512 SegmentComplete=video:0 Index=23 Start=69.069000 End=72.072000 Duration=3.003000 offset_pts=0 start_pts=69069000 Frames=72 filename=CD9FEB_23.ts 11:04:14.513 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_24.ts.tmp' for writing 11:04:15.414 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:15.416 SegmentComplete=video:0 Index=24 Start=72.072000 End=75.075000 Duration=3.003000 offset_pts=0 start_pts=72072000 Frames=72 filename=CD9FEB_24.ts 11:04:15.416 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_25.ts.tmp' for writing 11:04:16.202 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:16.205 SegmentComplete=video:0 Index=25 Start=75.075000 End=78.078000 Duration=3.003000 offset_pts=0 start_pts=75075000 Frames=72 filename=CD9FEB_25.ts 11:04:16.206 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB_26.ts.tmp' for writing 11:04:16.909 11:04:16.909 [segment @ 000001e22f24db80] Opening 'C:\Users\elbaz\AppData\Roaming\Emby Transcod\transcoding-temp\CD9FEB.m3u8.tmp' for writing 11:04:16.910 SegmentComplete=video:0 Index=26 Start=78.078000 End=80.789044 Duration=2.711044 offset_pts=0 start_pts=78078000 Frames=65 filename=CD9FEB_26.ts 11:04:16.910 frame= 1937 fps= 96 q=22.0 Lsize= 82231kB time=00:01:21.14 bitrate=8449.2kbits/s throttle=off speed=3.97x 11:04:16.911 video:80328kB audio:1902kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% Last message repeated 1 times 11:04:16.913 EXIT 11:04:16.948 Exiting normally, received signal 2. 11:04:16.948 C:\Windows\system32> Here's the result (only bottom subs): I tried to use emby ffmpeg giving only some parameter. Input video, subtitle track #6 C:\Users\elbaz\AppData\Roaming\Emby-Server\system\ffmpeg.exe -i "r:\MEGUI\ZZZZ - OLD\Mortal Kombat (2021).mkv" -filter_complex "[0:v][0:6]overlay[v]" -map "[v]" -map 0:a "r:\MEGUI\ZZZZ - OLD\Mortal Kombat (2021)_ffmpeg_emby.mkv" C:\Windows\system32>C:\Users\elbaz\AppData\Roaming\Emby-Server\system\ffmpeg.exe -i "r:\MEGUI\ZZZZ - OLD\Mortal Kombat (2021).mkv" -filter_complex "[0:v][0:6]overlay[v]" -map "[v]" -map 0:a "r:\MEGUI\ZZZZ - OLD\Mortal Kombat (2021)_ffmpeg_emby.mkv" ffmpeg version 4.3.0-emby_2021_02_27-g8f222573e9+634 Copyright (c) 2000-2021 the FFmpeg developers and softworkz for Emby LLC built with gcc 9.2.0 (Rev2, Built by MSYS2 project) Execution Date: 2021-07-13 10:53:28 [matroska,webm @ 000001aa6420a940] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, matroska,webm, from 'r:\MEGUI\ZZZZ - OLD\Mortal Kombat (2021).mkv': Metadata: encoder : libebml v1.4.2 + libmatroska v1.6.4 creation_time : 2021-07-12T07:18:39.000000Z Duration: 01:50:03.94, start: 0.000000, bitrate: 4067 kb/s Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt709), 1920x800 [SAR 1:1 DAR 12:5], Level 120, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default) Metadata: BPS : 2922120 DURATION : 01:50:03.931000000 NUMBER_OF_FRAMES: 158336 NUMBER_OF_BYTES : 2412185538 Stream #0:1(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) Metadata: title : Italiano BPS : 640000 DURATION : 01:50:03.936000000 NUMBER_OF_FRAMES: 206373 NUMBER_OF_BYTES : 528314880 Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s Metadata: title : Inglese BPS : 448000 DURATION : 01:50:03.936000000 NUMBER_OF_FRAMES: 206373 NUMBER_OF_BYTES : 369820416 Stream #0:3(ita): Subtitle: subrip (forced) Metadata: title : Italiano FORCED BPS : 2 DURATION : 01:34:21.989000000 NUMBER_OF_FRAMES: 51 NUMBER_OF_BYTES : 1433 Stream #0:4(ita): Subtitle: hdmv_pgs_subtitle (forced) Metadata: title : Italiano FORCED BPS : 1317 DURATION : 01:34:21.989000000 NUMBER_OF_FRAMES: 102 NUMBER_OF_BYTES : 932713 Stream #0:5(ita): Subtitle: subrip, Start-Time 2.670s Metadata: title : Italiano Non Udenti BPS : 43 DURATION : 01:49:50.167000000 NUMBER_OF_FRAMES: 1415 NUMBER_OF_BYTES : 36102 Stream #0:6(ita): Subtitle: hdmv_pgs_subtitle, 1920x1080, Start-Time 2.670s Metadata: title : Italiano Non Udenti BPS : 27224 DURATION : 01:49:50.167000000 NUMBER_OF_FRAMES: 2830 NUMBER_OF_BYTES : 22426529 Stream #0:7(eng): Subtitle: subrip, Start-Time 2.670s Metadata: title : Inglese Non Udenti BPS : 44 DURATION : 01:41:34.755000000 NUMBER_OF_FRAMES: 1370 NUMBER_OF_BYTES : 33921 Stream #0:8(eng): Subtitle: hdmv_pgs_subtitle, 1920x1080, Start-Time 2.670s Metadata: title : Inglese Non Udenti BPS : 28362 DURATION : 01:41:34.755000000 NUMBER_OF_FRAMES: 2740 NUMBER_OF_BYTES : 21607984 Stream mapping: Stream #0:0 (hevc) -> overlay:main (graph 0) Stream #0:6 (pgssub) -> overlay:overlay (graph 0) overlay (graph 0) -> Stream #0:0 (libx264) Stream #0:1 -> #0:1 (ac3 (native) -> vorbis (libvorbis)) Stream #0:2 -> #0:2 (ac3 (native) -> vorbis (libvorbis)) Press [q] to stop, [?] for help [matroska,webm @ 000001aa6420a940] sub2video: using 1920x800 canvas [libx264 @ 000001aa6422e140] using SAR=1/1 [libx264 @ 000001aa6422e140] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 000001aa6422e140] profile High, level 4.0, 4:2:0, 8-bit [libx264 @ 000001aa6422e140] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=18 lookahead_threads=3 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=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, matroska, to 'r:\MEGUI\ZZZZ - OLD\Mortal Kombat (2021)_ffmpeg_emby.mkv': Metadata: encoder : Lavf58.35.100 Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuvj420p(pc), 1920x800 [SAR 1:1 DAR 12:5], q=-1--1, 23.98 fps, 1k tbn, 23.98 tbc (default) Metadata: encoder : Lavc58.62.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A Stream #0:1(ita): Audio: vorbis (libvorbis) (oV[0][0] / 0x566F), 48000 Hz, 5.1(side), fltp (default) Metadata: title : Italiano BPS : 640000 DURATION : 01:50:03.936000000 NUMBER_OF_FRAMES: 206373 NUMBER_OF_BYTES : 528314880 encoder : Lavc58.62.100 libvorbis Stream #0:2(eng): Audio: vorbis (libvorbis) (oV[0][0] / 0x566F), 48000 Hz, 5.1(side), fltp Metadata: title : Inglese BPS : 448000 DURATION : 01:50:03.936000000 NUMBER_OF_FRAMES: 206373 NUMBER_OF_BYTES : 369820416 encoder : Lavc58.62.100 libvorbis frame= 2332 fps= 79 q=-1.0 Lsize= 34240kB time=00:01:38.07 bitrate=2948.8kbits/s throttle=off speed=3.21x video:28741kB audio:5391kB subtitle:0kB other streams:0kB global headers:14kB muxing overhead: 0.316132% Last message repeated 1 times EXIT [libx264 @ 000001aa6422e140] frame I:24 Avg QP:18.01 size: 95551 [libx264 @ 000001aa6422e140] frame P:853 Avg QP:21.15 size: 22365 [libx264 @ 000001aa6422e140] frame B:1455 Avg QP:23.08 size: 5540 [libx264 @ 000001aa6422e140] consecutive B-frames: 6.2% 31.2% 1.7% 60.9% [libx264 @ 000001aa6422e140] mb I I16..4: 22.0% 69.2% 8.8% [libx264 @ 000001aa6422e140] mb P I16..4: 4.1% 11.4% 0.7% P16..4: 36.5% 9.3% 5.0% 0.0% 0.0% skip:32.9% [libx264 @ 000001aa6422e140] mb B I16..4: 0.5% 1.1% 0.1% B16..8: 26.1% 1.8% 0.3% direct: 2.1% skip:68.1% L0:40.4% L1:52.5% BI: 7.1% [libx264 @ 000001aa6422e140] 8x8 transform intra:69.8% inter:83.2% [libx264 @ 000001aa6422e140] coded y,uvDC,uvAC intra: 42.1% 46.2% 11.0% inter: 11.2% 13.7% 0.5% [libx264 @ 000001aa6422e140] i16 v,h,dc,p: 36% 22% 9% 33% [libx264 @ 000001aa6422e140] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 16% 30% 4% 5% 6% 5% 5% 5% [libx264 @ 000001aa6422e140] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 14% 15% 5% 8% 9% 6% 6% 4% [libx264 @ 000001aa6422e140] i8c dc,h,v,p: 56% 18% 22% 3% [libx264 @ 000001aa6422e140] Weighted P-Frames: Y:6.4% UV:3.9% [libx264 @ 000001aa6422e140] ref P L0: 65.1% 18.2% 12.0% 4.3% 0.3% [libx264 @ 000001aa6422e140] ref B L0: 90.5% 7.5% 2.1% [libx264 @ 000001aa6422e140] ref B L1: 97.8% 2.2% [libx264 @ 000001aa6422e140] kb/s:2420.66 Exiting normally, received signal 2. and here's the result: the sub is burned in correctly.. so to recap: Testing the command line from logs gives problems Using the same ffmpeg of emby with less parameter (obviously) but pointing to the incriminated subtitle tracks give a better result Link to comment Share on other sites More sharing options...
Bazzu85 21 Posted July 15, 2021 Author Share Posted July 15, 2021 @softworkz are you been able to check my last tests? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now