• 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 Off Topic Self-hosting & Homelabs Arc A380 QSV/HWA?

     
    • 0 Vote(s) - 0 Average

    Arc A380 QSV/HWA?

    Not just for Jellyfin, but for ffmpeg in general...
    bitmap
    Offline

    Community Moderator

    Posts: 817
    Threads: 9
    Joined: 2023 Jul
    Reputation: 27
    #1
    2023-08-28, 03:01 AM
    My turn for a question...anybody have any experience with Arc A380 drivers and/or AV1 encoding on Ubuntu 23.04? I'm struggling pretty hard to get this working here...both my 13700k and A380 should be capable of av1_qsv and neither will get further than initialization. I'm not interested in HEVC or H264, although those might help in troubleshooting, I don't know what they would tell me personally, as I wouldn't know what to do with that information. Here's where I'm at...
    • New install of Ubuntu Server 23.04 spurred by my purchase of an A380.
    • No luck with A380 (av1_qsv) in ffmpeg, Error -17 regardless of what the error message actually says.
    • Drivers for 23.04 are supposed to be handled by Ubuntu, tried installing some missing dependencies listed in the Intel documentation.
    • Reverted to intel-media-va-driver, then back to intel-media-va-driver-non-free, no change.
    • Everything, vainfo, hwinfo, clinfo, etc... all provide the requisite information that shows both devices working properly.
    • HuC and GuC both configured properly as far as I can tell.
    • ReBAR configured in BIOS properly as far as I can tell.
    • Permissions are set for my user for both render and video groups.
    • Found a post from nyanmisaka (Jellyfin ffmpeg dev if I'm not mistaken) regarding libmfx gen 1.2, which changed the behavior, but didn't fix anything.
    • ffmpeg compiled from snapshot (latest) in an attempt to get better support.
    • ffmpeg re-compiled using cartwheel-ffmpeg patches.

    I'm out of ideas. I thought updating to kernel 6.2 was supposed to make this shit a snap (ha) and I was very mistaken. I might need to put in an issue, but I always feel like I'm in too deep by this point in my troubleshooting. So...anybody else have success? The most infuriating thing is that the device now ostensibly initializes successfully, but something goes wrong in the interim. Here's my most recent attempt at firing up ffmpeg:

    Code:
    bitmap@server:$ ffmpeg -hwaccel qsv -qsv_device /dev/dri/renderD129 \
            -i "Big Buck Bunny.mkv" \
            -map 0:v -map 0:m:language:eng \
            -c:v av1_qsv -pix_fmt p010le \
            -preset slower -global_quality:v 18 -c:a libopus -ac 2 \
            -af "pan=stereo|FL<FC+0.30*FL+0.30*BL|FR<FC+0.30*FR+0.30*BR" \
            -b:a 256k -c:s copy "Big Buck Bunny [AV1 OPUS].mkv"
    ffmpeg version N-111858-g2668b31f43 Copyright (c) 2000-2023 the FFmpeg developers
      built with gcc 12 (Ubuntu 12.3.0-1ubuntu1~23.04)
      configuration: --prefix=/home/bitmap/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/bitmap/ffmpeg_build/include --extra-ldflags=-L/home/bitmap/ffmpeg_build/lib --extra-libs='-lpthread -lm' --ld=g++ --bindir=/home/bitmap/bin --enable-gpl --enable-gnutls --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libsvtav1 --enable-libdav1d --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libwebp --enable-libxvid --enable-libvmaf --enable-vaapi --enable-libvpl --enable-nonfree
      libavutil      58. 17.100 / 58. 17.100
      libavcodec    60. 23.100 / 60. 23.100
      libavformat    60. 10.100 / 60. 10.100
      libavdevice    60.  2.101 / 60.  2.101
      libavfilter    9. 11.100 /  9. 11.100
      libswscale      7.  3.100 /  7.  3.100
      libswresample  4. 11.100 /  4. 11.100
      libpostproc    57.  2.100 / 57.  2.100
    libva info: VA-API version 1.17.0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_17
    libva info: va_openDriver() returns 0
    libva info: VA-API version 1.17.0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_17
    libva info: va_openDriver() returns 0
    libva info: VA-API version 1.17.0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_17
    libva info: va_openDriver() returns 0
    libva info: VA-API version 1.17.0
    libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
    libva info: Found init function __vaDriverInit_1_17
    libva info: va_openDriver() returns 0
    [vist#0:0/hevc @ 0x55bbed5a4980] WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv".
    Input #0, matroska,webm, from 'Big Buck Bunny.mkv':                                                                                                                     
      Metadata:
        title          : Big Buck Bunny
        track          : 1
        TOTAL_PARTS    : 13
        IMDB            : ***
        TVDB            : ***
        TMDB            : ***
        ENCODER        : Lavf59.27.100
      Duration: 00:45:**.**, start: 0.000000, bitrate: 16315 kb/s
      Chapters: [REMOVED]
      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        : 14485610
          DURATION-eng    : 00:45:**.**
          NUMBER_OF_FRAMES-eng: 6541x
          NUMBER_OF_BYTES-eng: 494015276x
          _STATISTICS_WRITING_APP-eng: mkvmerge v43.0.0 ('The Quartermaster') 64-bit
          _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 18:33:40
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          DURATION        : 00:45:**.**
      Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s16p (default)
        Metadata:
          title          : DTS-HD MA 5.1
          BPS-eng        : 1822916
          DURATION-eng    : 00:45:**.**
          NUMBER_OF_FRAMES-eng: 25578x
          NUMBER_OF_BYTES-eng: 62169970x
          _STATISTICS_WRITING_APP-eng: mkvmerge v43.0.0 ('The Quartermaster') 64-bit
          _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 18:33:40
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          DURATION        : 00:45:**.**
      Stream #0:2(eng): Subtitle: subrip (default)
        Metadata:
          title          : English
          BPS-eng        : 74
          DURATION-eng    : 00:43:**.**
          NUMBER_OF_FRAMES-eng: 75x
          NUMBER_OF_BYTES-eng: 2442x
          _STATISTICS_WRITING_APP-eng: mkvmerge v43.0.0 ('The Quartermaster') 64-bit
          _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 18:33:40
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          DURATION        : 00:43:**.**
      Stream #0:3(eng): Subtitle: subrip
        Metadata:
          title          : English (SDH)
          BPS-eng        : 77
          DURATION-eng    : 00:44:**.**
          NUMBER_OF_FRAMES-eng: 80x
          NUMBER_OF_BYTES-eng: 2589x
          _STATISTICS_WRITING_APP-eng: mkvmerge v43.0.0 ('The Quartermaster') 64-bit
          _STATISTICS_WRITING_DATE_UTC-eng: 2020-05-01 18:33:40
          _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
          DURATION        : 00:44:**.**
    Stream mapping:
      Stream #0:0 -> #0:0 (hevc (hevc_qsv) -> av1 (av1_qsv))
      Stream #0:1 -> #0:1 (dts (dca) -> opus (libopus))
      Stream #0:2 -> #0:2 (copy)
      Stream #0:3 -> #0:3 (copy)
    Press [q] to stop, [?] for help
    [av1_qsv @ 0x55bbecf85580] Error initializing the encoder: device failed (-17)
    [vost#0:0/av1_qsv @ 0x55bbed098b80] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.                                                                                                                       
    Error while filtering: Input/output error                                                                                                                                                                                                                   
    [hevc_qsv @ 0x55bbed073fc0] A decode call did not consume any data: expect more data at input (-10)                                                                                                                                                         
        Last message repeated 2 times                                                                                                                                                                                                                           
    [out#0/matroska @ 0x55bbed548800] Nothing was written into output file, because at least one of its streams received no packets.
    frame=    0 fps=0.0 q=0.0 Lsize=      0kB time=00:00:00.11 bitrate=  0.0kbits/s speed=1.41x                                                                                                                                                               
    Conversion failed!

    Any help or direction is appreciated!
    Jellyfin 10.10.7 LSIO Docker | Ubuntu 24.04 LTS | i7-13700K | Arc A380 6 GB | 64 GB RAM | 79 TB Storage

    [Image: AIL4fc84QG6uSnTDEZiCCtosg7uAA8x9j1myFaFs...qL0Q=w2400]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Arc A380 QSV/HWA? - by bitmap - 2023-08-28, 03:01 AM
    RE: Arc A380 QSV/HWA? - by TheDreadPirate - 2023-08-28, 03:55 AM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-08-28, 04:22 AM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-08-28, 10:39 PM
    RE: Arc A380 QSV/HWA? - by nyanmisaka - 2023-08-29, 12:45 AM
    RE: Arc A380 QSV/HWA? - by TheDreadPirate - 2023-08-29, 03:57 AM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-08-29, 01:07 AM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-08-29, 05:23 AM
    RE: Arc A380 QSV/HWA? - by TheDreadPirate - 2023-08-29, 05:31 AM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-08-29, 05:30 AM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-08-29, 05:38 AM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-09-04, 09:02 AM
    RE: Arc A380 QSV/HWA? - by nyanmisaka - 2023-09-04, 09:45 AM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-09-04, 09:53 AM
    RE: Arc A380 QSV/HWA? - by nyanmisaka - 2023-09-04, 12:27 PM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-09-04, 07:11 PM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-09-06, 03:56 PM
    RE: Arc A380 QSV/HWA? - by bitmap - 2023-09-13, 07:16 AM

    • 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