Index | Thread | Search

From:
José Maldonado <josemald89@gmail.com>
Subject:
Re: Enable VA-API in graphics/ffmpeg
To:
ports <ports@openbsd.org>
Date:
Wed, 24 Jul 2024 18:09:51 -0400

Download raw body.

Thread
  • Rafael Sadowski:

    Enable VA-API in graphics/ffmpeg

    • José Maldonado:

      Enable VA-API in graphics/ffmpeg

  • El mié, 24 jul 2024 a la(s) 4:41 p.m., Rafael Sadowski
    (rafael@sizeofvoid.org) escribió:
    >
    > On Sat Jul 20, 2024 at 11:32:29AM GMT, Rafael Sadowski wrote:
    > > OK to enable VA-API? It only depends on xenocara libva. Since libva
    > > builds on almost all arches, I see no reason to restrict it by CPU
    > > architectures any further.
    > >
    > Here is some research from me:
    >
    > # Case 1, segmentation fault in intel-media-driver:
    >
    > # Files from https://www.elecard.com/videos
    > $ ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 \
    > -i AVC-H.264-TheaterSquare_3840x2160.mp4 -vf 'format=nv12,hwupload' -c:v \
    > h264_vaapi -f mpegts - | ffplay -
    >
    
    My case:
    
    ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 \
    -i TheaterSquare_3840x2160.mp4 -vf 'format=nv12,hwupload' \
    -c:v h264_vaapi -f mpegts - | ffplay -
    
    All ok, encode and decode work fine.
    
    Log here: https://pastebin.com/TUNED8gW
    
    >
    > # Case 2 No usable encoding entrypoint found for profile VAProfileVP9Profile0
    >
    > # Files from https://www.elecard.com/videos
    > $ ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 \
    > -i VP9_UshaikaRiverEmb_3840x2160.webm -vf 'format=nv12,hwupload' \
    > -c:v vp9_vaapi -f mpegts - |ffplay -
    > ...
    
    Second case, not work for me, my card don´t have support for VP9 hwaccel.
    
    "Dios en su Cielo, todo bien en la Tierra"
    ***********************************************
    
    
    
  • Rafael Sadowski:

    Enable VA-API in graphics/ffmpeg