The burn-in subtitles will become semi-transparent when enable hardware acceleration - Giresharu - 2024-11-10
This is the correct subtitle effect (without hardware acceleration, consistent with other software)
And this is the effect after enabling Intel QSV
Obviously, the transparency has changed. What’s going on here?
Also, I’d like to ask: to correctly display the specified subtitles in an ASS file, the Windows version of the client can display them by installing the specified font in the system font directory of the PC, but it seems that the web UI does not read the fonts from the PC’s system? And when using fallback fonts, it seems that the font specified in the ASS file is not used, but a random font from the directory is chosen to display (which can be very chaotic for Chinese-Japanese bilingual subtitles). So, with the web UI version, is burning the only option to correctly display ASS subtitles?
RE: The burn-in subtitles will become semi-transparent when enable hardware acceleration - TheDreadPirate - 2024-11-10
Can you share the ffmpeg log for each transcode type?
RE: The burn-in subtitles will become semi-transparent when enable hardware acceleration - Giresharu - 2024-11-11
(2024-11-10, 10:34 PM)TheDreadPirate Wrote: Can you share the ffmpeg log for each transcode type?
QSV on(Subtitle render issue):
Code: [16:26:38] [INF] [11] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /cache/transcodes/bbb74cafd05488d1b42ea5850fd38b31.m3u8
[16:26:38] [INF] [67] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 0
[16:26:38] [INF] [11] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) /cache/transcodes/bbb74cafd05488d1b42ea5850fd38b31.m3u8
[16:26:40] [INF] [3] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app Jellyfin Web 10.10.1 playing CRYCHIC. Stopped at 79052 ms
[16:26:58] [INF] [11] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for admin. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[16:26:58] [INF] [11] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[16:26:58] [INF] [11] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -f matroska -init_hw_device vaapi=va:,vendor_id=0x8086,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/media/Video/TV/BanG Dream! It's MyGO!!!!! (2023)/Season 1/BanG Dream! It's MyGO!!!!! - S01E03 - CRYCHIC.mkv" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 hevc_qsv -tag:v:0 hvc1 -preset veryfast -b:v 10315368 -maxrate 10315368 -bufsize 20630736 -profile:v:0 main -level 50 -g:v:0 72 -keyint_min:v:0 72 -filter_complex "alphasrc=s=1920x1080:r=23.976025:start='0',format=bgra,subtitles=f='/media/Video/TV/BanG Dream! It'\\\''s MyGO!!!!! (2023)/Season 1/BanG Dream! It'\\\''s MyGO!!!!! - S01E03 - CRYCHIC.ass':alpha=1:sub2video=1:fontsdir='/cache/attachments/cb04141e8a76815f5cb8fe11393ffac4',hwupload=derive_device=qsv:extra_hw_frames=64[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv[main];[main][sub]overlay_qsv=eof_action=pass:repeatlast=0:w=3840:h=2160" -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "91fe436e010be6bc6d9608ed822e6427-1.mp4" -start_number 0 -hls_segment_filename "/cache/transcodes/91fe436e010be6bc6d9608ed822e6427%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/91fe436e010be6bc6d9608ed822e6427.m3u8"
[16:27:03] [INF] [28] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /cache/transcodes/91fe436e010be6bc6d9608ed822e6427.m3u8
[16:27:04] [INF] [28] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 0
[16:27:04] [INF] [28] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[16:27:04] [INF] [28] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -ss 00:01:18.000 -noaccurate_seek -f matroska -init_hw_device vaapi=va:,vendor_id=0x8086,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/media/Video/TV/BanG Dream! It's MyGO!!!!! (2023)/Season 1/BanG Dream! It's MyGO!!!!! - S01E03 - CRYCHIC.mkv" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 hevc_qsv -tag:v:0 hvc1 -preset veryfast -b:v 10315368 -maxrate 10315368 -bufsize 20630736 -profile:v:0 main -level 50 -g:v:0 72 -keyint_min:v:0 72 -filter_complex "alphasrc=s=1920x1080:r=23.976025:start='00\:01\:18\.000',format=bgra,subtitles=f='/media/Video/TV/BanG Dream! It'\\\''s MyGO!!!!! (2023)/Season 1/BanG Dream! It'\\\''s MyGO!!!!! - S01E03 - CRYCHIC.ass':alpha=1:sub2video=1:fontsdir='/cache/attachments/cb04141e8a76815f5cb8fe11393ffac4',hwupload=derive_device=qsv:extra_hw_frames=64[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv[main];[main][sub]overlay_qsv=eof_action=pass:repeatlast=0:w=3840:h=2160" -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "91fe436e010be6bc6d9608ed822e6427-1.mp4" -start_number 26 -hls_segment_filename "/cache/transcodes/91fe436e010be6bc6d9608ed822e6427%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/91fe436e010be6bc6d9608ed822e6427.m3u8"
No Hardware Acceleration(Very slow, but no issues with the subtitles):
Code: [16:29:42] [INF] [11] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for admin. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[16:29:42] [INF] [22] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[16:29:42] [INF] [22] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -i file:"/media/Video/TV/BanG Dream! It's MyGO!!!!! (2023)/Season 1/BanG Dream! It's MyGO!!!!! - S01E03 - CRYCHIC.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 libx265 -tag:v:0 hvc1 -preset veryfast -crf 28 -maxrate 10315368 -bufsize 20630736 -profile:v:0 main -x265-params:0 subme=3:merange=25:rc-lookahead=10:me=star:ctu=32:max-tu-size=32:min-cu-size=16:rskip=2:rskip-edge-threshold=2:no-sao=1:no-strong-intra-smoothing=1:no-scenecut=1:no-open-gop=1:no-info=1 -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(3840\,2160*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,2160))/2)*2,format=yuv420p,subtitles=f='/media/Video/TV/BanG Dream! It'\\\''s MyGO!!!!! (2023)/Season 1/BanG Dream! It'\\\''s MyGO!!!!! - S01E03 - CRYCHIC.ass':fontsdir='/cache/attachments/cb04141e8a76815f5cb8fe11393ffac4'" -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "2db5c5206becba2bb6635ffb061792e7-1.mp4" -start_number 0 -hls_segment_filename "/cache/transcodes/2db5c5206becba2bb6635ffb061792e7%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8"
[16:30:15] [INF] [22] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:30:15] [ERR] [67] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: A task was canceled. URL GET /videos/cb04141e-8a76-815f-5cb8-fe11393ffac4/hls1/main/-1.mp4.
[16:30:20] [INF] [22] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Killing FFmpeg process for /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:30:20] [INF] [22] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[16:30:20] [INF] [22] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -ss 00:02:21.000 -noaccurate_seek -i file:"/media/Video/TV/BanG Dream! It's MyGO!!!!! (2023)/Season 1/BanG Dream! It's MyGO!!!!! - S01E03 - CRYCHIC.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 libx265 -tag:v:0 hvc1 -preset veryfast -crf 28 -maxrate 10315368 -bufsize 20630736 -profile:v:0 main -x265-params:0 subme=3:merange=25:rc-lookahead=10:me=star:ctu=32:max-tu-size=32:min-cu-size=16:rskip=2:rskip-edge-threshold=2:no-sao=1:no-strong-intra-smoothing=1:no-scenecut=1:no-open-gop=1:no-info=1 -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(3840\,2160*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,2160))/2)*2,format=yuv420p,subtitles=f='/media/Video/TV/BanG Dream! It'\\\''s MyGO!!!!! (2023)/Season 1/BanG Dream! It'\\\''s MyGO!!!!! - S01E03 - CRYCHIC.ass':fontsdir='/cache/attachments/cb04141e8a76815f5cb8fe11393ffac4'" -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "2db5c5206becba2bb6635ffb061792e7-1.mp4" -start_number 47 -hls_segment_filename "/cache/transcodes/2db5c5206becba2bb6635ffb061792e7%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8"
[16:30:20] [ERR] [67] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 137
[16:31:13] [INF] [3] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:31:18] [INF] [3] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Killing FFmpeg process for /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:31:18] [INF] [3] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[16:31:18] [INF] [3] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -i file:"/media/Video/TV/BanG Dream! It's MyGO!!!!! (2023)/Season 1/BanG Dream! It's MyGO!!!!! - S01E03 - CRYCHIC.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 libx265 -tag:v:0 hvc1 -preset veryfast -crf 28 -maxrate 10315368 -bufsize 20630736 -profile:v:0 main -x265-params:0 subme=3:merange=25:rc-lookahead=10:me=star:ctu=32:max-tu-size=32:min-cu-size=16:rskip=2:rskip-edge-threshold=2:no-sao=1:no-strong-intra-smoothing=1:no-scenecut=1:no-open-gop=1:no-info=1 -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(3840\,2160*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,2160))/2)*2,format=yuv420p,subtitles=f='/media/Video/TV/BanG Dream! It'\\\''s MyGO!!!!! (2023)/Season 1/BanG Dream! It'\\\''s MyGO!!!!! - S01E03 - CRYCHIC.ass':fontsdir='/cache/attachments/cb04141e8a76815f5cb8fe11393ffac4'" -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "2db5c5206becba2bb6635ffb061792e7-1.mp4" -start_number 0 -hls_segment_filename "/cache/transcodes/2db5c5206becba2bb6635ffb061792e7%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8"
[16:31:18] [ERR] [3] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 137
[16:31:18] [WRN] [3] Jellyfin.Api.Controllers.DynamicHlsController: cannot serve /cache/transcodes/2db5c5206becba2bb6635ffb061792e748.mp4 as transcoding quit before we got there
[16:31:18] [ERR] [3] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: Could not find file '/cache/transcodes/2db5c5206becba2bb6635ffb061792e748.mp4'. URL GET /videos/cb04141e-8a76-815f-5cb8-fe11393ffac4/hls1/main/48.mp4.
[16:31:27] [INF] [61] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:31:27] [INF] [3] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[16:31:27] [INF] [3] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -i file:"/media/Video/TV/BanG Dream! It's MyGO!!!!! (2023)/Season 1/BanG Dream! It's MyGO!!!!! - S01E03 - CRYCHIC.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 libx265 -tag:v:0 hvc1 -preset veryfast -crf 28 -maxrate 10315368 -bufsize 20630736 -profile:v:0 main -x265-params:0 subme=3:merange=25:rc-lookahead=10:me=star:ctu=32:max-tu-size=32:min-cu-size=16:rskip=2:rskip-edge-threshold=2:no-sao=1:no-strong-intra-smoothing=1:no-scenecut=1:no-open-gop=1:no-info=1 -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(3840\,2160*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,2160))/2)*2,format=yuv420p,subtitles=f='/media/Video/TV/BanG Dream! It'\\\''s MyGO!!!!! (2023)/Season 1/BanG Dream! It'\\\''s MyGO!!!!! - S01E03 - CRYCHIC.ass':fontsdir='/cache/attachments/cb04141e8a76815f5cb8fe11393ffac4'" -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "2db5c5206becba2bb6635ffb061792e7-1.mp4" -start_number 0 -hls_segment_filename "/cache/transcodes/2db5c5206becba2bb6635ffb061792e7%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8"
[16:31:27] [ERR] [11] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: A task was canceled. URL GET /videos/cb04141e-8a76-815f-5cb8-fe11393ffac4/hls1/main/0.mp4.
[16:31:29] [INF] [11] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 192.168.123.142 closed
[16:31:30] [INF] [3] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 192.168.123.142 request
[16:31:32] [INF] [61] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Killing FFmpeg process for /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:31:32] [INF] [61] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:31:33] [ERR] [61] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 137
[16:31:33] [INF] [67] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for admin. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[16:31:33] [INF] [61] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[16:31:33] [INF] [61] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -i file:"/media/Video/TV/BanG Dream! It's MyGO!!!!! (2023)/Season 1/BanG Dream! It's MyGO!!!!! - S01E03 - CRYCHIC.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 libx265 -tag:v:0 hvc1 -preset veryfast -crf 28 -maxrate 10315368 -bufsize 20630736 -profile:v:0 main -x265-params:0 subme=3:merange=25:rc-lookahead=10:me=star:ctu=32:max-tu-size=32:min-cu-size=16:rskip=2:rskip-edge-threshold=2:no-sao=1:no-strong-intra-smoothing=1:no-scenecut=1:no-open-gop=1:no-info=1 -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(3840\,2160*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,2160))/2)*2,format=yuv420p,subtitles=f='/media/Video/TV/BanG Dream! It'\\\''s MyGO!!!!! (2023)/Season 1/BanG Dream! It'\\\''s MyGO!!!!! - S01E03 - CRYCHIC.ass':fontsdir='/cache/attachments/cb04141e8a76815f5cb8fe11393ffac4'" -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "90bcd0f71d95606742392c00799aed7c-1.mp4" -start_number 0 -hls_segment_filename "/cache/transcodes/90bcd0f71d95606742392c00799aed7c%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/90bcd0f71d95606742392c00799aed7c.m3u8"
[16:31:34] [INF] [22] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app Jellyfin Web 10.10.1 playing CRYCHIC. Stopped at 143835 ms
[16:32:24] [INF] [67] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /cache/transcodes/90bcd0f71d95606742392c00799aed7c.m3u8
[16:32:24] [ERR] [24] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: A task was canceled. URL GET /videos/cb04141e-8a76-815f-5cb8-fe11393ffac4/hls1/main/-1.mp4.
[16:32:29] [INF] [24] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Transcoding kill timer stopped for JobId 94c0d0281e374c068b0bb42db64e0571 PlaySessionId 6b6c3e8e527e47a1aaef7c36210d6db2. Killing transcoding
[16:32:29] [INF] [24] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Stopping ffmpeg process with q command for /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:32:29] [ERR] [3] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: A task was canceled. URL GET /videos/cb04141e-8a76-815f-5cb8-fe11393ffac4/hls1/main/0.mp4.
[16:32:29] [INF] [67] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Killing FFmpeg process for /cache/transcodes/90bcd0f71d95606742392c00799aed7c.m3u8
[16:32:29] [INF] [67] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[16:32:29] [INF] [67] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -ss 00:02:24.000 -noaccurate_seek -i file:"/media/Video/TV/BanG Dream! It's MyGO!!!!! (2023)/Season 1/BanG Dream! It's MyGO!!!!! - S01E03 - CRYCHIC.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 libx265 -tag:v:0 hvc1 -preset veryfast -crf 28 -maxrate 10315368 -bufsize 20630736 -profile:v:0 main -x265-params:0 subme=3:merange=25:rc-lookahead=10:me=star:ctu=32:max-tu-size=32:min-cu-size=16:rskip=2:rskip-edge-threshold=2:no-sao=1:no-strong-intra-smoothing=1:no-scenecut=1:no-open-gop=1:no-info=1 -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*a)\,min(3840\,2160*a))/2)*2:trunc(min(max(iw/a\,ih)\,min(3840/a\,2160))/2)*2,format=yuv420p,subtitles=f='/media/Video/TV/BanG Dream! It'\\\''s MyGO!!!!! (2023)/Season 1/BanG Dream! It'\\\''s MyGO!!!!! - S01E03 - CRYCHIC.ass':fontsdir='/cache/attachments/cb04141e8a76815f5cb8fe11393ffac4'" -start_at_zero -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "90bcd0f71d95606742392c00799aed7c-1.mp4" -start_number 48 -hls_segment_filename "/cache/transcodes/90bcd0f71d95606742392c00799aed7c%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/90bcd0f71d95606742392c00799aed7c.m3u8"
[16:32:29] [ERR] [53] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 137
[16:32:34] [INF] [24] MediaBrowser.Controller.MediaEncoding.TranscodingJob: Killing FFmpeg process for /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:32:34] [INF] [24] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) /cache/transcodes/2db5c5206becba2bb6635ffb061792e7.m3u8
[16:32:34] [ERR] [24] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 137
Also, was my summary of the webui font phenomenon earlier correct? Is burning the only best practice for webui fonts?
RE: The burn-in subtitles will become semi-transparent when enable hardware acceleration - nyanmisaka - 2024-11-11
Can you share the SSA/ASS font file?
Which GPU do you use? And the system version and driver version?
RE: The burn-in subtitles will become semi-transparent when enable hardware acceleration - Giresharu - 2024-11-12
(2024-11-11, 10:42 AM)nyanmisaka Wrote: Can you share the SSA/ASS font file?
Which GPU do you use? And the system version and driver version?
The attachment size limit is 2.1MB, and both my fonts and the ASS file exceed this size, making it impossible to upload.
This situation occurs with all ASS subtitles and all fonts.
C/GPU: Intel G4600
System:
[host] Debian GNU/Linux 12 (bookworm)
[container] Debian GNU/Linux 12 (bookworm)
Driver: Intel iHD driver for Intel® Gen Graphics - 24.4.1 (105a308)
Hardware acceleration config:
RE: The burn-in subtitles will become semi-transparent when enable hardware acceleration - TheDreadPirate - 2024-11-12
If it is too large, you can zip the subtitle track and then attach it.
RE: The burn-in subtitles will become semi-transparent when enable hardware acceleration - Giresharu - 2024-11-13
(2024-11-12, 01:39 PM)TheDreadPirate Wrote: If it is too large, you can zip the subtitle track and then attach it.
I did some research on ASS subtitles myself and found the root of the problem. I created an ASS subtitle file with only two lines that can trigger this issue.
test.zip (Size: 712 bytes / Downloads: 4)
The problem is not related to the font, nor to the video. The issues are: The subtitle has transparency.
It might sound silly, but this is indeed a key point that triggers the problem:
When the subtitles are opaque, the issue does not occur.
When the subtitles have a transparent attribute, under QSV hardware acceleration, even a slight transparency is amplified, leading to the semi-transparent issue that I mentioned earlier, which is different from other players. I suspect that there is an incorrect multiplication calculation of the opacity value when burning the subtitles, which is why most opaque subtitles are not affected. Coincidentally, the subtitle group that I like tends to prefer using subtitles that are slightly transparent., so almost all the subtitles in my videos have become excessively transparent.
RE: The burn-in subtitles will become semi-transparent when enable hardware acceleration - Fate - 2024-11-14
hmmm I tried to replicate this... But to me the quicksync compared to hardcoding the subs via libass look exactly the same.
I have modified your testfile a bit...
here is a quick encode on top of big buck bunny
https://mega.nz/folder/v08RCSpQ#go1UpnOeEtjMZepN6Pa70A
RE: The burn-in subtitles will become semi-transparent when enable hardware acceleration - Giresharu - 2024-11-14
(2024-11-14, 02:22 AM)Fate Wrote: hmmm I tried to replicate this... But to me the quicksync compared to hardcoding the subs via libass look exactly the same.
I have modified your testfile a bit...
here is a quick encode on top of big buck bunny
https://mega.nz/folder/v08RCSpQ#go1UpnOeEtjMZepN6Pa70A
This issue does not provide any relevant log information, and it only reproduces on my server. And I’ve reinstalled Jellyfin many times.
What should I do now?
RE: The burn-in subtitles will become semi-transparent when enable hardware acceleration - Fate - 2024-11-14
(2024-11-14, 08:34 AM)Giresharu Wrote: This issue does not provide any relevant log information, and it only reproduces on my server. And I’ve reinstalled Jellyfin many times.
What should I do now? Can you elaborate on which system your jellyfin run at and which distro you are using? Kernel Version?
Intel arc is still a bit new so there still could be some driver bugs left.
|