• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Hardware Transcoding doesn't work, AMD iGPU, Unraid

    Pages (2): 1 2 Next »

     
    • 0 Vote(s) - 0 Average

    Hardware Transcoding doesn't work, AMD iGPU, Unraid

    yannn
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2024 Jul
    Reputation: 0
    Country:Poland
    #1
    2024-08-05, 05:42 PM
    Hi guys,
    I have AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics @ 3200 MHz.
    Using Unraid, passing 2 devices dri/card0 and /renderD128 to the container. I use Docker from linuxserver (but tried others - same result)
    • So devices are passed
    • Unraid sees my GPU, radeontop shows stats - but no load
    • I chosen VAAPI in Jellyfin settings, with device /dev/dri/renderD128 
    • Hardware decoding is turned on for h264 + HEVC
    • Jellyfin docker sees /dev/dri/renderD128 (checked via docker image console)

    As I play video - no GPU usage. Is there anything I'm missing? I did reboots, etc - the same result.

    I know it's not the best GPU but I want to try, at least it's not so bad for HEVC per forums and I mostly want it for it for big BD remuxes

    What I else can check?
    Thanks!


    From docker image:

    Code:
    root@b18d787c6c47:/# ls -l /dev/dri
    total 0
    crw-rw---- 1 root videow9q1 226,  0 Aug  5 09:58 card0
    crwxrwxrwx 1 root videow9q1 226, 128 Aug  5 09:58 renderD128

    Code:
    root@b18d787c6c47:/# /usr/lib/jellyfin-ffmpeg/vainfo --display drm --device /dev/dri/renderD128
    Trying display: drm
    libva info: VA-API version 1.22.0
    libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/radeonsi_drv_video.so
    libva info: Found init function __vaDriverInit_1_22
    amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
    If they do, bad things may happen!
    libva info: va_openDriver() returns 0
    vainfo: VA-API version: 1.22 (libva 2.22.0)
    vainfo: Driver version: Mesa Gallium driver 24.0.9 for AMD Radeon Vega 11 Graphics (radeonsi, raven, LLVM 15.0.7, DRM 3.49, 6.1.99-Unraid)
    vainfo: Supported profile and entrypoints
          VAProfileMPEG2Simple            : VAEntrypointVLD
          VAProfileMPEG2Main              : VAEntrypointVLD
          VAProfileVC1Simple              : VAEntrypointVLD
          VAProfileVC1Main                : VAEntrypointVLD
          VAProfileVC1Advanced            : VAEntrypointVLD
          VAProfileH264ConstrainedBaseline: VAEntrypointVLD
          VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
          VAProfileH264Main              : VAEntrypointVLD
          VAProfileH264Main              : VAEntrypointEncSlice
          VAProfileH264High              : VAEntrypointVLD
          VAProfileH264High              : VAEntrypointEncSlice
          VAProfileHEVCMain              : VAEntrypointVLD
          VAProfileHEVCMain              : VAEntrypointEncSlice
          VAProfileHEVCMain10            : VAEntrypointVLD
          VAProfileJPEGBaseline          : VAEntrypointVLD
          VAProfileVP9Profile0            : VAEntrypointVLD
          VAProfileVP9Profile2            : VAEntrypointVLD
          VAProfileNone                  : VAEntrypointVideoProc


    Code:
    root@b18d787c6c47:/# /usr/lib/jellyfin-ffmpeg/ffmpeg -v debug -init_hw_device drm=dr:/dev/dri/renderD128 -init_hw_device vulkan@dr

    ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
      built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
      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-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --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
    Splitting the commandline.
    Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
    Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'drm=dr:/dev/dri/renderD128'.
    Reading option '-init_hw_device' ... matched as option 'init_hw_device' (initialise hardware device) with argument 'vulkan@dr'.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option v (set logging level) with argument debug.
    Applying option init_hw_device (initialise hardware device) with argument drm=dr:/dev/dri/renderD128.
    [AVHWDeviceContext @ 0x5591bbe8a280] Opened DRM device /dev/dri/renderD128: driver amdgpu version 3.49.0.
    Applying option init_hw_device (initialise hardware device) with argument vulkan@dr.
    [AVHWDeviceContext @ 0x5591bbe8a740] Supported validation layers:
    [AVHWDeviceContext @ 0x5591bbe8a740]    VK_LAYER_MESA_device_select
    [AVHWDeviceContext @ 0x5591bbe8a740]    VK_LAYER_MESA_overlay
    [AVHWDeviceContext @ 0x5591bbe8a740] GPU listing:
    [AVHWDeviceContext @ 0x5591bbe8a740]    0: AMD Radeon Vega 11 Graphics (RADV RAVEN) (integrated) (0x15dd)
    [AVHWDeviceContext @ 0x5591bbe8a740] Requested device: 0x15dd
    [AVHWDeviceContext @ 0x5591bbe8a740] Device 0 selected: AMD Radeon Vega 11 Graphics (RADV RAVEN) (integrated) (0x15dd)
    [AVHWDeviceContext @ 0x5591bbe8a740] Queue families:
    [AVHWDeviceContext @ 0x5591bbe8a740]    0: graphics compute transfer (queues: 1)
    [AVHWDeviceContext @ 0x5591bbe8a740]    1: compute transfer (queues: 4)
    [AVHWDeviceContext @ 0x5591bbe8a740]    2: sparse (queues: 1)
    [AVHWDeviceContext @ 0x5591bbe8a740] Using device extension VK_KHR_push_descriptor
    [AVHWDeviceContext @ 0x5591bbe8a740] Using device extension VK_KHR_sampler_ycbcr_conversion
    [AVHWDeviceContext @ 0x5591bbe8a740] Using device extension VK_KHR_synchronization2
    [AVHWDeviceContext @ 0x5591bbe8a740] Using device extension VK_KHR_external_memory_fd
    [AVHWDeviceContext @ 0x5591bbe8a740] Using device extension VK_EXT_external_memory_dma_buf
    [AVHWDeviceContext @ 0x5591bbe8a740] Using device extension VK_EXT_image_drm_format_modifier
    [AVHWDeviceContext @ 0x5591bbe8a740] Using device extension VK_KHR_external_semaphore_fd
    [AVHWDeviceContext @ 0x5591bbe8a740] Using device extension VK_EXT_external_memory_host
    [AVHWDeviceContext @ 0x5591bbe8a740] Using device: AMD Radeon Vega 11 Graphics (RADV RAVEN)
    [AVHWDeviceContext @ 0x5591bbe8a740] Alignments:
    [AVHWDeviceContext @ 0x5591bbe8a740]    optimalBufferCopyRowPitchAlignment: 1
    [AVHWDeviceContext @ 0x5591bbe8a740]    minMemoryMapAlignment:              4096
    [AVHWDeviceContext @ 0x5591bbe8a740]    minImportedHostPointerAlignment:    4096
    [AVHWDeviceContext @ 0x5591bbe8a740] Using queue family 0 (queues: 1) for graphics
    [AVHWDeviceContext @ 0x5591bbe8a740] Using queue family 1 (queues: 4) for compute transfers
    Successfully parsed a group of options.
    Hyper fast Audio and Video encoder
    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

    Use -h to get full help or, even better, run 'man ffmpeg'
    Fate
    Offline

    Member

    Posts: 220
    Threads: 3
    Joined: 2023 Jun
    Reputation: 16
    #2
    2024-08-05, 06:31 PM
    Can you post jellyfin logs via pastebin?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #3
    2024-08-05, 06:45 PM
    Is the video playing, though? There will only be GPU usage when it is transcoding. If the client is direct playing there will be no GPU usage.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    yannn
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2024 Jul
    Reputation: 0
    Country:Poland
    #4
    2024-08-05, 07:12 PM
    Logs pastebin:
    Jellyfin https://pastebin.com/0rXdcpZx
    ffmpeg https://pastebin.com/1emVHgC4

    much appreciated

    (2024-08-05, 06:31 PM)Fate Wrote: Can you post jellyfin logs via pastebin?

    attached

    (2024-08-05, 06:45 PM)TheDreadPirate Wrote: Is the video playing, though?  There will only be GPU usage when it is transcoding.  If the client is direct playing there will be no GPU usage.

    Yes, video's playing.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2024-08-05, 07:19 PM
    It is transcoding, but only the audio. Audio transcoding will always happen on the CPU.

    Code:
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (eac3 (native) -> aac (libfdk_aac))

    Stream #0 is the video.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    yannn
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2024 Jul
    Reputation: 0
    Country:Poland
    #6
    2024-08-05, 07:36 PM
    (2024-08-05, 07:19 PM)TheDreadPirate Wrote: It is transcoding, but only the audio.  Audio transcoding will always happen on the CPU.

    Code:
    Stream mapping:
      Stream #0:0 -> #0:0 (copy)
      Stream #0:1 -> #0:1 (eac3 (native) -> aac (libfdk_aac))

    Stream #0 is the video.

    Did I get it correct?
    It works for video, so radeontop just doesn't show correct stats?
    Still CPU load is for audio transcoding? 

    Isn't it too much CPU from that? 4cores - 8 threads load 35-65%
    Screenshot from Unraid dashboard: https://imgur.com/a/e9Okhte
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-08-05, 08:23 PM
    There is no VIDEO transcoding so there will be no GPU usage.  This is normal.  There is only GPU usage when VIDEO is being transcoded.  In this log only the audio is being transcoded.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    yannn
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2024 Jul
    Reputation: 0
    Country:Poland
    #8
    2024-08-05, 09:52 PM
    I guess I got you. There was no need to transcode it HW so it wasn't. Thanks. Will try to find a file to check. Maybe you have any suggestions for a test sample?
    yannn
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2024 Jul
    Reputation: 0
    Country:Poland
    #9
    2024-08-05, 10:07 PM
    I found this https://www.reddit.com/r/jellyfin/commen..._is_being/
    so as I run command from there

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/data/movies/The.Acolyte.S01E03.Destiny.2160p.DSNP.WEB-DL.DDP5.1.HDR.H.265-NTb.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi  -b:v 3616002 -maxrate 3616002 -bufsize 7232004 -profile:v high -level 41 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -vf "format=nv12|vaapi,hwupload,scale_vaapi=w=1280:h=720" -copyts -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 384000 -af "volume=2" -f hls -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -hls_time 3 -individual_header_trailer 0 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/config/data/transcoding-temp/transcodes/transcodes/transcodes/transcodes/transcodes/transcodes/transcodes/7f8cdaaa269b54748dbe25bfcbbbb8e8%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/data/transcoding-temp/transcodes/transcodes/transcodes/transcodes/transcodes/transcodes/transcodes/7f8cdaaa269b54748dbe25bfcbbbb8e8.m3u8"

    I got this result 

    Code:
    ffmpeg version 6.0.1-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
      built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04)
      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-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --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
    amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
    If they do, bad things may happen!
    -vsync is deprecated. Use -fps_mode
    Passing a number to -vsync is deprecated, use a string argument as described in the manual.
    Input #0, matroska,webm, from 'file:/data/movies/The.Acolyte.S01E03.Destiny.2160p.DSNP.WEB-DL.DDP5.1.HDR.H.265-NTb.mkv':
      Metadata:
        encoder        : libebml v1.4.5 + libmatroska v1.7.1
      Duration: 00:42:12.21, start: 0.000000, bitrate: 15685 kb/s
      Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt2020nc/bt2020/smpte2084), 3840x2160 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn (default)
        Metadata:
          BPS            : 14912974
          DURATION        : 00:42:12.209000000
          NUMBER_OF_FRAMES: 60773
          NUMBER_OF_BYTES : 4720346073
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:1(eng): Audio: eac3 (Dolby Digital Plus + Dolby Atmos), 48000 Hz, 5.1(side), fltp, 768 kb/s (default) (original)
        Metadata:
          BPS            : 768000
          DURATION        : 00:42:12.192000000
          NUMBER_OF_FRAMES: 79131
          NUMBER_OF_BYTES : 243090432
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:2(eng): Subtitle: subrip
        Metadata:
          BPS            : 38
          DURATION        : 00:38:00.458000000
          NUMBER_OF_FRAMES: 411
          NUMBER_OF_BYTES : 11095
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:3(eng): Subtitle: subrip (hearing impaired)
        Metadata:
          title          : SDH
          BPS            : 49
          DURATION        : 00:38:14.375000000
          NUMBER_OF_FRAMES: 516
          NUMBER_OF_BYTES : 14138
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:4(cze): Subtitle: subrip
        Metadata:
          BPS            : 34
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 411
          NUMBER_OF_BYTES : 10751
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:5(dan): Subtitle: subrip
        Metadata:
          BPS            : 34
          DURATION        : 00:41:56.833000000
          NUMBER_OF_FRAMES: 310
          NUMBER_OF_BYTES : 10777
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:6(ger): Subtitle: subrip
        Metadata:
          BPS            : 37
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 403
          NUMBER_OF_BYTES : 11922
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:7(gre): Subtitle: subrip
        Metadata:
          BPS            : 64
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 412
          NUMBER_OF_BYTES : 20209
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:8(spa): Subtitle: subrip
        Metadata:
          title          : Spanish (Latin America)
          BPS            : 34
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 410
          NUMBER_OF_BYTES : 10955
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:9(spa): Subtitle: subrip
        Metadata:
          title          : Spanish (Spain)
          BPS            : 35
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 410
          NUMBER_OF_BYTES : 11156
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:10(fin): Subtitle: subrip
        Metadata:
          BPS            : 36
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 410
          NUMBER_OF_BYTES : 11442
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:11(fre): Subtitle: subrip
        Metadata:
          BPS            : 36
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 406
          NUMBER_OF_BYTES : 11478
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:12(hun): Subtitle: subrip
        Metadata:
          BPS            : 36
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 411
          NUMBER_OF_BYTES : 11594
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:13(ita): Subtitle: subrip
        Metadata:
          BPS            : 35
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 409
          NUMBER_OF_BYTES : 11239
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:14(jpn): Subtitle: subrip
        Metadata:
          BPS            : 34
          DURATION        : 00:41:57.500000000
          NUMBER_OF_FRAMES: 417
          NUMBER_OF_BYTES : 10824
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:15(kor): Subtitle: subrip
        Metadata:
          BPS            : 40
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 407
          NUMBER_OF_BYTES : 12756
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:16(dut): Subtitle: subrip
        Metadata:
          BPS            : 35
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 390
          NUMBER_OF_BYTES : 11294
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:17(nor): Subtitle: subrip
        Metadata:
          BPS            : 33
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 409
          NUMBER_OF_BYTES : 10470
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:18(pol): Subtitle: subrip
        Metadata:
          BPS            : 37
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 410
          NUMBER_OF_BYTES : 11853
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:19(por): Subtitle: subrip
        Metadata:
          title          : Portuguese (Brazil)
          BPS            : 37
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 411
          NUMBER_OF_BYTES : 11796
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:20(por): Subtitle: subrip
        Metadata:
          title          : Portuguese (Portugal)
          BPS            : 35
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 412
          NUMBER_OF_BYTES : 11154
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:21(rum): Subtitle: subrip
        Metadata:
          BPS            : 36
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 410
          NUMBER_OF_BYTES : 11330
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:22(slo): Subtitle: subrip
        Metadata:
          BPS            : 34
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 412
          NUMBER_OF_BYTES : 10768
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:23(swe): Subtitle: subrip
        Metadata:
          BPS            : 34
          DURATION        : 00:41:56.792000000
          NUMBER_OF_FRAMES: 330
          NUMBER_OF_BYTES : 10799
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:24(tur): Subtitle: subrip
        Metadata:
          BPS            : 36
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 412
          NUMBER_OF_BYTES : 11506
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:25(chi): Subtitle: subrip
        Metadata:
          title          : Chinese (Hong Kong SAR China)
          BPS            : 30
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 412
          NUMBER_OF_BYTES : 9643
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      Stream #0:26(chi): Subtitle: subrip
        Metadata:
          title          : Chinese (Traditional)
          BPS            : 29
          DURATION        : 00:41:57.583000000
          NUMBER_OF_FRAMES: 413
          NUMBER_OF_BYTES : 9348
          _STATISTICS_WRITING_APP: mkvmerge v84.0 ('Sleeper') 64-bit
          _STATISTICS_TAGS: 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 (eac3 (native) -> aac (native))
    Press [q] to stop, [?] for help
    [h264_vaapi @ 0x5614800e8f40] No usable encoding profile found.
    [vost#0:0/h264_vaapi @ 0x5614800e8c40] Error initializing output stream: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    [aac @ 0x5614800eafc0] Qavg: 64051.414
    [aac @ 0x5614800eafc0] 2 frames left in the queue on closing
    Conversion failed!

    And I saw some stats in radeontop. I don't quite understand that the command does, but it looks like it forces to use hardware accelaration as I see changes in GPU usage https://imgur.com/a/gP8xeQc
    So it looks like pushes it transcoding to the specific format, but in my initial case there is no need.
    right? I guess it will be the same for Intel iGPU? Just don't like fan noise with CPU usage


    (2024-08-05, 08:23 PM)TheDreadPirate Wrote: There is no VIDEO transcoding so there will be no GPU usage.  This is normal.  There is only GPU usage when VIDEO is being transcoded.  In this log only the audio is being transcoded.

    (2024-08-05, 09:52 PM)yannn Wrote: I guess I got you. There was no need to transcode it HW so it wasn't. Thanks. Will try to find a file to check. Maybe you have any suggestions for a test sample?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2024-08-05, 10:46 PM
    That thread is old and using a much older version of ffmpeg. Let's simplify the command to something that should run on the current ffmpeg.

    Code:
    /usr/lib/jellyfin-ffmpeg/ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -vaapi_device /dev/dri/renderD128 -i file:"/data/movies/The.Acolyte.S01E03.Destiny.2160p.DSNP.WEB-DL.DDP5.1.HDR.H.265-NTb.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -b:v 3616002 -maxrate 3616002 -bufsize 7232004 -profile:v high -level 41 -force_key_frames:0 -codec:a:0 aac -ac 2 -ab 384000 -af "volume=2" -avoid_negative_ts disabled output.mkv
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Pages (2): 1 2 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode