Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to set libva_driver_name in qmake file

How to set libva_driver_name in qmake file

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 893 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.
  • M Offline
    M Offline
    Mahesh_Palkar
    wrote on last edited by
    #1

    I am trying build an application using FFMPEG with hardware acceleration.
    For that I need to set path for hardware accelerators and libva driver name.

    export PKG_CONFIG_PATH=/opt/mediasdk/lib/pkgconfig/:$PKG_CONFIG_PATH
    export LD_LIBRARY_PATH=/opt/mediasdk/lib/:$LD_LIBRARY_PATH
    export LIBVA_DRIVER_NAME=iHD

    These are the path I used to set through Linux terminal.
    I am able to set LDD and pkg_config path. But I am able to understand how to set libva_driver_name.

    Error is ::
    "[AVHWDeviceContext @ 0x7f4c18003380] libva: va_getDriverName() failed with unknown libva error,driver_name=(null)
    [AVHWDeviceContext @ 0x7f4c18003380] Failed to initialise VAAPI connection: -1 (unknown libva error)."

    Pablo J. RoginaP 1 Reply Last reply
    0
    • M Mahesh_Palkar

      I am trying build an application using FFMPEG with hardware acceleration.
      For that I need to set path for hardware accelerators and libva driver name.

      export PKG_CONFIG_PATH=/opt/mediasdk/lib/pkgconfig/:$PKG_CONFIG_PATH
      export LD_LIBRARY_PATH=/opt/mediasdk/lib/:$LD_LIBRARY_PATH
      export LIBVA_DRIVER_NAME=iHD

      These are the path I used to set through Linux terminal.
      I am able to set LDD and pkg_config path. But I am able to understand how to set libva_driver_name.

      Error is ::
      "[AVHWDeviceContext @ 0x7f4c18003380] libva: va_getDriverName() failed with unknown libva error,driver_name=(null)
      [AVHWDeviceContext @ 0x7f4c18003380] Failed to initialise VAAPI connection: -1 (unknown libva error)."

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @Mahesh_Palkar said in How to set libva_driver_name in qmake file:

      I am trying build an application using FFMPEG with hardware acceleration.
      For that I need to set path for hardware accelerators and libva driver name.

      how is this eventually related to Qt framework?

      libva: va_getDriverName() failed with unknown libva error,driver_name=(null)

      should you look for any related issues in the documentation/forum from the libva implementation you're using?

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mahesh_Palkar
        wrote on last edited by
        #3

        Actually I want to do hardware decoding using FFMPEG in qt. So to enable hardware decoding i need to enable libva drivers ie i965.
        So my question is how can I set Libva path and driver name so that when I call ffmpeg api to hardware decode it should take driver.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Mahesh_Palkar
          wrote on last edited by
          #4

          what is qmake equivalent to following in cmake

          export PKG_CONFIG_PATH=/opt/mediasdk/lib/pkgconfig/:$PKG_CONFIG_PATH
          export LD_LIBRARY_PATH=/opt/mediasdk/lib/:$LD_LIBRARY_PATH
          export LIBVA_DRIVER_NAME=iHD

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved