Jellyfin Forum
Very slow transcoding - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Very slow transcoding (/t-very-slow-transcoding)

Pages: 1 2


Very slow transcoding - Akeldema - 2023-09-14

I have been struggling for a few days now to work out the cause of my transcoding performance issues.
Most shows have a noticeable delay before they start playing 15 to 30 seconds, with movies taking anywhere up to 7 to 10 minutes before playback begins.

I have tried no hardware acceleration along with AMD AMF and VAAPI, VAAPI may have been the fastest but by far the poorest quality once playback started.

Below is one of the ffmpeg logs for the worst example of this, it takes so long to start that it creates a few dozen logs, but they all seem to contain basically the same data.

hardware of the machine doing the transcoding is a AMD 5800x and a AMD RX 7900 XTX

Any input would be much appreciated as this is driving me crazy.

Code:
/videos/64dd4012-a073-0445-e48e-1176172288c4/hls1/main/110.ts

{"Protocol":0,"Id":"64dd4012a0730445e48e1176172288c4","Path":"D:\\SortedTVDB\\TV Shows\\The Garden of Sinners\\Season 01\\The Garden of Sinners - S01E05 - Paradox Spiral.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv,webm","Size":25069588480,"Name":"The Garden of Sinners - S01E05 - Paradox Spiral","IsRemote":false,"ETag":"e15bb80f493571193862610d67175015","RunTimeTicks":68338270208,"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":"h264","CodecTag":null,"Language":"jpn","ColorRange":null,"ColorSpace":"bt709","ColorTransfer":"bt709","ColorPrimaries":"bt709","DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"H.264","VideoRange":"SDR","VideoRangeType":"SDR","VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"H.264 - 1080p - H264 - SDR","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"ChannelLayout":null,"BitRate":29347641,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":23.974426,"RealFrameRate":23.974426,"Profile":"High","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":50,"IsAnamorphic":null},{"Codec":"flac","CodecTag":null,"Language":"jpn","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"FLAC 5.1","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"FLAC 5.1 - Japanese - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":2880000,"BitDepth":24,"RefFrames":null,"PacketLength":null,"Channels":6,"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":"ass","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"Styled Subs [gg-TakaJun]","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Styled Subs [gg-TakaJun] - English - Default - ASS","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":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"ass","CodecTag":null,"Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/1000","CodecTimeBase":null,"Title":"Styled Subs [Retail]","VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","DisplayTitle":"Styled Subs [Retail] - English - ASS","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":null,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":3,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":4,"FileName":"Georgia.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":5,"FileName":"Georgia Italic.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":6,"FileName":"AJensonPro-SemiboldItSubh.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":7,"FileName":"AJensonPro-SemiboldSubh.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":8,"FileName":"AbyssTSFont.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":9,"FileName":"AppleGaramond.TTF","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":10,"FileName":"arial.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":11,"FileName":"AvenirLTStd-Medium.otf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":12,"FileName":"BPreplay.otf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":13,"FileName":"CerigoStd-Medium.otf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":14,"FileName":"ChaparralPro-Semibold.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":15,"FileName":"ChaparralPro-SemiboldIt.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":16,"FileName":"CHOLO___.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":17,"FileName":"erasdus0.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":18,"FileName":"FrancophilSans.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":19,"FileName":"HiroshigeStd-Book.otf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":20,"FileName":"laurencb.ttf","MimeType":"application/x-truetype-font","DeliveryUrl":null},{"Codec":"ttf","CodecTag":"[0][0][0][0]","Comment":null,"Index":21,"FileName":"NITEMARE.TTF","MimeType":"application/x-truetype-font","DeliveryUrl":null}],"Formats":[],"Bitrate":32227641,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

ffmpeg -analyzeduration 200M -ss 00:05:30.000 -init_hw_device d3d11va=dx11:,vendor=0x1002 -init_hw_device opencl=ocl@dx11 -filter_hw_device ocl -hwaccel d3d11va -hwaccel_output_format d3d11 -autorotate 0 -i file:"D:\SortedTVDB\TV Shows\The Garden of Sinners\Season 01\The Garden of Sinners - S01E05 - Paradox Spiral.mkv" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 h264_amf -quality quality -rc cbr -qmin 0 -qmax 32 -b:v 29347641 -maxrate 29347641 -bufsize 58695282 -profile:v:0 high -level 50 -g:v:0 72 -keyint_min:v:0 72 -filter_complex "alphasrc=s=1920x1080:r=10:start='00\:05\:30\.000',format=yuva420p,subtitles=f='D\:/SortedTVDB/TV Shows/The Garden of Sinners/Season 01/The Garden of Sinners - S01E05 - Paradox Spiral.mkv':si=0:alpha=1:sub2video=1:fontsdir='C\:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4',hwupload=derive_device=opencl[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,hwmap=derive_device=opencl,scale_opencl=format=nv12[main];[main][sub]overlay_opencl=eof_action=endall:shortest=1:repeatlast=0,hwmap=derive_device=d3d11va:reverse=1,format=d3d11" -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 384000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 110 -hls_segment_filename "C:\ProgramData\Jellyfin\Server\transcodes\3ad2a0ef72a6334d2a68c55fb1d663ec%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "C:\ProgramData\Jellyfin\Server\transcodes\3ad2a0ef72a6334d2a68c55fb1d663ec.m3u8"


ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 12-win32 (GCC)
  configuration: --prefix=/opt/ffmpeg --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-libs='-lfftw3f -lstdc++' --extra-cflags=-DCHROMAPRINT_NODLL --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --disable-w32threads --enable-pthreads --enable-shared --enable-lto --enable-gpl --enable-version3 --enable-schannel --enable-iconv --enable-libxml2 --enable-zlib --enable-lzma --enable-gmp --enable-chromaprint --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libwebp --enable-libvpx --enable-libzimg --enable-libx264 --enable-libx265 --enable-libsvtav1 --enable-libdav1d --enable-libfdk-aac --enable-opencl --enable-dxva2 --enable-d3d11va --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      57. 28.100 / 57. 28.100
  libavcodec    59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter    8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample  4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
[AVHWDeviceContext @ 00000203d63b7340] Using device 1002:744c (AMD Radeon RX 7900 XTX).
Input #0, matroska,webm, from 'file:D:\SortedTVDB\TV Shows\The Garden of Sinners\Season 01\The Garden of Sinners - S01E05 - Paradox Spiral.mkv':
  Metadata:
    title          : Kara no Kyoukai 5 - Paradox Spiral
    encoder        : libebml v0.8.0 + libmatroska v0.9.0
    creation_time  : 2011-02-24T16:53:31.000000Z
  Duration: 01:53:53.83, start: 0.000000, bitrate: 29347 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 221.972000
      Metadata:
        title          : 00:00:00.000
    Chapter #0:1: start 221.972000, end 377.711000
      Metadata:
        title          : 00:03:41.972
    Chapter #0:2: start 377.711000, end 1022.021000
      Metadata:
        title          : 00:06:17.711
    Chapter #0:3: start 1022.021000, end 1440.147000
      Metadata:
        title          : 00:17:02.021
    Chapter #0:4: start 1440.147000, end 2021.478000
      Metadata:
        title          : 00:24:00.147
    Chapter #0:5: start 2021.478000, end 2507.046000
      Metadata:
        title          : 00:33:41.478
    Chapter #0:6: start 2507.046000, end 2916.413000
      Metadata:
        title          : 00:41:47.046
    Chapter #0:7: start 2916.413000, end 3449.154000
      Metadata:
        title          : 00:48:36.413
    Chapter #0:8: start 3449.154000, end 3810.265000
      Metadata:
        title          : 00:57:29.154
    Chapter #0:9: start 3810.265000, end 3979.309000
      Metadata:
        title          : 01:03:30.265
    Chapter #0:10: start 3979.309000, end 4391.304000
      Metadata:
        title          : 01:06:19.309
    Chapter #0:11: start 4391.304000, end 4690.102000
      Metadata:
        title          : 01:13:11.304
    Chapter #0:12: start 4690.102000, end 5066.395000
      Metadata:
        title          : 01:18:10.102
    Chapter #0:13: start 5066.395000, end 5751.788000
      Metadata:
        title          : 01:24:26.395
    Chapter #0:14: start 5751.788000, end 6266.802000
      Metadata:
        title          : 01:35:51.788
    Chapter #0:15: start 6266.802000, end 6365.693000
      Metadata:
        title          : 01:44:26.802
    Chapter #0:16: start 6365.693000, end 6667.995000
      Metadata:
        title          : 01:46:05.693
    Chapter #0:17: start 6667.995000, end 6751.745000
      Metadata:
        title          : 01:51:07.995
    Chapter #0:18: start 6751.745000, end 6833.827000
      Metadata:
        title          : 01:52:31.745
  Stream #0:0(jpn): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.97 fps, 23.97 tbr, 1k tbn (default)
    Metadata:
      title          : H.264
  Stream #0:1(jpn): Audio: flac, 48000 Hz, 5.1(side), s32 (24 bit) (default)
    Metadata:
      title          : FLAC 5.1
  Stream #0:2(eng): Subtitle: ass (default)
    Metadata:
      title          : Styled Subs [gg-TakaJun]
  Stream #0:3(eng): Subtitle: ass
    Metadata:
      title          : Styled Subs [Retail]
  Stream #0:4: Attachment: ttf
    Metadata:
      filename        : Georgia.ttf
      mimetype        : application/x-truetype-font
  Stream #0:5: Attachment: ttf
    Metadata:
      filename        : Georgia Italic.ttf
      mimetype        : application/x-truetype-font
  Stream #0:6: Attachment: ttf
    Metadata:
      filename        : AJensonPro-SemiboldItSubh.ttf
      mimetype        : application/x-truetype-font
  Stream #0:7: Attachment: ttf
    Metadata:
      filename        : AJensonPro-SemiboldSubh.ttf
      mimetype        : application/x-truetype-font
  Stream #0:8: Attachment: ttf
    Metadata:
      filename        : AbyssTSFont.ttf
      mimetype        : application/x-truetype-font
  Stream #0:9: Attachment: ttf
    Metadata:
      filename        : AppleGaramond.TTF
      mimetype        : application/x-truetype-font
  Stream #0:10: Attachment: ttf
    Metadata:
      filename        : arial.ttf
      mimetype        : application/x-truetype-font
  Stream #0:11: Attachment: ttf
    Metadata:
      filename        : AvenirLTStd-Medium.otf
      mimetype        : application/x-truetype-font
  Stream #0:12: Attachment: ttf
    Metadata:
      filename        : BPreplay.otf
      mimetype        : application/x-truetype-font
  Stream #0:13: Attachment: ttf
    Metadata:
      filename        : CerigoStd-Medium.otf
      mimetype        : application/x-truetype-font
  Stream #0:14: Attachment: ttf
    Metadata:
      filename        : ChaparralPro-Semibold.ttf
      mimetype        : application/x-truetype-font
  Stream #0:15: Attachment: ttf
    Metadata:
      filename        : ChaparralPro-SemiboldIt.ttf
      mimetype        : application/x-truetype-font
  Stream #0:16: Attachment: ttf
    Metadata:
      filename        : CHOLO___.ttf
      mimetype        : application/x-truetype-font
  Stream #0:17: Attachment: ttf
    Metadata:
      filename        : erasdus0.ttf
      mimetype        : application/x-truetype-font
  Stream #0:18: Attachment: ttf
    Metadata:
      filename        : FrancophilSans.ttf
      mimetype        : application/x-truetype-font
  Stream #0:19: Attachment: ttf
    Metadata:
      filename        : HiroshigeStd-Book.otf
      mimetype        : application/x-truetype-font
  Stream #0:20: Attachment: ttf
    Metadata:
      filename        : laurencb.ttf
      mimetype        : application/x-truetype-font
  Stream #0:21: Attachment: ttf
    Metadata:
      filename        : NITEMARE.TTF
      mimetype        : application/x-truetype-font
[Parsed_subtitles_2 @ 00000203d635d5c0] libass API version: 0x1701000
[Parsed_subtitles_2 @ 00000203d635d5c0] libass source: commit: 9b3c0d5b350e13eb69dc87b52751ec0ad44280af
[Parsed_subtitles_2 @ 00000203d635d5c0] Shaper: FriBidi 1.0.12 (SIMPLE) HarfBuzz-ng 7.1.0 (COMPLEX)
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\AbyssTSFont.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\AJensonPro-SemiboldItSubh.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\AJensonPro-SemiboldSubh.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\AppleGaramond.TTF'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\arial.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\AvenirLTStd-Medium.otf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\BPreplay.otf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\CerigoStd-Medium.otf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\ChaparralPro-Semibold.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\ChaparralPro-SemiboldIt.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\CHOLO___.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\erasdus0.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\FrancophilSans.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\Georgia Italic.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\Georgia.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\HiroshigeStd-Book.otf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\laurencb.ttf'
[Parsed_subtitles_2 @ 00000203d635d5c0] Loading font file 'C:/ProgramData/Jellyfin/Server/cache/attachments/64dd4012a0730445e48e1176172288c4\NITEMARE.TTF'
[Parsed_subtitles_2 @ 00000203d635d5c0] Using font provider directwrite (with GDI)



RE: Very slow transcoding - TheDreadPirate - 2023-09-14

Which client are you using. It looks like the issue is with the subtitles and fonts.


RE: Very slow transcoding - Akeldema - 2023-09-14

I have been using the web client in chrome.
your question actually spurred me to try a couple of other clients, both the Official desktop client and Edge will play without transcoding, never occurred to me that chrome was just being the problem.

Is there any way to get chrome to be able to play these files without transcoding, or should I just forget about using chrome and move across to either Edge or the Official Desktop app


RE: Very slow transcoding - TheDreadPirate - 2023-09-14

Your system SHOULD be able to transcode, no problem. I would need to see your main jellyfin log to figure out why it wanted to transcode and if there are any other errors that aren't in the ffmpeg log.


RE: Very slow transcoding - Akeldema - 2023-09-14

This is the main log_20230915.log file up until the point playback resumed. 
If you need a larger log let me know, this is from a fresh restart of the server.

Code:
[2023-09-15 01:10:54.924 +10:00] [INF] [1] Main: Jellyfin version: "10.8.10"
[2023-09-15 01:10:54.940 +10:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, C:\ProgramData\Jellyfin\Server\log]"]
[2023-09-15 01:10:54.943 +10:00] [INF] [1] Main: Arguments: ["C:\Program Files\Jellyfin\Server\jellyfin.dll", "--datadir", "C:\ProgramData\Jellyfin\Server"]
[2023-09-15 01:10:54.945 +10:00] [INF] [1] Main: Operating system: "Windows"
[2023-09-15 01:10:54.946 +10:00] [INF] [1] Main: Architecture: X64
[2023-09-15 01:10:54.947 +10:00] [INF] [1] Main: 64-Bit Process: True
[2023-09-15 01:10:54.949 +10:00] [INF] [1] Main: User Interactive: True
[2023-09-15 01:10:54.950 +10:00] [INF] [1] Main: Processor count: 16
[2023-09-15 01:10:54.951 +10:00] [INF] [1] Main: Program data path: "C:\ProgramData\Jellyfin\Server"
[2023-09-15 01:10:54.952 +10:00] [INF] [1] Main: Web resources path: "C:\Program Files\Jellyfin\Server\jellyfin-web"
[2023-09-15 01:10:54.952 +10:00] [INF] [1] Main: Application directory: "C:\Program Files\Jellyfin\Server\"
[2023-09-15 01:10:55.056 +10:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2023-09-15 01:10:55.090 +10:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2023-09-15 01:10:55.100 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.AniList, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null" from "C:\ProgramData\Jellyfin\Server\plugins\AniList_5.0.0.0\Jellyfin.Plugin.AniList.dll"
[2023-09-15 01:10:55.103 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "Jellyfin.Plugin.Tvdb, Version=10.0.0.0, Culture=neutral, PublicKeyToken=null" from "C:\ProgramData\Jellyfin\Server\plugins\TheTVDB_10.0.0.0\Jellyfin.Plugin.Tvdb.dll"
[2023-09-15 01:10:55.105 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded assembly "TvDbSharper, Version=3.2.2.0, Culture=neutral, PublicKeyToken=null" from "C:\ProgramData\Jellyfin\Server\plugins\TheTVDB_10.0.0.0\TvDbSharper.dll"
[2023-09-15 01:10:55.196 +10:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN addresses : "[10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]"
[2023-09-15 01:10:55.197 +10:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions : "[]"
[2023-09-15 01:10:55.199 +10:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using LAN addresses: "[10.0.0.0/8,172.16.0.0/12,192.168.0.0/16]"
[2023-09-15 01:10:55.207 +10:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind addresses: "[]"
[2023-09-15 01:10:55.208 +10:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Using bind exclusions: "[]"
[2023-09-15 01:10:57.291 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AniList" "5.0.0.0"
[2023-09-15 01:10:57.293 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TheTVDB" "10.0.0.0"
[2023-09-15 01:10:57.296 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.8.10.0"
[2023-09-15 01:10:57.298 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.8.10.0"
[2023-09-15 01:10:57.300 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.8.10.0"
[2023-09-15 01:10:57.301 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.8.10.0"
[2023-09-15 01:10:57.303 +10:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.8.10.0"
[2023-09-15 01:10:57.346 +10:00] [INF] [1] Main: Kestrel listening on "Any IP4 Address"
[2023-09-15 01:10:57.589 +10:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[2023-09-15 01:10:57.611 +10:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extract Chapter Images" set to fire at 2023-09-15 02:00:00.000 +10:00, which is 00:49:02.3886717 from now.
[2023-09-15 01:10:57.670 +10:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version "5.1.3"
[2023-09-15 01:10:57.720 +10:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available "decoders": ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "dca", "flac", "mp3", "truehd"]
[2023-09-15 01:10:57.791 +10:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available "encoders": ["libx264", "h264_amf", "h264_nvenc", "h264_qsv", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
[2023-09-15 01:10:57.836 +10:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available filters: ["deinterlace_qsv", "hwupload_cuda", "hwupload_vaapi", "overlay_opencl", "overlay_qsv", "overlay_cuda", "scale_cuda", "scale_opencl", "scale_qsv", "tonemap_cuda", "tonemap_opencl", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
[2023-09-15 01:10:58.010 +10:00] [WRN] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Filter: "overlay_vaapi" with option "Action to take when encountering EOF from secondary input" is not available
[2023-09-15 01:10:58.050 +10:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["cuda", "dxva2", "qsv", "d3d11va", "opencl"]
[2023-09-15 01:10:58.161 +10:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: "ffmpeg"
[2023-09-15 01:10:58.163 +10:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: "168108103bfd4d8893ab1499608b1891"
[2023-09-15 01:10:58.235 +10:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all pre-startup entry points in 0:00:00.0662117
[2023-09-15 01:10:58.236 +10:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete
[2023-09-15 01:10:58.349 +10:00] [INF] [14] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "D:\SortedTVDB\TV Shows"
[2023-09-15 01:10:58.349 +10:00] [INF] [7] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "D:\SortedTVDB\Movies"
[2023-09-15 01:10:58.352 +10:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Executed all post-startup entry points in 0:00:00.1153048
[2023-09-15 01:10:58.353 +10:00] [INF] [1] Main: Startup complete 0:00:03.5425721
[2023-09-15 01:10:58.586 +10:00] [INF] [7] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "127.0.0.1" request
[2023-09-15 01:11:00.618 +10:00] [INF] [7] Emby.Server.Implementations.ScheduledTasks.TaskManager: "StartupTrigger" fired for task: "Update Plugins"
[2023-09-15 01:11:00.619 +10:00] [INF] [7] Emby.Server.Implementations.ScheduledTasks.TaskManager: Queuing task "PluginUpdateTask"
[2023-09-15 01:11:00.622 +10:00] [INF] [14] Emby.Server.Implementations.ScheduledTasks.TaskManager: Executing "Update Plugins"
[2023-09-15 01:11:02.317 +10:00] [INF] [14] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Update Plugins" Completed after 0 minute(s) and 1 seconds
[2023-09-15 01:11:02.323 +10:00] [INF] [14] Emby.Server.Implementations.ScheduledTasks.TaskManager: ExecuteQueuedTasks
[2023-09-15 01:11:03.326 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"AccessSchedule"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.329 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"ActivityLog"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.331 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"CustomItemDisplayPreferences"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.332 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"DisplayPreferences"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.334 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"HomeSection"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.336 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"ImageInfo"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.337 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"ItemDisplayPreferences"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.339 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"Permission"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.340 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"Preference"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.342 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"ApiKey"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.344 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"Device"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.346 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"DeviceOptions"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.349 +10:00] [WRN] [9] Microsoft.EntityFrameworkCore.Model.Validation: The entity type '"User"' is configured to use schema '"jellyfin"', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[2023-09-15 01:11:03.569 +10:00] [INF] [14] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "127.0.0.1" request
[2023-09-15 01:11:17.338 +10:00] [INF] [10] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "akeld". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-09-15 01:11:17.401 +10:00] [INF] [10] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Anonymous Profile", Path="D:\SortedTVDB\TV Shows\Fate Stay Night - Unlimited Blade Works\Specials\Fate Stay Night - Unlimited Blade Works - S00E01 - Prologue.mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=Transcode, TranscodeReason=VideoCodecNotSupported, AudioCodecNotSupported, SubtitleCodecNotSupported ) "media:/videos/2dc2e538-9daa-a7a8-3117-6b1f5d866bdd/master.m3u8?MediaSourceId=2dc2e5389daaa7a831176b1f5d866bdd&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=139616000&AudioBitrate=384000&MaxFramerate=23.976025&api_key=<token>&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=26884d658c25ef8f27c208a63018e4a7&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=120&hevc-videobitdepth=10&hevc-profile=main10&TranscodeReasons=VideoCodecNotSupported,%20AudioCodecNotSupported,%20SubtitleCodecNotSupported"
[2023-09-15 01:11:17.814 +10:00] [INF] [9] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-09-15 01:11:17.837 +10:00] [INF] [9] Jellyfin.Api.Helpers.TranscodingJobHelper: "ffmpeg" "-analyzeduration 200M -init_hw_device d3d11va=dx11:,vendor=0x1002 -init_hw_device opencl=ocl@dx11 -filter_hw_device ocl -hwaccel d3d11va -hwaccel_output_format d3d11 -autorotate 0 -i file:\"D:\SortedTVDB\TV Shows\Fate Stay Night - Unlimited Blade Works\Specials\Fate Stay Night - Unlimited Blade Works - S00E01 - Prologue.mkv\" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 h264_amf -quality speed -rc cbr -qmin 0 -qmax 32 -b:v 11326471 -maxrate 11326471 -bufsize 22652942 -g:v:0 72 -keyint_min:v:0 72 -filter_complex \"alphasrc=s=1920x1080:r=10:start='0',format=yuva420p,subtitles=f='D\:/SortedTVDB/TV Shows/Fate Stay Night - Unlimited Blade Works/Specials/Fate Stay Night - Unlimited Blade Works - S00E01 - Prologue.mkv':si=0:alpha=1:sub2video=1:fontsdir='C\:/ProgramData/Jellyfin/Server/cache/attachments/2dc2e5389daaa7a831176b1f5d866bdd',hwupload=derive_device=opencl[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,hwmap=derive_device=opencl,scale_opencl=format=nv12[main];[main][sub]overlay_opencl=eof_action=endall:shortest=1:repeatlast=0,hwmap=derive_device=d3d11va:reverse=1,format=d3d11\" -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 256000 -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 \"C:\ProgramData\Jellyfin\Server\transcodes\2f50c8fee91742f9807e130a17407658%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"C:\ProgramData\Jellyfin\Server\transcodes\2f50c8fee91742f9807e130a17407658.m3u8\""
[2023-09-15 01:11:46.826 +10:00] [INF] [20] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2023-09-15 01:11:58.840 +10:00] [INF] [10] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 1 WebSockets.
[2023-09-15 01:12:07.846 +10:00] [WRN] [18] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://localhost:8096/videos/2dc2e538-9daa-a7a8-3117-6b1f5d866bdd/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzExMi4wLjAuMCBTYWZhcmkvNTM3LjM2fDE2ODMwMjA3NjcyMjI1&MediaSourceId=2dc2e5389daaa7a831176b1f5d866bdd&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=139616000&AudioBitrate=384000&MaxFramerate=23.976025&PlaySessionId=45b989dee4934063b7cf2f4b9f547197&api_key=14b97c83603647628b8dde33a3d92079&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=26884d658c25ef8f27c208a63018e4a7&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=120&hevc-videobitdepth=10&hevc-profile=main10&TranscodeReasons=VideoCodecNotSupported,%20AudioCodecNotSupported,%20SubtitleCodecNotSupported&runtimeTicks=0&actualSegmentLengthTicks=30000000" to "127.0.0.1" in 0:00:50.0457049 with Status Code 200
[2023-09-15 01:12:07.846 +10:00] [WRN] [10] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://localhost:8096/videos/2dc2e538-9daa-a7a8-3117-6b1f5d866bdd/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzExMi4wLjAuMCBTYWZhcmkvNTM3LjM2fDE2ODMwMjA3NjcyMjI1&MediaSourceId=2dc2e5389daaa7a831176b1f5d866bdd&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=139616000&AudioBitrate=384000&MaxFramerate=23.976025&PlaySessionId=45b989dee4934063b7cf2f4b9f547197&api_key=14b97c83603647628b8dde33a3d92079&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=26884d658c25ef8f27c208a63018e4a7&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=120&hevc-videobitdepth=10&hevc-profile=main10&TranscodeReasons=VideoCodecNotSupported,%20AudioCodecNotSupported,%20SubtitleCodecNotSupported&runtimeTicks=0&actualSegmentLengthTicks=30000000" to "127.0.0.1" in 0:00:28.8992818 with Status Code 200
[2023-09-15 01:12:07.846 +10:00] [WRN] [32] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://localhost:8096/videos/2dc2e538-9daa-a7a8-3117-6b1f5d866bdd/hls1/main/0.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzExMi4wLjAuMCBTYWZhcmkvNTM3LjM2fDE2ODMwMjA3NjcyMjI1&MediaSourceId=2dc2e5389daaa7a831176b1f5d866bdd&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=139616000&AudioBitrate=384000&MaxFramerate=23.976025&PlaySessionId=45b989dee4934063b7cf2f4b9f547197&api_key=14b97c83603647628b8dde33a3d92079&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=26884d658c25ef8f27c208a63018e4a7&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=120&hevc-videobitdepth=10&hevc-profile=main10&TranscodeReasons=VideoCodecNotSupported,%20AudioCodecNotSupported,%20SubtitleCodecNotSupported&runtimeTicks=0&actualSegmentLengthTicks=30000000" to "127.0.0.1" in 0:00:06.6995479 with Status Code 200
[2023-09-15 01:12:08.006 +10:00] [INF] [18] Jellyfin.Api.Helpers.TranscodingJobHelper: Stopping ffmpeg process with q command for "C:\ProgramData\Jellyfin\Server\transcodes\2f50c8fee91742f9807e130a17407658.m3u8"
[2023-09-15 01:12:08.333 +10:00] [INF] [18] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0
[2023-09-15 01:12:08.335 +10:00] [INF] [18] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2023-09-15 01:12:08.337 +10:00] [INF] [18] Jellyfin.Api.Helpers.TranscodingJobHelper: "ffmpeg" "-analyzeduration 200M -ss 00:39:48.000 -init_hw_device d3d11va=dx11:,vendor=0x1002 -init_hw_device opencl=ocl@dx11 -filter_hw_device ocl -hwaccel d3d11va -hwaccel_output_format d3d11 -autorotate 0 -i file:\"D:\SortedTVDB\TV Shows\Fate Stay Night - Unlimited Blade Works\Specials\Fate Stay Night - Unlimited Blade Works - S00E01 - Prologue.mkv\" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 h264_amf -quality speed -rc cbr -qmin 0 -qmax 32 -b:v 11326471 -maxrate 11326471 -bufsize 22652942 -g:v:0 72 -keyint_min:v:0 72 -filter_complex \"alphasrc=s=1920x1080:r=10:start='00\:39\:48\.000',format=yuva420p,subtitles=f='D\:/SortedTVDB/TV Shows/Fate Stay Night - Unlimited Blade Works/Specials/Fate Stay Night - Unlimited Blade Works - S00E01 - Prologue.mkv':si=0:alpha=1:sub2video=1:fontsdir='C\:/ProgramData/Jellyfin/Server/cache/attachments/2dc2e5389daaa7a831176b1f5d866bdd',hwupload=derive_device=opencl[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,hwmap=derive_device=opencl,scale_opencl=format=nv12[main];[main][sub]overlay_opencl=eof_action=endall:shortest=1:repeatlast=0,hwmap=derive_device=d3d11va:reverse=1,format=d3d11\" -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 256000 -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 796 -hls_segment_filename \"C:\ProgramData\Jellyfin\Server\transcodes\2f50c8fee91742f9807e130a17407658%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"C:\ProgramData\Jellyfin\Server\transcodes\2f50c8fee91742f9807e130a17407658.m3u8\""
[2023-09-15 01:12:12.424 +10:00] [WRN] [33] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://localhost:8096/videos/2dc2e538-9daa-a7a8-3117-6b1f5d866bdd/hls1/main/796.ts?DeviceId=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzExMi4wLjAuMCBTYWZhcmkvNTM3LjM2fDE2ODMwMjA3NjcyMjI1&MediaSourceId=2dc2e5389daaa7a831176b1f5d866bdd&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=139616000&AudioBitrate=384000&MaxFramerate=23.976025&PlaySessionId=45b989dee4934063b7cf2f4b9f547197&api_key=14b97c83603647628b8dde33a3d92079&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=26884d658c25ef8f27c208a63018e4a7&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=120&hevc-videobitdepth=10&hevc-profile=main10&TranscodeReasons=VideoCodecNotSupported,%20AudioCodecNotSupported,%20SubtitleCodecNotSupported&runtimeTicks=23880000000&actualSegmentLengthTicks=30000000" to "127.0.0.1" in 0:00:04.4249569 with Status Code 200
[2023-09-15 01:12:51.633 +10:00] [INF] [37] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 0



RE: Very slow transcoding - TheDreadPirate - 2023-09-14

Your log looks normal. Including the fact that ffmpeg exited with code 0 (no problems). How much of this guide did you follow?

https://jellyfin.org/docs/general/administration/hardware-acceleration/amd/#windows-setups


RE: Very slow transcoding - Akeldema - 2023-09-14

I believe when I first set it up I followed the documentation, I'll go over it from scratch tomorrow and see if it yields any improvements.


RE: Very slow transcoding - Akeldema - 2023-09-15

I have gone back over the documentation and verified that it is all set up accordingly.

the only thing of interest I noticed while doing is while Jellyfin is sitting there frozen FFMPEG is hitting my HDD at its maximum read speed while the GPU is inactive, once the file starts playing the GPU kicks in and the encoding is obviously being done by the GPU.

Now I obviously have no understanding of the innerworkings of FFMPEG, but if its sitting here for 8 minutes reading the same file at 210MB/s there's something not quite right going on.


RE: Very slow transcoding - TheDreadPirate - 2023-09-15

The only thing that makes sense to me is the many TTF based subtitle tracks in your media. There's gotta be some sort of interaction or rendering with the fonts going on. Do you happen to have any media that DOESN'T have TTF (custom fonts) subtitles? What happens when you try to transcode those?


RE: Very slow transcoding - Akeldema - 2023-09-15

I think pretty much everything I have has .ASS subtitles, the one series I know for sure that does not have them has a strange display issue in chrome/jellyfin for the subtitles, but does not need to transcode.
FFMPEG log for the non .ASS series https://pastebin.com/GEAkzZeM sorry for the pastebin, the log was too big for a comment.