Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

agnos.is Forums

  1. Home
  2. Selfhosted
  3. [SOLVED] Owncast, SELinux, Podman, Hardware Accelaration

[SOLVED] Owncast, SELinux, Podman, Hardware Accelaration

Scheduled Pinned Locked Moved Selfhosted
selfhosted
7 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • nico_198x@europe.pubN This user is from outside of this forum
    nico_198x@europe.pubN This user is from outside of this forum
    [email protected]
    wrote last edited by [email protected]
    #1

    SOLVED: turns out mesa is not enough for this. i also had to install:

    mesa-va-gallium
    mesa-dri-gallium

    now we're good!


    hi all!

    i've hit a wall here and could use your input if you have any thoughts!

    i'm running Owncast latest via rootful Podman on a distro with SELinux.

    i'm trying to implement hardware acceleration via the server's AMD GPU, but it is not working.

    AMD Radeon RX 7600

    Kernel: 6.15.4-1-default

    i've turned VAAPI on in the web admin settings.

    the container comes with ffmpeg 6 and libva.

    For SELinux, i've run:

    setsebool -P container_use_devices true

    In my quadlet i've added:

    [Container]

    AddDevice=/dev/dri

    Exec=apk add mesa

    the devices appear rw in the container:

    /app # ls -l /dev/dri

    total 0

    crw-rw---- 1 root 486 226, 0 Jul 9 15:58 card0

    crw-rw---- 1 root 489 226, 128 Jul 9 15:58 renderD128

    here is the error i'm getting:

    time="2025-07-09T15:58:46Z" level=error msg="[AVHWDeviceContext @ 0x7f96891c7cc0] Failed to initialise VAAPI connection: -1 (unknown libva error)."

    time="2025-07-09T15:58:46Z" level=error msg="Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': I/O error"

    time="2025-07-09T15:58:46Z" level=error msg="transcoding error. look at data/logs/transcoder.log to help debug. your copy of ffmpeg may not support your selected codec of h264_vaapi https://owncast.online/docs/codecs/"

    time="2025-07-09T16:04:25Z" level=info msg="Inbound stream connected from 192.168.0.235:42698"

    time="2025-07-09T16:04:25Z" level=info msg="Processing video using codec VA-API with 3 output qualities configured."

    time="2025-07-09T16:04:25Z" level=error msg="[AVHWDeviceContext @ 0x7f8a2a047cc0] Failed to initialise VAAPI connection: -1 (unknown libva error)."

    time="2025-07-09T16:04:25Z" level=error msg="Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': I/O error"

    time="2025-07-09T16:04:25Z" level=info msg="Inbound stream disconnected."

    time="2025-07-09T16:04:25Z" level=error msg="unable to write rtmp packet io: read/write on closed pipe"

    time="2025-07-09T16:04:25Z" level=error msg="transcoding error. look at data/logs/transcoder.log to help debug. your copy of ffmpeg may not support your selected codec of h264_vaapi https://owncast.online/docs/codecs/"

    any help to troubleshoot this would be most appreciated! thank you!

    malwieder@feddit.orgM 1 Reply Last reply
    9
    • nico_198x@europe.pubN [email protected]

      SOLVED: turns out mesa is not enough for this. i also had to install:

      mesa-va-gallium
      mesa-dri-gallium

      now we're good!


      hi all!

      i've hit a wall here and could use your input if you have any thoughts!

      i'm running Owncast latest via rootful Podman on a distro with SELinux.

      i'm trying to implement hardware acceleration via the server's AMD GPU, but it is not working.

      AMD Radeon RX 7600

      Kernel: 6.15.4-1-default

      i've turned VAAPI on in the web admin settings.

      the container comes with ffmpeg 6 and libva.

      For SELinux, i've run:

      setsebool -P container_use_devices true

      In my quadlet i've added:

      [Container]

      AddDevice=/dev/dri

      Exec=apk add mesa

      the devices appear rw in the container:

      /app # ls -l /dev/dri

      total 0

      crw-rw---- 1 root 486 226, 0 Jul 9 15:58 card0

      crw-rw---- 1 root 489 226, 128 Jul 9 15:58 renderD128

      here is the error i'm getting:

      time="2025-07-09T15:58:46Z" level=error msg="[AVHWDeviceContext @ 0x7f96891c7cc0] Failed to initialise VAAPI connection: -1 (unknown libva error)."

      time="2025-07-09T15:58:46Z" level=error msg="Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': I/O error"

      time="2025-07-09T15:58:46Z" level=error msg="transcoding error. look at data/logs/transcoder.log to help debug. your copy of ffmpeg may not support your selected codec of h264_vaapi https://owncast.online/docs/codecs/"

      time="2025-07-09T16:04:25Z" level=info msg="Inbound stream connected from 192.168.0.235:42698"

      time="2025-07-09T16:04:25Z" level=info msg="Processing video using codec VA-API with 3 output qualities configured."

      time="2025-07-09T16:04:25Z" level=error msg="[AVHWDeviceContext @ 0x7f8a2a047cc0] Failed to initialise VAAPI connection: -1 (unknown libva error)."

      time="2025-07-09T16:04:25Z" level=error msg="Failed to set value '/dev/dri/renderD128' for option 'vaapi_device': I/O error"

      time="2025-07-09T16:04:25Z" level=info msg="Inbound stream disconnected."

      time="2025-07-09T16:04:25Z" level=error msg="unable to write rtmp packet io: read/write on closed pipe"

      time="2025-07-09T16:04:25Z" level=error msg="transcoding error. look at data/logs/transcoder.log to help debug. your copy of ffmpeg may not support your selected codec of h264_vaapi https://owncast.online/docs/codecs/"

      any help to troubleshoot this would be most appreciated! thank you!

      malwieder@feddit.orgM This user is from outside of this forum
      malwieder@feddit.orgM This user is from outside of this forum
      [email protected]
      wrote last edited by
      #2

      What exact GPU model? Kernel version? Have you tried it with SELinux disabled temporarily?

      nico_198x@europe.pubN 3 Replies Last reply
      1
      • malwieder@feddit.orgM [email protected]

        What exact GPU model? Kernel version? Have you tried it with SELinux disabled temporarily?

        nico_198x@europe.pubN This user is from outside of this forum
        nico_198x@europe.pubN This user is from outside of this forum
        [email protected]
        wrote last edited by
        #3

        AMD Radeon RX 7600

        6.15.4-1-default

        i have not tried that. i'll give that a go. i ASSUME it's a selinux permissions issue, but i thought i had that all cleared.

        1 Reply Last reply
        0
        • malwieder@feddit.orgM [email protected]

          What exact GPU model? Kernel version? Have you tried it with SELinux disabled temporarily?

          nico_198x@europe.pubN This user is from outside of this forum
          nico_198x@europe.pubN This user is from outside of this forum
          [email protected]
          wrote last edited by
          #4

          so, actually no change even with setting SELinux to Permissive. so i guees it isn't SELinux after all...

          1 Reply Last reply
          0
          • malwieder@feddit.orgM [email protected]

            What exact GPU model? Kernel version? Have you tried it with SELinux disabled temporarily?

            nico_198x@europe.pubN This user is from outside of this forum
            nico_198x@europe.pubN This user is from outside of this forum
            [email protected]
            wrote last edited by
            #5

            thank you, i figured it out!

            malwieder@feddit.orgM 1 Reply Last reply
            1
            • nico_198x@europe.pubN [email protected]

              thank you, i figured it out!

              malwieder@feddit.orgM This user is from outside of this forum
              malwieder@feddit.orgM This user is from outside of this forum
              [email protected]
              wrote last edited by
              #6

              Would be awesome if you'd share your solution for the next person encountering the same issue 🙂

              nico_198x@europe.pubN 1 Reply Last reply
              1
              • malwieder@feddit.orgM [email protected]

                Would be awesome if you'd share your solution for the next person encountering the same issue 🙂

                nico_198x@europe.pubN This user is from outside of this forum
                nico_198x@europe.pubN This user is from outside of this forum
                [email protected]
                wrote last edited by
                #7

                it's all in the edited op!

                1 Reply Last reply
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups