Index | Thread | Search

From:
José Maldonado <josemald89@gmail.com>
Subject:
Re: Enable VA-API in graphics/ffmpeg
To:
Brad Smith <brad@comstyle.com>
Cc:
Rafael Sadowski <rafael@sizeofvoid.org>, ports <ports@openbsd.org>
Date:
Tue, 23 Jul 2024 18:02:20 -0400

Download raw body.

Thread
  • Brad Smith:

    Enable VA-API in graphics/ffmpeg

  • Rafael Sadowski:

    Enable VA-API in graphics/ffmpeg

  • El lun, 22 jul 2024 a la(s) 3:36 a.m., Brad Smith (brad@comstyle.com) escribió:
    >
    > On 2024-07-20 5:32 a.m., 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.
    >
    > diff --git a/graphics/ffmpeg/Makefile b/graphics/ffmpeg/Makefile
    > index 8b1663a55ab..83887bbabe0 100644
    > --- a/graphics/ffmpeg/Makefile
    > +++ b/graphics/ffmpeg/Makefile
    > @@ -3,7 +3,7 @@ COMMENT= audio/video converter and streamer
    >  V= 4.4.4
    >  DISTNAME= ffmpeg-${V}
    >  EPOCH= 1
    > -REVISION= 4
    > +REVISION= 5
    >  CATEGORIES= graphics multimedia
    >  SITES= https://ffmpeg.org/releases/
    >  EXTRACT_SUFX= .tar.xz
    > @@ -26,11 +26,11 @@ MAINTAINER= Brad Smith <brad@comstyle.com>
    >  # LGPLv2.1 and GPLv2
    >  PERMIT_PACKAGE= Yes
    >
    > -WANTLIB+= SDL2 X11 Xext Xv aom ass bz2 c crypto dav1d fontconfig
    > -WANTLIB+= freetype fribidi gsm iconv lzma m mp3lame opus
    > -WANTLIB+= pthread sndio speex ssl theoradec theoraenc v4l2
    > -WANTLIB+= vorbis vorbisenc vpx x264 x265 xcb xcb-shape xcb-shm
    > -WANTLIB+= xcb-xfixes xml2 xvidcore vidstab z zimg
    > +WANTLIB += SDL2 X11 Xext Xv aom ass bz2 c crypto dav1d fontconfig
    > +WANTLIB += freetype fribidi gsm iconv lzma m mp3lame opus pthread
    > +WANTLIB += sndio speex ssl theoradec theoraenc v4l2 va va-drm
    > +WANTLIB += va-x11 vidstab vorbis vorbisenc vpx x264 x265 xcb xcb-shape
    > +WANTLIB += xcb-shm xcb-xfixes xml2 xvidcore z zimg
    >
    >  COMPILER= base-clang ports-gcc
    >  COMPILER_LANGS= c
    > @@ -66,11 +66,18 @@ LIB_DEPENDS= archivers/bzip2 \
    >   textproc/libxml
    >
    >  # inter-library dependencies for the current configuration
    > -LIBavcodec_EXTRALIBS=-L${LOCALBASE}/lib -laom -ldav1d -lgsm -liconv -llzma -lmp3lame -lopus -lspeex -ltheoradec -ltheoraenc -lvorbis -lvorbisenc -lvpx -lx264 -lx265 -lxvidcore -lm -lz -pthread
    > -LIBavdevice_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lX11 -lXext -lXv -lxcb-shape -lxcb-shm -lxcb-xfixes -lxcb -lsndio -lv4l2 -lm
    > -LIBavfilter_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lass -lfontconfig -lfreetype -lfribidi -lvidstab -lm -lz -lzimg -pthread
    > +LIBavcodec_EXTRALIBS=-L${LOCALBASE}/lib -laom -ldav1d -lgsm -liconv -llzma
    > +LIBavcodec_EXTRALIBS+=-lmp3lame -lopus -lspeex -ltheoradec -ltheoraenc -lvorbis
    > +LIBavcodec_EXTRALIBS+=-lvorbisenc -lvpx -lx264 -lx265 -lxvidcore -lm -lz -pthread
    > +LIBavcodec_EXTRALIBS+=-L${X11BASE}/lib -lva -lva-drm
    >
    > Move the X11BASE/lib path up to where LOCALBASE/lib is.
    >
    > +LIBavdevice_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lX11 -lXext -lXv
    > +LIBavdevice_EXTRALIBS+=-lxcb-shape -lxcb-shm -lxcb-xfixes -lxcb -lsndio -lv4l2 -lm
    > +
    > +LIBavfilter_EXTRALIBS=-L${LOCALBASE}/lib -L${X11BASE}/lib -lass -lfontconfig
    > +LIBavfilter_EXTRALIBS+=-lfreetype -lfribidi -lvidstab -lm -lz -lzimg -pthread -lva
    >  LIBavformat_EXTRALIBS=-L${LOCALBASE}/lib -lbz2 -lxml2 -lssl -lcrypto -lm -lz
    > -LIBavutil_EXTRALIBS=-lm -pthread
    > +LIBavutil_EXTRALIBS=-L${X11BASE}/lib -lva -lva-drm -lva-x11 -lm -pthread
    >  LIBpostproc_EXTRALIBS=-lm
    >  LIBswresample_EXTRALIBS=-lm
    >  LIBswscale_EXTRALIBS=-lm
    > @@ -95,7 +102,7 @@ CONFIGURE_ARGS+=--enable-shared \
    >   --disable-stripping \
    >   --disable-indev=jack \
    >   --disable-outdev=sdl2 \
    > - --disable-vaapi \
    > + --enable-vaapi \
    >
    > You don't have to add the --enable option. Just remove the --disable
    > option.
    >
    >   --enable-fontconfig \
    >   --enable-frei0r \
    >   --enable-gpl \
    >
    > OK.
    
    Hi!
    
    The last sync (23 july, 21:57 pm UTC) for my port tree have
    ffmpeg-4.4.4p5 without VAAPI active (--disable-vaapi CONFIGURE_ARGS)
    but ports xine-libs and others point this version with this support.
    
    
    -- 
    "Dios en su Cielo, todo bien en la Tierra"
    ***********************************************
    
    
    
  • Brad Smith:

    Enable VA-API in graphics/ffmpeg

  • Rafael Sadowski:

    Enable VA-API in graphics/ffmpeg