Jellyfin Forum
SOLVED: Hardware transcoding issue - AMD 5700G - 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: SOLVED: Hardware transcoding issue - AMD 5700G (/t-solved-hardware-transcoding-issue-amd-5700g)



Hardware transcoding issue - AMD 5700G - Nihalvm - 2023-08-19

I recently moved from Jellyfin on docker to a native linux installation on debian 12 thinking hardware decoding would be easier without the need for gpu passthrough. But having issues playing a few HVEC videos on the Jellyfin Android TV client. It works fine for most videos and a few HVEC files as well.
I get an error saying, "Player encountered error. will retry" and something like "too many errors. giving up".

*The same videos work fine and play with transcoding on Jellyfin Android app on my phone and Tablet. * Its just the Jellyfin Android TV client that has the issue.

I have a AMD 7 5700G. I am using the igpu for hardware transcoding. I thought 5700G would support HVEC 10 bit decoding.

Rellay appreciate your help

ffnpeg log below:
Code:
ffmpeg version 6.0-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  libavutil      58.  2.100 / 58.  2.100
  libavcodec    60.  3.100 / 60.  3.100
  libavformat    60.  3.100 / 60.  3.100
  libavdevice    60.  1.100 / 60.  1.100
  libavfilter    9.  3.100 /  9.  3.100
  libswscale      7.  1.100 /  7.  1.100
  libswresample  4. 10.100 /  4. 10.100
  libpostproc    57.  1.100 / 57.  1.100
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 4 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 5 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 6 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 7 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 8 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 9 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 10 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 11 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 12 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
[matroska,webm @ 0x5652c6619000] Could not find codec parameters for stream 13 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size
Consider increasing the value for the 'analyzeduration' (200000000) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'file:/mnt/truenas/media/Movies/The Lion King (1994)/The Lion King (1994) Bluray-2160p.mkv':
  Metadata:
    encoder        : libebml v1.4.1 + libmatroska v1.6.2
    creation_time  : 2021-05-15T17:59:47.000000Z
  Duration: 01:28:23.55, start: 0.000000, bitrate: 18134 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 280.071000
      Metadata:
        title          : "Circle of Life"
    Chapter #0:1: start 280.071000, end 490.407000
      Metadata:
        title          : Scar
    Chapter #0:2: start 490.407000, end 688.980000
      Metadata:
        title          : Father and Son/Morning Report
    Chapter #0:3: start 688.980000, end 849.557000
      Metadata:
        title          : Uncle Scar
    Chapter #0:4: start 849.557000, end 1071.028000
      Metadata:
        title          : "I Just Can't Wait to Be King"
    Chapter #0:5: start 1071.028000, end 1374.748000
      Metadata:
        title          : Elephant Graveyard
    Chapter #0:6: start 1374.748000, end 1536.118000
      Metadata:
        title          : Under the Stars
    Chapter #0:7: start 1536.118000, end 1824.197000
      Metadata:
        title          : "Be Prepared"
    Chapter #0:8: start 1824.197000, end 2152.150000
      Metadata:
        title          : Stampede
    Chapter #0:9: start 2152.150000, end 2414.078000
      Metadata:
        title          : The King Is Dead
    Chapter #0:10: start 2414.078000, end 2474.430000
      Metadata:
        title          : Scar Takes Over
    Chapter #0:11: start 2474.430000, end 2656.946000
      Metadata:
        title          : Timon and Pumbaa
    Chapter #0:12: start 2656.946000, end 2900.564000
      Metadata:
        title          : "Hakuna Matata"
    Chapter #0:13: start 2900.564000, end 3007.213000
      Metadata:
        title          : Scar in Command
    Chapter #0:14: start 3007.213000, end 3194.775000
      Metadata:
        title          : Pumbaa and Timon Wax Philosophical
    Chapter #0:15: start 3194.775000, end 3470.842000
      Metadata:
        title          : Nala and Simba Reunite
    Chapter #0:16: start 3470.842000, end 3656.570000
      Metadata:
        title          : "Can You Feel the Love Tonight"
    Chapter #0:17: start 3656.570000, end 3752.332000
      Metadata:
        title          : Trouble in Paradise
    Chapter #0:18: start 3752.332000, end 4129.625000
      Metadata:
        title          : He Lives in You
    Chapter #0:19: start 4129.625000, end 4361.023000
      Metadata:
        title          : Simba Returns
    Chapter #0:20: start 4361.023000, end 4602.306000
      Metadata:
        title          : Simba Confronts Scar
    Chapter #0:21: start 4602.306000, end 4845.132000
      Metadata:
        title          : The Fight
    Chapter #0:22: start 4845.132000, end 5003.874000
      Metadata:
        title          : Simba Ascends
    Chapter #0:23: start 5003.874000, end 5303.552000
      Metadata:
        title          : End Credits
  Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn (default)
    Metadata:
      BPS-eng        : 8185067
      DURATION-eng    : 01:28:23.548000000
      NUMBER_OF_FRAMES-eng: 127158
      NUMBER_OF_BYTES-eng: 5426237311
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: truehd, 48000 Hz, 7.1, s32 (24 bit) (default)
    Metadata:
      title          : Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 8910 kbps / 24-bit
      BPS-eng        : 8909710
      DURATION-eng    : 01:28:23.550000000
      NUMBER_OF_FRAMES-eng: 6364259
      NUMBER_OF_BYTES-eng: 5906636660
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
    Metadata:
      title          : Compatibility Track
      BPS-eng        : 640000
      DURATION-eng    : 01:28:23.552000000
      NUMBER_OF_FRAMES-eng: 165736
      NUMBER_OF_BYTES-eng: 424284160
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Metadata:
      title          : Commentary by producer Don Hahn, and co-directors
      BPS-eng        : 192000
      DURATION-eng    : 01:28:23.552000000
      NUMBER_OF_FRAMES-eng: 165736
      NUMBER_OF_BYTES-eng: 127285248
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title          : SDH
      BPS-eng        : 38074
      DURATION-eng    : 01:27:26.574000000
      NUMBER_OF_FRAMES-eng: 2660
      NUMBER_OF_BYTES-eng: 24969819
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:5(chi): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title          : Mandarin Traditional
      BPS-eng        : 23968
      DURATION-eng    : 01:26:34.606000000
      NUMBER_OF_FRAMES-eng: 2288
      NUMBER_OF_BYTES-eng: 15563405
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:6(fre): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng        : 32424
      DURATION-eng    : 01:26:34.814000000
      NUMBER_OF_FRAMES-eng: 2244
      NUMBER_OF_BYTES-eng: 21054708
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:7(ger): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng        : 40714
      DURATION-eng    : 01:21:48.028000000
      NUMBER_OF_FRAMES-eng: 2312
      NUMBER_OF_BYTES-eng: 24978521
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:8(jpn): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng        : 27118
      DURATION-eng    : 01:20:44.257000000
      NUMBER_OF_FRAMES-eng: 1996
      NUMBER_OF_BYTES-eng: 16421287
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:9(kor): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng        : 18201
      DURATION-eng    : 01:26:34.606000000
      NUMBER_OF_FRAMES-eng: 2270
      NUMBER_OF_BYTES-eng: 11818489
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:10(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title          : Latin American
      BPS-eng        : 30452
      DURATION-eng    : 01:26:34.565000000
      NUMBER_OF_FRAMES-eng: 2238
      NUMBER_OF_BYTES-eng: 19773240
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:11(eng): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title          : Commentary by producer Don Hahn, and co-directors
      BPS-eng        : 94841
      DURATION-eng    : 01:27:54.770000000
      NUMBER_OF_FRAMES-eng: 3842
      NUMBER_OF_BYTES-eng: 62533375
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:12(fre): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title          : Commentary by producer Don Hahn, and co-directors
      BPS-eng        : 66037
      DURATION-eng    : 01:27:55.478000000
      NUMBER_OF_FRAMES-eng: 2900
      NUMBER_OF_BYTES-eng: 43547708
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:13(spa): Subtitle: hdmv_pgs_subtitle
    Metadata:
      title          : Commentary by producer Don Hahn, and co-directors
      BPS-eng        : 66987
      DURATION-eng    : 01:27:55.520000000
      NUMBER_OF_FRAMES-eng: 2952
      NUMBER_OF_BYTES-eng: 44174132
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
  Stream #0:1 -> #0:1 (truehd (native) -> aac (libfdk_aac))
  Stream #0:4 -> #0:2 (copy)
Press [q] to stop, [?] for help
[h264_vaapi @ 0x5652c6642900] Driver does not support some wanted packed headers (wanted 0xd, found 0x1).
Output #0, matroska, to '/mnt/truenas/jellyfin/transcodes/e2d219edc89b92b2df69f4bf22ae3943.mkv':
  Metadata:
    encoder        : Lavf60.3.100
  Stream #0:0: Video: h264 (High) (H264 / 0x34363248), vaapi(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 18134 kb/s, 23.98 fps, 1k tbn (default)
    Metadata:
      BPS-eng        : 8185067
      DURATION-eng    : 01:28:23.548000000
      NUMBER_OF_FRAMES-eng: 127158
      NUMBER_OF_BYTES-eng: 5426237311
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      encoder        : Lavc60.3.100 h264_vaapi
  Stream #0:1(eng): Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, 7.1(wide), s16, 640 kb/s (default)
    Metadata:
      title          : Dolby TrueHD/Atmos Audio / 7.1 / 48 kHz / 8910 kbps / 24-bit
      BPS-eng        : 8909710
      DURATION-eng    : 01:28:23.550000000
      NUMBER_OF_FRAMES-eng: 6364259
      NUMBER_OF_BYTES-eng: 5906636660
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      encoder        : Lavc60.3.100 libfdk_aac
  Stream #0:2(eng): Subtitle: hdmv_pgs_subtitle ([255][255][255][255] / 0xFFFFFFFF) (default)
    Metadata:
      title          : SDH
      BPS-eng        : 38074
      DURATION-eng    : 01:27:26.574000000
      NUMBER_OF_FRAMES-eng: 2660
      NUMBER_OF_BYTES-eng: 24969819
      _STATISTICS_WRITING_APP-eng: mkvmerge v53.0.0 ('Fool's Gold') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-05-15 17:59:47
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
frame=    0 fps=0.0 q=0.0 size=      2kB time=00:00:00.00 bitrate=N/A speed=  0x   
frame=  25 fps=0.0 q=-0.0 size=      2kB time=00:00:00.96 bitrate=  16.9kbits/s speed=1.68x   
frame=  55 fps= 51 q=-0.0 size=      2kB time=00:00:02.30 bitrate=  7.0kbits/s speed=2.12x   
frame=  82 fps= 52 q=-0.0 size=      2kB time=00:00:03.37 bitrate=  4.8kbits/s speed=2.13x   
frame=  111 fps= 53 q=-0.0 size=      2kB time=00:00:04.71 bitrate=  3.4kbits/s speed=2.24x   
frame=  139 fps= 53 q=-0.0 size=      2kB time=00:00:05.67 bitrate=  2.9kbits/s speed=2.17x   
frame=  167 fps= 53 q=-0.0 size=      2kB time=00:00:06.97 bitrate=  2.3kbits/s speed=2.23x   
frame=  195 fps= 54 q=-0.0 size=      2kB time=00:00:08.04 bitrate=  2.0kbits/s speed=2.21x   
frame=  223 fps= 54 q=-0.0 size=      2kB time=00:00:09.28 bitrate=  1.7kbits/s speed=2.25x   
frame=  252 fps= 54 q=-0.0 size=      2kB time=00:00:10.38 bitrate=  1.6kbits/s speed=2.24x   
frame=  280 fps= 54 q=-0.0 size=      2kB time=00:00:11.69 bitrate=  1.4kbits/s speed=2.27x   
av_interleaved_write_frame(): Permission denied
[out#0/matroska @ 0x5652c6b0d7c0] Error muxing a packet
frame=  306 fps= 54 q=-0.0 size=      2kB time=00:00:12.92 bitrate=  1.3kbits/s speed=2.29x   
frame=  306 fps= 50 q=-0.0 size=      2kB time=00:00:12.94 bitrate=  1.3kbits/s speed= 2.1x   
frame=  306 fps= 46 q=-0.0 size=      2kB time=00:00:12.94 bitrate=  1.3kbits/s speed=1.94x   
frame=  306 fps= 43 q=-0.0 size=      2kB time=00:00:12.94 bitrate=  1.3kbits/s speed=1.81x   
frame=  306 fps= 40 q=-0.0 size=      2kB time=00:00:12.94 bitrate=  1.3kbits/s speed=1.69x   
frame=  306 fps= 37 q=-0.0 size=      2kB time=00:00:12.94 bitrate=  1.3kbits/s speed=1.59x   
frame=  306 fps= 35 q=-0.0 size=      2kB time=00:00:12.94 bitrate=  1.3kbits/s speed=1.49x   
frame=  306 fps= 33 q=-0.0 size=      2kB time=00:00:12.94 bitrate=  1.3kbits/s speed=1.41x   
[out#0/matroska @ 0x5652c6b0d7c0] Error writing trailer: Permission denied
frame=  306 fps= 33 q=-0.0 Lsize=      2kB time=00:00:34.11 bitrate=  0.5kbits/s speed= 3.7x   
video:25475kB audio:1038kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!



RE: Hardware transcoding issue - AMD 5700G - TheDreadPirate - 2023-08-19

Does jellyfin have permission to write to /mnt/truenas/jellyfin/transcodes/?


RE: Hardware transcoding issue - AMD 5700G - Nihalvm - 2023-08-19

Yes it does. The playback in inconsistent in the sense, the same file will play fine with transcoding on the web browser, but will not play when using the Android TV client. Some videos play on the Android app on my phone as well, but will not play on the Android TV client.


RE: Hardware transcoding issue - AMD 5700G - TheDreadPirate - 2023-08-20

There is a setting in the Android TV app to send logs to the server. Enable that and then replicate this problem. Maybe something in the client logs will help us figure out what is going on.


RE: Hardware transcoding issue - AMD 5700G - Nihalvm - 2023-08-20

Those settings were already turned on. Here is a recent log the jellyfin_log file.

I have spent a bit more time testing various files I have and it looks like any file that has Dolby TrueHD audio doesn't work. If it's just AAC 7.1 channel it still plays fine.
This is an issue when I select exoplayer. If I change the player to an external and select MX Player, then it gives me an error that aTrueHD audio is not supported and allows me to select another audio stream.

Shouldn't it just transcode the audio file if it's not supported by exoplayer?
As mentioned in the web browser, all files play correctly.

Code:
[2023-08-20 03:31:31.036 +00:00] [INF] User policy for "nihalvm". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-08-20 03:31:31.036 +00:00] [INF] StreamBuilder.BuildVideoItem( Profile="AndroidTV-ExoPlayer", Path="/mnt/truenas/media/Movies/Shazam! Fury of the Gods (2023)/Shazam! Fury of the Gods (2023) Bluray-2160p.mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=Transcode, TranscodeReason=SubtitleCodecNotSupported ) "media:/videos/6cb14c97-3a21-9533-e1d9-9655f44e53ef/master.m3u8?MediaSourceId=6cb14c973a219533e1d99655f44e53ef&VideoCodec=hevc,h264,hevc&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=99234351&AudioBitrate=765649&AudioSampleRate=48000&MaxFramerate=23.976025&api_key=<token>&SubtitleMethod=Encode&RequireAvc=false&Tag=351743fbbff44666319705eb460958ad&SegmentContainer=ts&BreakOnNonKeyFrames=False&hevc-level=150&hevc-videobitdepth=10&hevc-profile=main10&hevc-audiochannels=8&aac-profile=lc&aac-audiochannels=8&TranscodeReasons=SubtitleCodecNotSupported"
[2023-08-20 03:31:31.077 +00:00] [INF] Adding playback tracker : a57b74ea95bf392d6e519c98b1bfb67d6845b322-4c5511d06e57405086f96eef381565bb-6cb14c973a219533e1d99655f44e53ef
[2023-08-20 03:31:31.077 +00:00] [INF] PlaybackTracker : Adding Start Event : 08/20/2023 03:31:31
[2023-08-20 03:31:31.078 +00:00] [INF] Creating StartPlaybackTimer Task
[2023-08-20 03:31:31.079 +00:00] [INF] StartPlaybackTimer : Entered
[2023-08-20 03:31:31.219 +00:00] [INF] FFmpeg exited with code 0
[2023-08-20 03:31:31.219 +00:00] [INF] Deleting partial stream file(s) "/var/lib/jellyfin/transcodes/dda87d95477938051e141387a07f823b.m3u8"
[2023-08-20 03:31:31.221 +00:00] [WRN] Slow HTTP Response from "http://10.0.0.108:8096/videos/6cb14c97-3a21-9533-e1d9-9655f44e53ef/hls1/main/1.ts?DeviceId=a57b74ea95bf392d6e519c98b1bfb67d6845b322&MediaSourceId=6cb14c973a219533e1d99655f44e53ef&VideoCodec=hevc,h264,hevc&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=99234351&AudioBitrate=765649&AudioSampleRate=48000&MaxFramerate=23.976025&PlaySessionId=8eee53c47f9a4b868755ece5af12511d&api_key=f14d8cfa66e84cec902b32a7f9b6c477&SubtitleMethod=Encode&RequireAvc=false&Tag=351743fbbff44666319705eb460958ad&SegmentContainer=ts&BreakOnNonKeyFrames=False&hevc-level=150&hevc-videobitdepth=10&hevc-profile=main10&hevc-audiochannels=8&aac-profile=lc&aac-audiochannels=8&TranscodeReasons=SubtitleCodecNotSupported&runtimeTicks=30000000&actualSegmentLengthTicks=30000000" to "10.0.0.207" in 0:00:00.5036401 with Status Code 200
[2023-08-20 03:31:31.520 +00:00] [INF] "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-analyzeduration 200M -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:\"/mnt/truenas/media/Movies/Shazam! Fury of the Gods (2023)/Shazam! Fury of the Gods (2023) Bluray-2160p.mkv\" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 hevc_vaapi -tag:v:0 hvc1 -rc_mode VBR -b:v 13700908 -maxrate 13700908 -bufsize 27401816 -profile:v:0 main -force_key_frames:0 \"expr:gte(t,0+n_forced*3)\" -filter_complex \"[0:3]scale=s=3840x1608:flags=fast_bilinear[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwdownload,format=nv12[main];[main][sub]overlay=eof_action=pass:shortest=1:repeatlast=0,hwupload_vaapi\" -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 mpegts -start_number 0 -hls_segment_filename \"/var/lib/jellyfin/transcodes/224b2323d3071ec21cb744c152c05549%d.ts\" -hls_playlist_type vod -hls_list_size 0 -y \"/var/lib/jellyfin/transcodes/224b2323d3071ec21cb744c152c05549.m3u8\""
[2023-08-20 03:31:31.577 +00:00] [INF] Started user data sync
[2023-08-20 03:31:31.581 +00:00] [INF] User Data Sync: User "nihalvm" ("4c5511d06e57405086f96eef381565bb") posted 2 updates
[2023-08-20 03:31:31.581 +00:00] [INF] Finished user data sync, taking "00:00:00.0039730"
[2023-08-20 03:31:32.068 +00:00] [INF] Processing playback tracker : "a57b74ea95bf392d6e519c98b1bfb67d6845b322-4c5511d06e57405086f96eef381565bb-6cb14c973a219533e1d99655f44e53ef"
[2023-08-20 03:31:32.719 +00:00] [INF] Playback stopped reported by app "Android TV" "0.15.11" playing "Shazam! Fury of the Gods". Stopped at "0" ms
[2023-08-20 03:31:32.725 +00:00] [INF] Playback stop tracker found, processing stop : "a57b74ea95bf392d6e519c98b1bfb67d6845b322-4c5511d06e57405086f96eef381565bb-6cb14c973a219533e1d99655f44e53ef"
[2023-08-20 03:31:32.725 +00:00] [INF] PlaybackTracker : Adding Stop Event : 08/20/2023 03:31:32
[2023-08-20 03:31:32.725 +00:00] [WRN] Slow HTTP Response from "http://10.0.0.108:8096/Sessions/Playing/Stopped" to "10.0.0.207" in 0:00:01.7148351 with Status Code 204
[2023-08-20 03:31:32.725 +00:00] [INF] Playback stop but TrackedPlaybackInfo not found! not storing activity in DB
[2023-08-20 03:31:33.224 +00:00] [INF] Started user data sync
[2023-08-20 03:31:33.226 +00:00] [INF] User Data Sync: User "nihalvm" ("4c5511d06e57405086f96eef381565bb") posted 2 updates
[2023-08-20 03:31:33.226 +00:00] [INF] Finished user data sync, taking "00:00:00.0019131"
[2023-08-20 03:31:36.131 +00:00] [WRN] Slow HTTP Response from "http://10.0.0.108:8096/videos/6cb14c97-3a21-9533-e1d9-9655f44e53ef/hls1/main/0.ts?DeviceId=a57b74ea95bf392d6e519c98b1bfb67d6845b322&MediaSourceId=6cb14c973a219533e1d99655f44e53ef&VideoCodec=hevc,h264,hevc&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=99234351&AudioBitrate=765649&AudioSampleRate=48000&MaxFramerate=23.976025&PlaySessionId=813709ce55e94bffbb202c951dcd50f8&api_key=f14d8cfa66e84cec902b32a7f9b6c477&SubtitleMethod=Encode&RequireAvc=false&Tag=351743fbbff44666319705eb460958ad&SegmentContainer=ts&BreakOnNonKeyFrames=False&hevc-level=150&hevc-videobitdepth=10&hevc-profile=main10&hevc-audiochannels=8&aac-profile=lc&aac-audiochannels=8&TranscodeReasons=SubtitleCodecNotSupported&runtimeTicks=0&actualSegmentLengthTicks=30000000" to "10.0.0.207" in 0:00:04.614434 with Status Code 200
[2023-08-20 03:31:37.007 +00:00] [INF] Stopping ffmpeg process with q command for "/var/lib/jellyfin/transcodes/224b2323d3071ec21cb744c152c05549.m3u8"
[2023-08-20 03:31:37.143 +00:00] [WRN] Slow HTTP Response from "http://10.0.0.108:8096/videos/6cb14c97-3a21-9533-e1d9-9655f44e53ef/hls1/main/1.ts?DeviceId=a57b74ea95bf392d6e519c98b1bfb67d6845b322&MediaSourceId=6cb14c973a219533e1d99655f44e53ef&VideoCodec=hevc,h264,hevc&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=99234351&AudioBitrate=765649&AudioSampleRate=48000&MaxFramerate=23.976025&PlaySessionId=813709ce55e94bffbb202c951dcd50f8&api_key=f14d8cfa66e84cec902b32a7f9b6c477&SubtitleMethod=Encode&RequireAvc=false&Tag=351743fbbff44666319705eb460958ad&SegmentContainer=ts&BreakOnNonKeyFrames=False&hevc-level=150&hevc-videobitdepth=10&hevc-profile=main10&hevc-audiochannels=8&aac-profile=lc&aac-audiochannels=8&TranscodeReasons=SubtitleCodecNotSupported&runtimeTicks=30000000&actualSegmentLengthTicks=30000000" to "10.0.0.207" in 0:00:01.0019703 with Status Code 200
[2023-08-20 03:31:37.162 +00:00] [INF] FFmpeg exited with code 0
[2023-08-20 03:31:37.162 +00:00] [INF] Deleting partial stream file(s) "/var/lib/jellyfin/transcodes/224b2323d3071ec21cb744c152c05549.m3u8"
[2023-08-20 03:31:38.664 +00:00] [INF] Playback stopped reported by app "Android TV" "0.15.11" playing "Shazam! Fury of the Gods". Stopped at "0" ms
[2023-08-20 03:31:38.670 +00:00] [INF] Playback stop did not have a tracker : "a57b74ea95bf392d6e519c98b1bfb67d6845b322-4c5511d06e57405086f96eef381565bb-6cb14c973a219533e1d99655f44e53ef"
[2023-08-20 03:31:38.670 +00:00] [WRN] Slow HTTP Response from "http://10.0.0.108:8096/Sessions/Playing/Stopped" to "10.0.0.207" in 0:00:01.6642971 with Status Code 204
[2023-08-20 03:31:39.169 +00:00] [INF] Started user data sync
[2023-08-20 03:31:39.208 +00:00] [INF] User Data Sync: User "nihalvm" ("4c5511d06e57405086f96eef381565bb") posted 2 updates
[2023-08-20 03:31:39.208 +00:00] [INF] Finished user data sync, taking "00:00:00.0392318"
[2023-08-20 03:31:40.086 +00:00] [INF] session.RemoteEndPoint : "10.0.0.207"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : event_playing_id    = "6cb14c973a219533e1d99655f44e53ef"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : event_user_id        = "4c5511d06e57405086f96eef381565bb"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : event_user_id_int    = 1
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : session_playing_id  = ""
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : session_user_id      = "4c5511d06e57405086f96eef381565bb"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : play_method          = "na"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : e.ClientName        = "Android TV"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : e.DeviceName        = "Living room TV"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : ItemName            = "Shazam! Fury of the Gods"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : ItemId              = "6cb14c973a219533e1d99655f44e53ef"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : ItemType            = "Movie"
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : Details do not match for play item
[2023-08-20 03:31:40.086 +00:00] [INF] StartPlaybackTimer : Exited
[2023-08-20 03:31:45.733 +00:00] [INF] session.RemoteEndPoint : "10.0.0.207"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : event_playing_id    = "6cb14c973a219533e1d99655f44e53ef"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : event_user_id        = "4c5511d06e57405086f96eef381565bb"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : event_user_id_int    = 1
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : session_playing_id  = ""
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : session_user_id      = "4c5511d06e57405086f96eef381565bb"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : play_method          = "na"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : e.ClientName        = "Android TV"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : e.DeviceName        = "Living room TV"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : ItemName            = "Shazam! Fury of the Gods"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : ItemId              = "6cb14c973a219533e1d99655f44e53ef"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : ItemType            = "Movie"
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : Details do not match for play item
[2023-08-20 03:31:45.733 +00:00] [INF] StartPlaybackTimer : Exited
[2023-08-20 03:31:51.079 +00:00] [INF] session.RemoteEndPoint : "10.0.0.207"
[2023-08-20 03:31:51.079 +00:00] [INF] StartPlaybackTimer : event_playing_id    = "6cb14c973a219533e1d99655f44e53ef"
[2023-08-20 03:31:51.079 +00:00] [INF] StartPlaybackTimer : event_user_id        = "4c5511d06e57405086f96eef381565bb"
[2023-08-20 03:31:51.079 +00:00] [INF] StartPlaybackTimer : event_user_id_int    = 1
[2023-08-20 03:31:51.079 +00:00] [INF] StartPlaybackTimer : session_playing_id  = ""
[2023-08-20 03:31:51.079 +00:00] [INF] StartPlaybackTimer : session_user_id      = "4c5511d06e57405086f96eef381565bb"
[2023-08-20 03:31:51.079 +00:00] [INF] StartPlaybackTimer : play_method          = "na"
[2023-08-20 03:31:51.079 +00:00] [INF] StartPlaybackTimer : e.ClientName        = "Android TV"
[2023-08-20 03:31:51.080 +00:00] [INF] StartPlaybackTimer : e.DeviceName        = "Living room TV"
[2023-08-20 03:31:51.080 +00:00] [INF] StartPlaybackTimer : ItemName            = "Shazam! Fury of the Gods"
[2023-08-20 03:31:51.080 +00:00] [INF] StartPlaybackTimer : ItemId              = "6cb14c973a219533e1d99655f44e53ef"
[2023-08-20 03:31:51.080 +00:00] [INF] StartPlaybackTimer : ItemType            = "Movie"
[2023-08-20 03:31:51.080 +00:00] [INF] StartPlaybackTimer : Details do not match for play item
[2023-08-20 03:31:51.080 +00:00] [INF] StartPlaybackTimer : Exited



RE: Hardware transcoding issue - AMD 5700G - TheDreadPirate - 2023-08-20

All of the transcode reasons are related to the subtitles.  Nothing about audio.  Also, have you always been manually selecting the player?  Auto should cycle through all the available players and select the best one for the codecs used.


RE: Hardware transcoding issue - AMD 5700G - Nihalvm - 2023-08-21

You are right. If I disable subtitles, exoplayer plays the files correctly. If I don't, then the only way to play is select external player and select the Audio and Subtitles once the videos open in MX player.

How do I fix this? Is there no transcoding for subtitles?


RE: Hardware transcoding issue - AMD 5700G - TheDreadPirate - 2023-08-21

So the reason it is transcoding is because whatever subtitle format your media is using is not natively supported by the client. And jellyfin is "burning in" the subs directly into the video. Not uncommon. Most of my content will burn in subs (via transcoding) on my Android TV client if I turn on subs.

Are you using a Firestick?


RE: Hardware transcoding issue - AMD 5700G - Nihalvm - 2023-08-23

No. I am using an Android TV. TCL C835.

I had never experienced subtitles transcoding resulting in a video not playing. Again all videos including subtitles would work fine with transcoding on chrome browser on my old android tablet. I thought a newer Android TV should handle more formats. I maybe wrong.

Anyways I changed the playback to auto and looks like all videos I was experiencing issues with are working ok now. Although when I check the playback logs, it looks like all of them are direct playing now and not transcoding. So not sure if the issue can reoccur.

Thankyou for your help. I am still a long way from understanding how this all works. Really appreciate you taking the time to answer my questions.