GStreamer with Swift(General Problems)

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

GStreamer with Swift(General Problems)

Tuğrul Eşin
Hello everyone . I tried Gstreamer IOS Tutorials and they get successfully complied. But I can't integration GStreamer on my project.
I tried copy tutorial's get_ios_init.h/m , GStreamerBackendDelegate.h/m , GStreamerBackend.h/m and EaglUIVIew.h/M. But get_ios_init files give error a lot linker error. I get made comment line plugins on gst_ios_init.h. Errors not now, project complied successfully but now I can't choose EaglVIew.class for my view. Anyone help me or show me reference project. Thank you a lot.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

VA-API VP9 Encode For GStreamer??

Patrick Cusack
Two questions regarding vaapi for vp9:

1) Does gstreamer support VP9 encoding? According to this (gstvaapiencode_vp9.c), it does, but I don’t see mention of it in the README @ https://github.com/GStreamer/gstreamer-vaapi

2) I installed the following packages, but I do not see any vaapi encoders when I run get-inspect. I do have vaapi installed and can run it successfully with ffmpeg.

gstreamer1-1.16.2-2.fc32.x86_64
gstreamer1-plugins-ugly-free-devel-1.16.2-2.fc32.x86_64
gstreamer1-vaapi-devel-docs-1.16.2-1.fc32.noarch
gstreamer1-plugins-entrans-1.4.0-2.fc32.x86_64
gstreamer1-plugins-bad-freeworld-1.16.2-5.fc32.x86_64
gstreamer1-plugins-base-devel-docs-1.16.2-3.fc32.noarch
gstreamer1-plugins-good-1.16.2-2.fc32.x86_64
gstreamer1-plugins-base-devel-1.16.2-3.fc32.x86_64
gstreamer1-plugins-ugly-free-1.16.2-2.fc32.x86_64
gstreamer1-plugins-bad-free-wildmidi-1.16.2-3.fc32.x86_64
gstreamer1-plugins-entrans-docs-1.4.0-2.fc32.noarch
gstreamer1-libav-1.16.2-3.fc32.x86_64
gstreamer1-plugins-good-qt-1.16.2-2.fc32.x86_64
gstreamer1-devel-1.16.2-2.fc32.x86_64
gstreamer1-plugins-good-gtk-1.16.2-2.fc32.x86_64
gstreamer1-plugins-fc-0.2-22.fc32.x86_64
gstreamer1-plugins-bad-free-extras-1.16.2-3.fc32.x86_64
gstreamer1-plugins-ugly-1.16.2-3.fc32.x86_64
gstreamer1-plugins-bad-free-devel-1.16.2-3.fc32.x86_64
gstreamer1-vaapi-1.16.2-1.fc32.x86_64
gstreamer1-plugins-bad-free-fluidsynth-1.16.2-3.fc32.x86_64
gstreamer1-plugins-base-tools-1.16.2-3.fc32.x86_64
gstreamer1-plugins-good-extras-1.16.2-2.fc32.x86_64
gstreamer1-plugins-base-1.16.2-3.fc32.x86_64
gstreamer1-plugins-bad-free-1.16.2-3.fc32.x86_64




_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Patrick Cusack
When I run  gst-inspect-1.0 vaapi, I get the following:

Plugin Details:
  Name                     vaapi
  Description              VA-API based elements
  Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
  Version                  1.16.2
  License                  LGPL
  Source module            gstreamer-vaapi
  Source release date      2019-12-03
  Binary package           gstreamer-vaapi


  0 features:


If I run, GST_VAAPI_ALL_DRIVERS=1 gst-inspect-1.0 vaapi, the I get, and I see no VP9 encoder even though it is mentioned at:



Plugin Details:
  Name                     vaapi
  Description              VA-API based elements
  Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
  Version                  1.16.2
  License                  LGPL
  Source module            gstreamer-vaapi
  Source release date      2019-12-03
  Binary package           gstreamer-vaapi

  vaapih264feienc: VA-API H264 FEI Advanced encoder (Experimental)
  vaapih264enc: VA-API H264 encoder
  vaapijpegenc: VA-API JPEG encoder
  vaapivp8enc: VA-API VP8 encoder
  vaapih265enc: VA-API H265 encoder
  vaapimpeg2enc: VA-API MPEG-2 encoder
  vaapisink: VA-API sink
  vaapidecodebin: VA-API Decode Bin
  vaapipostproc: VA-API video postprocessing
  vaapih265dec: VA-API H265 decoder
  vaapivp9dec: VA-API VP9 decoder
  vaapivp8dec: VA-API VP8 decoder
  vaapivc1dec: VA-API VC1 decoder
  vaapih264dec: VA-API H264 decoder
  vaapimpeg2dec: VA-API MPEG2 decoder
  vaapijpegdec: VA-API JPEG decoder

  16 features:
  +-- 16 elements



On May 20, 2020, at 11:00 AM, Patrick Cusack <[hidden email]> wrote:

Two questions regarding vaapi for vp9:

1) Does gstreamer support VP9 encoding? According to this (gstvaapiencode_vp9.c), it does, but I don’t see mention of it in the README @ https://github.com/GStreamer/gstreamer-vaapi

2) I installed the following packages, but I do not see any vaapi encoders when I run get-inspect. I do have vaapi installed and can run it successfully with ffmpeg.

gstreamer1-1.16.2-2.fc32.x86_64
gstreamer1-plugins-ugly-free-devel-1.16.2-2.fc32.x86_64
gstreamer1-vaapi-devel-docs-1.16.2-1.fc32.noarch
gstreamer1-plugins-entrans-1.4.0-2.fc32.x86_64
gstreamer1-plugins-bad-freeworld-1.16.2-5.fc32.x86_64
gstreamer1-plugins-base-devel-docs-1.16.2-3.fc32.noarch
gstreamer1-plugins-good-1.16.2-2.fc32.x86_64
gstreamer1-plugins-base-devel-1.16.2-3.fc32.x86_64
gstreamer1-plugins-ugly-free-1.16.2-2.fc32.x86_64
gstreamer1-plugins-bad-free-wildmidi-1.16.2-3.fc32.x86_64
gstreamer1-plugins-entrans-docs-1.4.0-2.fc32.noarch
gstreamer1-libav-1.16.2-3.fc32.x86_64
gstreamer1-plugins-good-qt-1.16.2-2.fc32.x86_64
gstreamer1-devel-1.16.2-2.fc32.x86_64
gstreamer1-plugins-good-gtk-1.16.2-2.fc32.x86_64
gstreamer1-plugins-fc-0.2-22.fc32.x86_64
gstreamer1-plugins-bad-free-extras-1.16.2-3.fc32.x86_64
gstreamer1-plugins-ugly-1.16.2-3.fc32.x86_64
gstreamer1-plugins-bad-free-devel-1.16.2-3.fc32.x86_64
gstreamer1-vaapi-1.16.2-1.fc32.x86_64
gstreamer1-plugins-bad-free-fluidsynth-1.16.2-3.fc32.x86_64
gstreamer1-plugins-base-tools-1.16.2-3.fc32.x86_64
gstreamer1-plugins-good-extras-1.16.2-2.fc32.x86_64
gstreamer1-plugins-base-1.16.2-3.fc32.x86_64
gstreamer1-plugins-bad-free-1.16.2-3.fc32.x86_64





_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Wolfgang Grandegger
Hello,

I also need to set the DISPLAY to see the VAAPI elements. What do the
following commands report:

  $ vainfo
  $ inxi -G

Maybe the hardware is not capable for VP9 decoding.

Wolfgang

Am 20.05.20 um 21:24 schrieb Patrick Cusack:

> When I run  gst-inspect-1.0 vaapi, I get the following:
>
> Plugin Details:
>   Name                     vaapi
>   Description              VA-API based elements
>   Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
>   Version                  1.16.2
>   License                  LGPL
>   Source module            gstreamer-vaapi
>   Source release date      2019-12-03
>   Binary package           gstreamer-vaapi
>   Origin URL              
> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
>
>
>   0 features:
>
>
> If I run, GST_VAAPI_ALL_DRIVERS=1 gst-inspect-1.0 vaapi, the I get, and
> I see no VP9 encoder even though it is mentioned at:
>
> https://gstreamer.freedesktop.org/documentation/vaapi/vaapivp9enc.html?gi-language=c
>
>
> Plugin Details:
>   Name                     vaapi
>   Description              VA-API based elements
>   Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
>   Version                  1.16.2
>   License                  LGPL
>   Source module            gstreamer-vaapi
>   Source release date      2019-12-03
>   Binary package           gstreamer-vaapi
>   Origin URL              
> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
>
>   vaapih264feienc: VA-API H264 FEI Advanced encoder (Experimental)
>   vaapih264enc: VA-API H264 encoder
>   vaapijpegenc: VA-API JPEG encoder
>   vaapivp8enc: VA-API VP8 encoder
>   vaapih265enc: VA-API H265 encoder
>   vaapimpeg2enc: VA-API MPEG-2 encoder
>   vaapisink: VA-API sink
>   vaapidecodebin: VA-API Decode Bin
>   vaapipostproc: VA-API video postprocessing
>   vaapih265dec: VA-API H265 decoder
>   vaapivp9dec: VA-API VP9 decoder
>   vaapivp8dec: VA-API VP8 decoder
>   vaapivc1dec: VA-API VC1 decoder
>   vaapih264dec: VA-API H264 decoder
>   vaapimpeg2dec: VA-API MPEG2 decoder
>   vaapijpegdec: VA-API JPEG decoder
>
>   16 features:
>   +--16 elements
>
>
>
>> On May 20, 2020, at 11:00 AM, Patrick Cusack <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>> Two questions regarding vaapi for vp9:
>>
>> 1) Does gstreamer support VP9 encoding? According to this
>> (gstvaapiencode_vp9.c), it does, but I don’t see mention of it in the
>> README @ https://github.com/GStreamer/gstreamer-vaapi
>>
>> 2) I installed the following packages, but I do not see any vaapi
>> encoders when I run get-inspect. I do have vaapi installed and can run
>> it successfully with ffmpeg.
>>
>> *gst*reamer1-1.16.2-2.fc32.x86_64
>> *gst*reamer1-plugins-ugly-free-devel-1.16.2-2.fc32.x86_64
>> *gst*reamer1-vaapi-devel-docs-1.16.2-1.fc32.noarch
>> *gst*reamer1-plugins-entrans-1.4.0-2.fc32.x86_64
>> *gst*reamer1-plugins-bad-freeworld-1.16.2-5.fc32.x86_64
>> *gst*reamer1-plugins-base-devel-docs-1.16.2-3.fc32.noarch
>> *gst*reamer1-plugins-good-1.16.2-2.fc32.x86_64
>> *gst*reamer1-plugins-base-devel-1.16.2-3.fc32.x86_64
>> *gst*reamer1-plugins-ugly-free-1.16.2-2.fc32.x86_64
>> *gst*reamer1-plugins-bad-free-wildmidi-1.16.2-3.fc32.x86_64
>> *gst*reamer1-plugins-entrans-docs-1.4.0-2.fc32.noarch
>> *gst*reamer1-libav-1.16.2-3.fc32.x86_64
>> *gst*reamer1-plugins-good-qt-1.16.2-2.fc32.x86_64
>> *gst*reamer1-devel-1.16.2-2.fc32.x86_64
>> *gst*reamer1-plugins-good-gtk-1.16.2-2.fc32.x86_64
>> *gst*reamer1-plugins-fc-0.2-22.fc32.x86_64
>> *gst*reamer1-plugins-bad-free-extras-1.16.2-3.fc32.x86_64
>> *gst*reamer1-plugins-ugly-1.16.2-3.fc32.x86_64
>> *gst*reamer1-plugins-bad-free-devel-1.16.2-3.fc32.x86_64
>> *gst*reamer1-vaapi-1.16.2-1.fc32.x86_64
>> *gst*reamer1-plugins-bad-free-fluidsynth-1.16.2-3.fc32.x86_64
>> *gst*reamer1-plugins-base-tools-1.16.2-3.fc32.x86_64
>> *gst*reamer1-plugins-good-extras-1.16.2-2.fc32.x86_64
>> *gst*reamer1-plugins-base-1.16.2-3.fc32.x86_64
>> *gst*reamer1-plugins-bad-free-1.16.2-3.fc32.x86_64
>>
>>
>>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Nicolas Dufresne-5
In reply to this post by Patrick Cusack
Le mercredi 20 mai 2020 à 11:00 -0700, Patrick Cusack a écrit :
Two questions regarding vaapi for vp9:

1) Does gstreamer support VP9 encoding? According to this (gstvaapiencode_vp9.c), it does, but I don’t see mention of it in the README @ https://github.com/GStreamer/gstreamer-vaapi

Yes, it is supported , the readme needs to be updated.


2) I installed the following packages, but I do not see any vaapi encoders when I run get-inspect. I do have vaapi installed and can run it successfully with ffmpeg.

gstreamer1-vaapi-1.16.2-1.fc32.x86_64

This is the relevant package. Note that only very recent Intel Chipset provide VP9 encoding. If your hardware does not have this support, the related vaapi element will not be generated. To list you hardware features:

  vainfo | grep EncSlice


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Patrick Cusack
In reply to this post by Wolfgang Grandegger
I can run it either as iHD or i965. If I specify i965 in my ffmpeg script, I can do VP9 encodes. Here is my vainfo with either iHD or i965. I am running headless fwiw.

Patrick

 

[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="iHD" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 20.1.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileNone                   : VAEntrypointStats
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointFEI
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointFEI
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointFEI
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointFEI
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile2            : VAEntrypointVLD

[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointEncSliceLP
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      : VAEntrypointVLD
      VAProfileH264MultiviewHigh      : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileH264StereoHigh         : VAEntrypointEncSlice
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
      VAProfileJPEGBaseline           : VAEntrypointEncPicture
      VAProfileVP8Version0_3          : VAEntrypointVLD
      VAProfileVP8Version0_3          : VAEntrypointEncSlice
      VAProfileHEVCMain               : VAEntrypointVLD
      VAProfileHEVCMain               : VAEntrypointEncSlice
      VAProfileHEVCMain10             : VAEntrypointVLD
      VAProfileHEVCMain10             : VAEntrypointEncSlice
      VAProfileVP9Profile0            : VAEntrypointVLD
      VAProfileVP9Profile0            : VAEntrypointEncSlice
      VAProfileVP9Profile2            : VAEntrypointVLD

inxi -G yields 

Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
           Display: server: No display server data found. Headless machine? tty: 226x49 
           Message: Advanced graphics data unavailable in console for root. 



On May 20, 2020, at 12:50 PM, Wolfgang Grandegger <[hidden email]> wrote:

Hello,

I also need to set the DISPLAY to see the VAAPI elements. What do the
following commands report:

 $ vainfo
 $ inxi -G

Maybe the hardware is not capable for VP9 decoding.

Wolfgang

Am 20.05.20 um 21:24 schrieb Patrick Cusack:
When I run  gst-inspect-1.0 vaapi, I get the following:

Plugin Details:
  Name                     vaapi
  Description              VA-API based elements
  Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
  Version                  1.16.2
  License                  LGPL
  Source module            gstreamer-vaapi
  Source release date      2019-12-03
  Binary package           gstreamer-vaapi
  Origin URL              
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer


  0 features:


If I run, GST_VAAPI_ALL_DRIVERS=1 gst-inspect-1.0 vaapi, the I get, and
I see no VP9 encoder even though it is mentioned at:

https://gstreamer.freedesktop.org/documentation/vaapi/vaapivp9enc.html?gi-language=c


Plugin Details:
  Name                     vaapi
  Description              VA-API based elements
  Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
  Version                  1.16.2
  License                  LGPL
  Source module            gstreamer-vaapi
  Source release date      2019-12-03
  Binary package           gstreamer-vaapi
  Origin URL              
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

  vaapih264feienc: VA-API H264 FEI Advanced encoder (Experimental)
  vaapih264enc: VA-API H264 encoder
  vaapijpegenc: VA-API JPEG encoder
  vaapivp8enc: VA-API VP8 encoder
  vaapih265enc: VA-API H265 encoder
  vaapimpeg2enc: VA-API MPEG-2 encoder
  vaapisink: VA-API sink
  vaapidecodebin: VA-API Decode Bin
  vaapipostproc: VA-API video postprocessing
  vaapih265dec: VA-API H265 decoder
  vaapivp9dec: VA-API VP9 decoder
  vaapivp8dec: VA-API VP8 decoder
  vaapivc1dec: VA-API VC1 decoder
  vaapih264dec: VA-API H264 decoder
  vaapimpeg2dec: VA-API MPEG2 decoder
  vaapijpegdec: VA-API JPEG decoder

  16 features:
  +--16 elements



On May 20, 2020, at 11:00 AM, Patrick Cusack <[hidden email]
<[hidden email]>> wrote:

Two questions regarding vaapi for vp9:

1) Does gstreamer support VP9 encoding? According to this
(gstvaapiencode_vp9.c), it does, but I don’t see mention of it in the
README @ https://github.com/GStreamer/gstreamer-vaapi

2) I installed the following packages, but I do not see any vaapi
encoders when I run get-inspect. I do have vaapi installed and can run
it successfully with ffmpeg.

*gst*reamer1-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-ugly-free-devel-1.16.2-2.fc32.x86_64
*gst*reamer1-vaapi-devel-docs-1.16.2-1.fc32.noarch
*gst*reamer1-plugins-entrans-1.4.0-2.fc32.x86_64
*gst*reamer1-plugins-bad-freeworld-1.16.2-5.fc32.x86_64
*gst*reamer1-plugins-base-devel-docs-1.16.2-3.fc32.noarch
*gst*reamer1-plugins-good-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-base-devel-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-ugly-free-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-bad-free-wildmidi-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-entrans-docs-1.4.0-2.fc32.noarch
*gst*reamer1-libav-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-good-qt-1.16.2-2.fc32.x86_64
*gst*reamer1-devel-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-good-gtk-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-fc-0.2-22.fc32.x86_64
*gst*reamer1-plugins-bad-free-extras-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-ugly-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-bad-free-devel-1.16.2-3.fc32.x86_64
*gst*reamer1-vaapi-1.16.2-1.fc32.x86_64
*gst*reamer1-plugins-bad-free-fluidsynth-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-base-tools-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-good-extras-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-base-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-bad-free-1.16.2-3.fc32.x86_64





_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Wolfgang Grandegger
Hello,

OK, I think you need KBL+. At least "vainfo" lists "VP9" features. For
Ubuntu, there are also these "non-free" packages:

 i965-va-driver-shaders
 intel-media-va-driver-non-free

See also https://github.com/intel/media-driver/blob/master/README.md

Not sure if it changes something.

Wolfgang

Am 20.05.20 um 22:12 schrieb Patrick Cusack:

> I can run it either as iHD or i965. If I specify i965 in my ffmpeg
> script, I can do VP9 encodes. Here is my vainfo with either iHD or i965.
> I am running headless fwiw.
>
> Patrick
>
>  
>
> [root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="iHD" vainfo
> error: can't connect to X server!
> libva info: VA-API version 1.7.0
> libva info: User environment variable requested driver 'iHD'
> libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
> libva info: Found init function __vaDriverInit_1_7
> libva info: va_openDriver() returns 0
> vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
> vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics -
> 20.1.1 ()
> vainfo: Supported profile and entrypoints
>       VAProfileNone                   :VAEntrypointVideoProc
>       VAProfileNone                   :VAEntrypointStats
>       VAProfileMPEG2Simple            :VAEntrypointVLD
>       VAProfileMPEG2Simple            :VAEntrypointEncSlice
>       VAProfileMPEG2Main              :VAEntrypointVLD
>       VAProfileMPEG2Main              :VAEntrypointEncSlice
>       VAProfileH264Main               :VAEntrypointVLD
>       VAProfileH264Main               :VAEntrypointEncSlice
>       VAProfileH264Main               :VAEntrypointFEI
>       VAProfileH264Main               :VAEntrypointEncSliceLP
>       VAProfileH264High               :VAEntrypointVLD
>       VAProfileH264High               :VAEntrypointEncSlice
>       VAProfileH264High               :VAEntrypointFEI
>       VAProfileH264High               :VAEntrypointEncSliceLP
>       VAProfileVC1Simple              :VAEntrypointVLD
>       VAProfileVC1Main                :VAEntrypointVLD
>       VAProfileVC1Advanced            :VAEntrypointVLD
>       VAProfileJPEGBaseline           :VAEntrypointVLD
>       VAProfileJPEGBaseline           :VAEntrypointEncPicture
>       VAProfileH264ConstrainedBaseline:VAEntrypointVLD
>       VAProfileH264ConstrainedBaseline:VAEntrypointEncSlice
>       VAProfileH264ConstrainedBaseline:VAEntrypointFEI
>       VAProfileH264ConstrainedBaseline:VAEntrypointEncSliceLP
>       VAProfileVP8Version0_3          :VAEntrypointVLD
>       VAProfileVP8Version0_3          :VAEntrypointEncSlice
>       VAProfileHEVCMain               :VAEntrypointVLD
>       VAProfileHEVCMain               :VAEntrypointEncSlice
>       VAProfileHEVCMain               :VAEntrypointFEI
>       VAProfileHEVCMain10             :VAEntrypointVLD
>       VAProfileHEVCMain10             :VAEntrypointEncSlice
>       VAProfileVP9Profile0            :VAEntrypointVLD
>       VAProfileVP9Profile2            :VAEntrypointVLD
>
> [root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
> error: can't connect to X server!
> libva info: VA-API version 1.7.0
> libva info: User environment variable requested driver 'i965'
> libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
> libva info: Found init function __vaDriverInit_1_6
> libva info: va_openDriver() returns 0
> vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
> vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0
> vainfo: Supported profile and entrypoints
>       VAProfileMPEG2Simple            :VAEntrypointVLD
>       VAProfileMPEG2Simple            :VAEntrypointEncSlice
>       VAProfileMPEG2Main              :VAEntrypointVLD
>       VAProfileMPEG2Main              :VAEntrypointEncSlice
>       VAProfileH264ConstrainedBaseline:VAEntrypointVLD
>       VAProfileH264ConstrainedBaseline:VAEntrypointEncSlice
>       VAProfileH264ConstrainedBaseline:VAEntrypointEncSliceLP
>       VAProfileH264Main               :VAEntrypointVLD
>       VAProfileH264Main               :VAEntrypointEncSlice
>       VAProfileH264Main               :VAEntrypointEncSliceLP
>       VAProfileH264High               :VAEntrypointVLD
>       VAProfileH264High               :VAEntrypointEncSlice
>       VAProfileH264High               :VAEntrypointEncSliceLP
>       VAProfileH264MultiviewHigh      :VAEntrypointVLD
>       VAProfileH264MultiviewHigh      :VAEntrypointEncSlice
>       VAProfileH264StereoHigh         :VAEntrypointVLD
>       VAProfileH264StereoHigh         :VAEntrypointEncSlice
>       VAProfileVC1Simple              :VAEntrypointVLD
>       VAProfileVC1Main                :VAEntrypointVLD
>       VAProfileVC1Advanced            :VAEntrypointVLD
>       VAProfileNone                   :VAEntrypointVideoProc
>       VAProfileJPEGBaseline           :VAEntrypointVLD
>       VAProfileJPEGBaseline           :VAEntrypointEncPicture
>       VAProfileVP8Version0_3          :VAEntrypointVLD
>       VAProfileVP8Version0_3          :VAEntrypointEncSlice
>       VAProfileHEVCMain               :VAEntrypointVLD
>       VAProfileHEVCMain               :VAEntrypointEncSlice
>       VAProfileHEVCMain10             :VAEntrypointVLD
>       VAProfileHEVCMain10             :VAEntrypointEncSlice
>       VAProfileVP9Profile0            :VAEntrypointVLD
>       VAProfileVP9Profile0            :VAEntrypointEncSlice
>       VAProfileVP9Profile2            :VAEntrypointVLD
>
> inxi -G yields 
>
> *Graphics:  Device-1:*Intel UHD Graphics 630 *driver:*i915 *v:*kernel 
>            *Display:**server:*No display server data found. Headless
> machine? *tty:*226x49 
>            *Message:*Advanced graphics data unavailable in console for
> root. 
>
>
>
>> On May 20, 2020, at 12:50 PM, Wolfgang Grandegger <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>> Hello,
>>
>> I also need to set the DISPLAY to see the VAAPI elements. What do the
>> following commands report:
>>
>>  $ vainfo
>>  $ inxi -G
>>
>> Maybe the hardware is not capable for VP9 decoding.
>>
>> Wolfgang
>>
>> Am 20.05.20 um 21:24 schrieb Patrick Cusack:
>>> When I run  gst-inspect-1.0 vaapi, I get the following:
>>>
>>> Plugin Details:
>>>   Name                     vaapi
>>>   Description              VA-API based elements
>>>   Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
>>>   Version                  1.16.2
>>>   License                  LGPL
>>>   Source module            gstreamer-vaapi
>>>   Source release date      2019-12-03
>>>   Binary package           gstreamer-vaapi
>>>   Origin URL              
>>> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
>>>
>>>
>>>   0 features:
>>>
>>>
>>> If I run, GST_VAAPI_ALL_DRIVERS=1 gst-inspect-1.0 vaapi, the I get, and
>>> I see no VP9 encoder even though it is mentioned at:
>>>
>>> https://gstreamer.freedesktop.org/documentation/vaapi/vaapivp9enc.html?gi-language=c
>>>
>>>
>>> Plugin Details:
>>>   Name                     vaapi
>>>   Description              VA-API based elements
>>>   Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
>>>   Version                  1.16.2
>>>   License                  LGPL
>>>   Source module            gstreamer-vaapi
>>>   Source release date      2019-12-03
>>>   Binary package           gstreamer-vaapi
>>>   Origin URL              
>>> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
>>>
>>>   vaapih264feienc: VA-API H264 FEI Advanced encoder (Experimental)
>>>   vaapih264enc: VA-API H264 encoder
>>>   vaapijpegenc: VA-API JPEG encoder
>>>   vaapivp8enc: VA-API VP8 encoder
>>>   vaapih265enc: VA-API H265 encoder
>>>   vaapimpeg2enc: VA-API MPEG-2 encoder
>>>   vaapisink: VA-API sink
>>>   vaapidecodebin: VA-API Decode Bin
>>>   vaapipostproc: VA-API video postprocessing
>>>   vaapih265dec: VA-API H265 decoder
>>>   vaapivp9dec: VA-API VP9 decoder
>>>   vaapivp8dec: VA-API VP8 decoder
>>>   vaapivc1dec: VA-API VC1 decoder
>>>   vaapih264dec: VA-API H264 decoder
>>>   vaapimpeg2dec: VA-API MPEG2 decoder
>>>   vaapijpegdec: VA-API JPEG decoder
>>>
>>>   16 features:
>>>   +--16 elements
>>>
>>>
>>>
>>>> On May 20, 2020, at 11:00 AM, Patrick Cusack <[hidden email]
>>>> <mailto:[hidden email]>> wrote:
>>>>
>>>> Two questions regarding vaapi for vp9:
>>>>
>>>> 1) Does gstreamer support VP9 encoding? According to this
>>>> (gstvaapiencode_vp9.c), it does, but I don’t see mention of it in the
>>>> README @ https://github.com/GStreamer/gstreamer-vaapi
>>>>
>>>> 2) I installed the following packages, but I do not see any vaapi
>>>> encoders when I run get-inspect. I do have vaapi installed and can run
>>>> it successfully with ffmpeg.
>>>>
>>>> *gst*reamer1-1.16.2-2.fc32.x86_64
>>>> *gst*reamer1-plugins-ugly-free-devel-1.16.2-2.fc32.x86_64
>>>> *gst*reamer1-vaapi-devel-docs-1.16.2-1.fc32.noarch
>>>> *gst*reamer1-plugins-entrans-1.4.0-2.fc32.x86_64
>>>> *gst*reamer1-plugins-bad-freeworld-1.16.2-5.fc32.x86_64
>>>> *gst*reamer1-plugins-base-devel-docs-1.16.2-3.fc32.noarch
>>>> *gst*reamer1-plugins-good-1.16.2-2.fc32.x86_64
>>>> *gst*reamer1-plugins-base-devel-1.16.2-3.fc32.x86_64
>>>> *gst*reamer1-plugins-ugly-free-1.16.2-2.fc32.x86_64
>>>> *gst*reamer1-plugins-bad-free-wildmidi-1.16.2-3.fc32.x86_64
>>>> *gst*reamer1-plugins-entrans-docs-1.4.0-2.fc32.noarch
>>>> *gst*reamer1-libav-1.16.2-3.fc32.x86_64
>>>> *gst*reamer1-plugins-good-qt-1.16.2-2.fc32.x86_64
>>>> *gst*reamer1-devel-1.16.2-2.fc32.x86_64
>>>> *gst*reamer1-plugins-good-gtk-1.16.2-2.fc32.x86_64
>>>> *gst*reamer1-plugins-fc-0.2-22.fc32.x86_64
>>>> *gst*reamer1-plugins-bad-free-extras-1.16.2-3.fc32.x86_64
>>>> *gst*reamer1-plugins-ugly-1.16.2-3.fc32.x86_64
>>>> *gst*reamer1-plugins-bad-free-devel-1.16.2-3.fc32.x86_64
>>>> *gst*reamer1-vaapi-1.16.2-1.fc32.x86_64
>>>> *gst*reamer1-plugins-bad-free-fluidsynth-1.16.2-3.fc32.x86_64
>>>> *gst*reamer1-plugins-base-tools-1.16.2-3.fc32.x86_64
>>>> *gst*reamer1-plugins-good-extras-1.16.2-2.fc32.x86_64
>>>> *gst*reamer1-plugins-base-1.16.2-3.fc32.x86_64
>>>> *gst*reamer1-plugins-bad-free-1.16.2-3.fc32.x86_64
>>>>
>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email]
>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> <mailto:[hidden email]>
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Patrick Cusack
The processor I have is a Coffee Lake processor, i7-8700B. I’ll try installing Ubuntu.


On May 20, 2020, at 1:28 PM, Wolfgang Grandegger <[hidden email]> wrote:

Hello,

OK, I think you need KBL+. At least "vainfo" lists "VP9" features. For
Ubuntu, there are also these "non-free" packages:

i965-va-driver-shaders
intel-media-va-driver-non-free

See also https://github.com/intel/media-driver/blob/master/README.md

Not sure if it changes something.

Wolfgang

Am 20.05.20 um 22:12 schrieb Patrick Cusack:
I can run it either as iHD or i965. If I specify i965 in my ffmpeg
script, I can do VP9 encodes. Here is my vainfo with either iHD or i965.
I am running headless fwiw.

Patrick

 

[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="iHD" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_7
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics -
20.1.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :VAEntrypointVideoProc
      VAProfileNone                   :VAEntrypointStats
      VAProfileMPEG2Simple            :VAEntrypointVLD
      VAProfileMPEG2Simple            :VAEntrypointEncSlice
      VAProfileMPEG2Main              :VAEntrypointVLD
      VAProfileMPEG2Main              :VAEntrypointEncSlice
      VAProfileH264Main               :VAEntrypointVLD
      VAProfileH264Main               :VAEntrypointEncSlice
      VAProfileH264Main               :VAEntrypointFEI
      VAProfileH264Main               :VAEntrypointEncSliceLP
      VAProfileH264High               :VAEntrypointVLD
      VAProfileH264High               :VAEntrypointEncSlice
      VAProfileH264High               :VAEntrypointFEI
      VAProfileH264High               :VAEntrypointEncSliceLP
      VAProfileVC1Simple              :VAEntrypointVLD
      VAProfileVC1Main                :VAEntrypointVLD
      VAProfileVC1Advanced            :VAEntrypointVLD
      VAProfileJPEGBaseline           :VAEntrypointVLD
      VAProfileJPEGBaseline           :VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:VAEntrypointFEI
      VAProfileH264ConstrainedBaseline:VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :VAEntrypointVLD
      VAProfileVP8Version0_3          :VAEntrypointEncSlice
      VAProfileHEVCMain               :VAEntrypointVLD
      VAProfileHEVCMain               :VAEntrypointEncSlice
      VAProfileHEVCMain               :VAEntrypointFEI
      VAProfileHEVCMain10             :VAEntrypointVLD
      VAProfileHEVCMain10             :VAEntrypointEncSlice
      VAProfileVP9Profile0            :VAEntrypointVLD
      VAProfileVP9Profile2            :VAEntrypointVLD

[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :VAEntrypointVLD
      VAProfileMPEG2Simple            :VAEntrypointEncSlice
      VAProfileMPEG2Main              :VAEntrypointVLD
      VAProfileMPEG2Main              :VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:VAEntrypointEncSliceLP
      VAProfileH264Main               :VAEntrypointVLD
      VAProfileH264Main               :VAEntrypointEncSlice
      VAProfileH264Main               :VAEntrypointEncSliceLP
      VAProfileH264High               :VAEntrypointVLD
      VAProfileH264High               :VAEntrypointEncSlice
      VAProfileH264High               :VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      :VAEntrypointVLD
      VAProfileH264MultiviewHigh      :VAEntrypointEncSlice
      VAProfileH264StereoHigh         :VAEntrypointVLD
      VAProfileH264StereoHigh         :VAEntrypointEncSlice
      VAProfileVC1Simple              :VAEntrypointVLD
      VAProfileVC1Main                :VAEntrypointVLD
      VAProfileVC1Advanced            :VAEntrypointVLD
      VAProfileNone                   :VAEntrypointVideoProc
      VAProfileJPEGBaseline           :VAEntrypointVLD
      VAProfileJPEGBaseline           :VAEntrypointEncPicture
      VAProfileVP8Version0_3          :VAEntrypointVLD
      VAProfileVP8Version0_3          :VAEntrypointEncSlice
      VAProfileHEVCMain               :VAEntrypointVLD
      VAProfileHEVCMain               :VAEntrypointEncSlice
      VAProfileHEVCMain10             :VAEntrypointVLD
      VAProfileHEVCMain10             :VAEntrypointEncSlice
      VAProfileVP9Profile0            :VAEntrypointVLD
      VAProfileVP9Profile0            :VAEntrypointEncSlice
      VAProfileVP9Profile2            :VAEntrypointVLD

inxi -G yields 

*Graphics:  Device-1:*Intel UHD Graphics 630 *driver:*i915 *v:*kernel 
           *Display:**server:*No display server data found. Headless
machine? *tty:*226x49 
           *Message:*Advanced graphics data unavailable in console for
root. 



On May 20, 2020, at 12:50 PM, Wolfgang Grandegger <[hidden email]
<[hidden email]>> wrote:

Hello,

I also need to set the DISPLAY to see the VAAPI elements. What do the
following commands report:

 $ vainfo
 $ inxi -G

Maybe the hardware is not capable for VP9 decoding.

Wolfgang

Am 20.05.20 um 21:24 schrieb Patrick Cusack:
When I run  gst-inspect-1.0 vaapi, I get the following:

Plugin Details:
  Name                     vaapi
  Description              VA-API based elements
  Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
  Version                  1.16.2
  License                  LGPL
  Source module            gstreamer-vaapi
  Source release date      2019-12-03
  Binary package           gstreamer-vaapi
  Origin URL              
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer


  0 features:


If I run, GST_VAAPI_ALL_DRIVERS=1 gst-inspect-1.0 vaapi, the I get, and
I see no VP9 encoder even though it is mentioned at:

https://gstreamer.freedesktop.org/documentation/vaapi/vaapivp9enc.html?gi-language=c


Plugin Details:
  Name                     vaapi
  Description              VA-API based elements
  Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
  Version                  1.16.2
  License                  LGPL
  Source module            gstreamer-vaapi
  Source release date      2019-12-03
  Binary package           gstreamer-vaapi
  Origin URL              
http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

  vaapih264feienc: VA-API H264 FEI Advanced encoder (Experimental)
  vaapih264enc: VA-API H264 encoder
  vaapijpegenc: VA-API JPEG encoder
  vaapivp8enc: VA-API VP8 encoder
  vaapih265enc: VA-API H265 encoder
  vaapimpeg2enc: VA-API MPEG-2 encoder
  vaapisink: VA-API sink
  vaapidecodebin: VA-API Decode Bin
  vaapipostproc: VA-API video postprocessing
  vaapih265dec: VA-API H265 decoder
  vaapivp9dec: VA-API VP9 decoder
  vaapivp8dec: VA-API VP8 decoder
  vaapivc1dec: VA-API VC1 decoder
  vaapih264dec: VA-API H264 decoder
  vaapimpeg2dec: VA-API MPEG2 decoder
  vaapijpegdec: VA-API JPEG decoder

  16 features:
  +--16 elements



On May 20, 2020, at 11:00 AM, Patrick Cusack <[hidden email]
<mailto:[hidden email]>> wrote:

Two questions regarding vaapi for vp9:

1) Does gstreamer support VP9 encoding? According to this
(gstvaapiencode_vp9.c), it does, but I don’t see mention of it in the
README @ https://github.com/GStreamer/gstreamer-vaapi

2) I installed the following packages, but I do not see any vaapi
encoders when I run get-inspect. I do have vaapi installed and can run
it successfully with ffmpeg.

*gst*reamer1-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-ugly-free-devel-1.16.2-2.fc32.x86_64
*gst*reamer1-vaapi-devel-docs-1.16.2-1.fc32.noarch
*gst*reamer1-plugins-entrans-1.4.0-2.fc32.x86_64
*gst*reamer1-plugins-bad-freeworld-1.16.2-5.fc32.x86_64
*gst*reamer1-plugins-base-devel-docs-1.16.2-3.fc32.noarch
*gst*reamer1-plugins-good-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-base-devel-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-ugly-free-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-bad-free-wildmidi-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-entrans-docs-1.4.0-2.fc32.noarch
*gst*reamer1-libav-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-good-qt-1.16.2-2.fc32.x86_64
*gst*reamer1-devel-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-good-gtk-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-fc-0.2-22.fc32.x86_64
*gst*reamer1-plugins-bad-free-extras-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-ugly-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-bad-free-devel-1.16.2-3.fc32.x86_64
*gst*reamer1-vaapi-1.16.2-1.fc32.x86_64
*gst*reamer1-plugins-bad-free-fluidsynth-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-base-tools-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-good-extras-1.16.2-2.fc32.x86_64
*gst*reamer1-plugins-base-1.16.2-3.fc32.x86_64
*gst*reamer1-plugins-bad-free-1.16.2-3.fc32.x86_64





_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
<[hidden email]>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Wolfgang Grandegger
Hello,

if I look to the README.md mentioned below, you need ICL (Ice Lake) for
VP9 encoding. KBLx, including Coffee Lake, only supports VP9 decoding.

Wolfgang

Am 20.05.20 um 22:38 schrieb Patrick Cusack:

> The processor I have is a Coffee Lake processor, i7-8700B. I’ll try
> installing Ubuntu.
>
>
>> On May 20, 2020, at 1:28 PM, Wolfgang Grandegger <[hidden email]
>> <mailto:[hidden email]>> wrote:
>>
>> Hello,
>>
>> OK, I think you need KBL+. At least "vainfo" lists "VP9" features. For
>> Ubuntu, there are also these "non-free" packages:
>>
>> i965-va-driver-shaders
>> intel-media-va-driver-non-free
>>
>> See also https://github.com/intel/media-driver/blob/master/README.md
>>
>> Not sure if it changes something.
>>
>> Wolfgang
>>
>> Am 20.05.20 um 22:12 schrieb Patrick Cusack:
>>> I can run it either as iHD or i965. If I specify i965 in my ffmpeg
>>> script, I can do VP9 encodes. Here is my vainfo with either iHD or i965.
>>> I am running headless fwiw.
>>>
>>> Patrick
>>>
>>>  
>>>
>>> [root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="iHD" vainfo
>>> error: can't connect to X server!
>>> libva info: VA-API version 1.7.0
>>> libva info: User environment variable requested driver 'iHD'
>>> libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
>>> libva info: Found init function __vaDriverInit_1_7
>>> libva info: va_openDriver() returns 0
>>> vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
>>> vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics -
>>> 20.1.1 ()
>>> vainfo: Supported profile and entrypoints
>>>       VAProfileNone                   :VAEntrypointVideoProc
>>>       VAProfileNone                   :VAEntrypointStats
>>>       VAProfileMPEG2Simple            :VAEntrypointVLD
>>>       VAProfileMPEG2Simple            :VAEntrypointEncSlice
>>>       VAProfileMPEG2Main              :VAEntrypointVLD
>>>       VAProfileMPEG2Main              :VAEntrypointEncSlice
>>>       VAProfileH264Main               :VAEntrypointVLD
>>>       VAProfileH264Main               :VAEntrypointEncSlice
>>>       VAProfileH264Main               :VAEntrypointFEI
>>>       VAProfileH264Main               :VAEntrypointEncSliceLP
>>>       VAProfileH264High               :VAEntrypointVLD
>>>       VAProfileH264High               :VAEntrypointEncSlice
>>>       VAProfileH264High               :VAEntrypointFEI
>>>       VAProfileH264High               :VAEntrypointEncSliceLP
>>>       VAProfileVC1Simple              :VAEntrypointVLD
>>>       VAProfileVC1Main                :VAEntrypointVLD
>>>       VAProfileVC1Advanced            :VAEntrypointVLD
>>>       VAProfileJPEGBaseline           :VAEntrypointVLD
>>>       VAProfileJPEGBaseline           :VAEntrypointEncPicture
>>>       VAProfileH264ConstrainedBaseline:VAEntrypointVLD
>>>       VAProfileH264ConstrainedBaseline:VAEntrypointEncSlice
>>>       VAProfileH264ConstrainedBaseline:VAEntrypointFEI
>>>       VAProfileH264ConstrainedBaseline:VAEntrypointEncSliceLP
>>>       VAProfileVP8Version0_3          :VAEntrypointVLD
>>>       VAProfileVP8Version0_3          :VAEntrypointEncSlice
>>>       VAProfileHEVCMain               :VAEntrypointVLD
>>>       VAProfileHEVCMain               :VAEntrypointEncSlice
>>>       VAProfileHEVCMain               :VAEntrypointFEI
>>>       VAProfileHEVCMain10             :VAEntrypointVLD
>>>       VAProfileHEVCMain10             :VAEntrypointEncSlice
>>>       VAProfileVP9Profile0            :VAEntrypointVLD
>>>       VAProfileVP9Profile2            :VAEntrypointVLD
>>>
>>> [root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
>>> error: can't connect to X server!
>>> libva info: VA-API version 1.7.0
>>> libva info: User environment variable requested driver 'i965'
>>> libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
>>> libva info: Found init function __vaDriverInit_1_6
>>> libva info: va_openDriver() returns 0
>>> vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
>>> vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake -
>>> 2.4.0
>>> vainfo: Supported profile and entrypoints
>>>       VAProfileMPEG2Simple            :VAEntrypointVLD
>>>       VAProfileMPEG2Simple            :VAEntrypointEncSlice
>>>       VAProfileMPEG2Main              :VAEntrypointVLD
>>>       VAProfileMPEG2Main              :VAEntrypointEncSlice
>>>       VAProfileH264ConstrainedBaseline:VAEntrypointVLD
>>>       VAProfileH264ConstrainedBaseline:VAEntrypointEncSlice
>>>       VAProfileH264ConstrainedBaseline:VAEntrypointEncSliceLP
>>>       VAProfileH264Main               :VAEntrypointVLD
>>>       VAProfileH264Main               :VAEntrypointEncSlice
>>>       VAProfileH264Main               :VAEntrypointEncSliceLP
>>>       VAProfileH264High               :VAEntrypointVLD
>>>       VAProfileH264High               :VAEntrypointEncSlice
>>>       VAProfileH264High               :VAEntrypointEncSliceLP
>>>       VAProfileH264MultiviewHigh      :VAEntrypointVLD
>>>       VAProfileH264MultiviewHigh      :VAEntrypointEncSlice
>>>       VAProfileH264StereoHigh         :VAEntrypointVLD
>>>       VAProfileH264StereoHigh         :VAEntrypointEncSlice
>>>       VAProfileVC1Simple              :VAEntrypointVLD
>>>       VAProfileVC1Main                :VAEntrypointVLD
>>>       VAProfileVC1Advanced            :VAEntrypointVLD
>>>       VAProfileNone                   :VAEntrypointVideoProc
>>>       VAProfileJPEGBaseline           :VAEntrypointVLD
>>>       VAProfileJPEGBaseline           :VAEntrypointEncPicture
>>>       VAProfileVP8Version0_3          :VAEntrypointVLD
>>>       VAProfileVP8Version0_3          :VAEntrypointEncSlice
>>>       VAProfileHEVCMain               :VAEntrypointVLD
>>>       VAProfileHEVCMain               :VAEntrypointEncSlice
>>>       VAProfileHEVCMain10             :VAEntrypointVLD
>>>       VAProfileHEVCMain10             :VAEntrypointEncSlice
>>>       VAProfileVP9Profile0            :VAEntrypointVLD
>>>       VAProfileVP9Profile0            :VAEntrypointEncSlice
>>>       VAProfileVP9Profile2            :VAEntrypointVLD
>>>
>>> inxi -G yields 
>>>
>>> *Graphics:  Device-1:*Intel UHD Graphics 630 *driver:*i915 *v:*kernel 
>>>            *Display:**server:*No display server data found. Headless
>>> machine? *tty:*226x49 
>>>            *Message:*Advanced graphics data unavailable in console for
>>> root. 
>>>
>>>
>>>
>>>> On May 20, 2020, at 12:50 PM, Wolfgang Grandegger <[hidden email]
>>>> <mailto:[hidden email]>
>>>> <mailto:[hidden email]>> wrote:
>>>>
>>>> Hello,
>>>>
>>>> I also need to set the DISPLAY to see the VAAPI elements. What do the
>>>> following commands report:
>>>>
>>>>  $ vainfo
>>>>  $ inxi -G
>>>>
>>>> Maybe the hardware is not capable for VP9 decoding.
>>>>
>>>> Wolfgang
>>>>
>>>> Am 20.05.20 um 21:24 schrieb Patrick Cusack:
>>>>> When I run  gst-inspect-1.0 vaapi, I get the following:
>>>>>
>>>>> Plugin Details:
>>>>>   Name                     vaapi
>>>>>   Description              VA-API based elements
>>>>>   Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
>>>>>   Version                  1.16.2
>>>>>   License                  LGPL
>>>>>   Source module            gstreamer-vaapi
>>>>>   Source release date      2019-12-03
>>>>>   Binary package           gstreamer-vaapi
>>>>>   Origin URL              
>>>>> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
>>>>>
>>>>>
>>>>>   0 features:
>>>>>
>>>>>
>>>>> If I run, GST_VAAPI_ALL_DRIVERS=1 gst-inspect-1.0 vaapi, the I get, and
>>>>> I see no VP9 encoder even though it is mentioned at:
>>>>>
>>>>> https://gstreamer.freedesktop.org/documentation/vaapi/vaapivp9enc.html?gi-language=c
>>>>>
>>>>>
>>>>> Plugin Details:
>>>>>   Name                     vaapi
>>>>>   Description              VA-API based elements
>>>>>   Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
>>>>>   Version                  1.16.2
>>>>>   License                  LGPL
>>>>>   Source module            gstreamer-vaapi
>>>>>   Source release date      2019-12-03
>>>>>   Binary package           gstreamer-vaapi
>>>>>   Origin URL              
>>>>> http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer
>>>>>
>>>>>   vaapih264feienc: VA-API H264 FEI Advanced encoder (Experimental)
>>>>>   vaapih264enc: VA-API H264 encoder
>>>>>   vaapijpegenc: VA-API JPEG encoder
>>>>>   vaapivp8enc: VA-API VP8 encoder
>>>>>   vaapih265enc: VA-API H265 encoder
>>>>>   vaapimpeg2enc: VA-API MPEG-2 encoder
>>>>>   vaapisink: VA-API sink
>>>>>   vaapidecodebin: VA-API Decode Bin
>>>>>   vaapipostproc: VA-API video postprocessing
>>>>>   vaapih265dec: VA-API H265 decoder
>>>>>   vaapivp9dec: VA-API VP9 decoder
>>>>>   vaapivp8dec: VA-API VP8 decoder
>>>>>   vaapivc1dec: VA-API VC1 decoder
>>>>>   vaapih264dec: VA-API H264 decoder
>>>>>   vaapimpeg2dec: VA-API MPEG2 decoder
>>>>>   vaapijpegdec: VA-API JPEG decoder
>>>>>
>>>>>   16 features:
>>>>>   +--16 elements
>>>>>
>>>>>
>>>>>
>>>>>> On May 20, 2020, at 11:00 AM, Patrick Cusack <[hidden email]
>>>>>> <mailto:[hidden email]>> wrote:
>>>>>>
>>>>>> Two questions regarding vaapi for vp9:
>>>>>>
>>>>>> 1) Does gstreamer support VP9 encoding? According to this
>>>>>> (gstvaapiencode_vp9.c), it does, but I don’t see mention of it in the
>>>>>> README @ https://github.com/GStreamer/gstreamer-vaapi
>>>>>>
>>>>>> 2) I installed the following packages, but I do not see any vaapi
>>>>>> encoders when I run get-inspect. I do have vaapi installed and can run
>>>>>> it successfully with ffmpeg.
>>>>>>
>>>>>> *gst*reamer1-1.16.2-2.fc32.x86_64
>>>>>> *gst*reamer1-plugins-ugly-free-devel-1.16.2-2.fc32.x86_64
>>>>>> *gst*reamer1-vaapi-devel-docs-1.16.2-1.fc32.noarch
>>>>>> *gst*reamer1-plugins-entrans-1.4.0-2.fc32.x86_64
>>>>>> *gst*reamer1-plugins-bad-freeworld-1.16.2-5.fc32.x86_64
>>>>>> *gst*reamer1-plugins-base-devel-docs-1.16.2-3.fc32.noarch
>>>>>> *gst*reamer1-plugins-good-1.16.2-2.fc32.x86_64
>>>>>> *gst*reamer1-plugins-base-devel-1.16.2-3.fc32.x86_64
>>>>>> *gst*reamer1-plugins-ugly-free-1.16.2-2.fc32.x86_64
>>>>>> *gst*reamer1-plugins-bad-free-wildmidi-1.16.2-3.fc32.x86_64
>>>>>> *gst*reamer1-plugins-entrans-docs-1.4.0-2.fc32.noarch
>>>>>> *gst*reamer1-libav-1.16.2-3.fc32.x86_64
>>>>>> *gst*reamer1-plugins-good-qt-1.16.2-2.fc32.x86_64
>>>>>> *gst*reamer1-devel-1.16.2-2.fc32.x86_64
>>>>>> *gst*reamer1-plugins-good-gtk-1.16.2-2.fc32.x86_64
>>>>>> *gst*reamer1-plugins-fc-0.2-22.fc32.x86_64
>>>>>> *gst*reamer1-plugins-bad-free-extras-1.16.2-3.fc32.x86_64
>>>>>> *gst*reamer1-plugins-ugly-1.16.2-3.fc32.x86_64
>>>>>> *gst*reamer1-plugins-bad-free-devel-1.16.2-3.fc32.x86_64
>>>>>> *gst*reamer1-vaapi-1.16.2-1.fc32.x86_64
>>>>>> *gst*reamer1-plugins-bad-free-fluidsynth-1.16.2-3.fc32.x86_64
>>>>>> *gst*reamer1-plugins-base-tools-1.16.2-3.fc32.x86_64
>>>>>> *gst*reamer1-plugins-good-extras-1.16.2-2.fc32.x86_64
>>>>>> *gst*reamer1-plugins-base-1.16.2-3.fc32.x86_64
>>>>>> *gst*reamer1-plugins-bad-free-1.16.2-3.fc32.x86_64
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> gstreamer-devel mailing list
>>>>> [hidden email]
>>>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>>>
>>>> _______________________________________________
>>>> gstreamer-devel mailing list
>>>> [hidden email]
>>>> <mailto:[hidden email]>
>>>> <mailto:[hidden email]>
>>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> [hidden email]
>>> <mailto:[hidden email]>
>>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> <mailto:[hidden email]>
>> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Nicolas Dufresne-5
In reply to this post by Patrick Cusack
Le mercredi 20 mai 2020 à 13:12 -0700, Patrick Cusack a écrit :
[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0
vainfo: Supported profile and entrypoints
[snip]
      VAProfileVP9Profile0            : VAEntrypointEncSlice

In 1.16, iHD driver is masked as it includes some breaking change in the way the API is implemented. This will be unmasked in 1.18 (upcoming released). Though as you can see, The VP9 encoder is gone in the iHD driver (the new driver). It is not clear why the default driver was flipped without checking if that would break existing userspace. So basically, if you want to see the VP9 encoder, for now you have to do:

rm ~/.cache/gstreamer-1.0/registry.*
export LIBVA_DRIVER_NAME=i965
gst-inspect-1.0 vaapi

In theory that should be sufficient.

Nicolas

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Patrick Cusack
According this, https://en.wikipedia.org/wiki/VP9, Coffee Lake encodes VP9.

I rebooted and ran what you recommended:

rm ~/.cache/gstreamer-1.0/registry.*
export LIBVA_DRIVER_NAME=i965
gst-inspect-1.0 vaapi

That appears to work. I got this result. I’ll need to test it further. I didn’t see this prior.

[root@localhost ~]# gst-inspect-1.0 vaapi
Plugin Details:
  Name                     vaapi
  Description              VA-API based elements
  Filename                 /usr/lib64/gstreamer-1.0/libgstvaapi.so
  Version                  1.16.2
  License                  LGPL
  Source module            gstreamer-vaapi
  Source release date      2019-12-03
  Binary package           gstreamer-vaapi

  vaapijpegdec: VA-API JPEG decoder
  vaapimpeg2dec: VA-API MPEG2 decoder
  vaapih264dec: VA-API H264 decoder
  vaapivc1dec: VA-API VC1 decoder
  vaapivp8dec: VA-API VP8 decoder
  vaapivp9dec: VA-API VP9 decoder
  vaapih265dec: VA-API H265 decoder
  vaapipostproc: VA-API video postprocessing
  vaapidecodebin: VA-API Decode Bin
  vaapisink: VA-API sink
  vaapimpeg2enc: VA-API MPEG-2 encoder
  vaapih265enc: VA-API H265 encoder
  vaapivp8enc: VA-API VP8 encoder
  vaapivp9enc: VA-API VP9 encoder
  vaapijpegenc: VA-API JPEG encoder
  vaapih264enc: VA-API H264 encoder

  16 features:
  +-- 16 elements


On May 20, 2020, at 2:24 PM, Nicolas Dufresne <[hidden email]> wrote:

Le mercredi 20 mai 2020 à 13:12 -0700, Patrick Cusack a écrit :
[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0
vainfo: Supported profile and entrypoints
[snip]
      VAProfileVP9Profile0            : VAEntrypointEncSlice

In 1.16, iHD driver is masked as it includes some breaking change in the way the API is implemented. This will be unmasked in 1.18 (upcoming released). Though as you can see, The VP9 encoder is gone in the iHD driver (the new driver). It is not clear why the default driver was flipped without checking if that would break existing userspace. So basically, if you want to see the VP9 encoder, for now you have to do:

rm ~/.cache/gstreamer-1.0/registry.*
export LIBVA_DRIVER_NAME=i965
gst-inspect-1.0 vaapi

In theory that should be sufficient.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Patrick Cusack
In reply to this post by Nicolas Dufresne-5
After making the changes, I was able to run the following command:

gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapivp9enc ! matroskamux ! filesink location=test.mkv

This worked successfully. The file played back fine on VLC.

Patrick

On May 20, 2020, at 2:24 PM, Nicolas Dufresne <[hidden email]> wrote:

Le mercredi 20 mai 2020 à 13:12 -0700, Patrick Cusack a écrit :
[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0
vainfo: Supported profile and entrypoints
[snip]
      VAProfileVP9Profile0            : VAEntrypointEncSlice

In 1.16, iHD driver is masked as it includes some breaking change in the way the API is implemented. This will be unmasked in 1.18 (upcoming released). Though as you can see, The VP9 encoder is gone in the iHD driver (the new driver). It is not clear why the default driver was flipped without checking if that would break existing userspace. So basically, if you want to see the VP9 encoder, for now you have to do:

rm ~/.cache/gstreamer-1.0/registry.*
export LIBVA_DRIVER_NAME=i965
gst-inspect-1.0 vaapi

In theory that should be sufficient.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Sreerenj Balachandran

Please check the link: https://github.com/intel/media-driver/issues/771


If you would like to have vp9 encoder for KBL & CFL (Intel gen9.5 graphics platforms) in iHD media driver, this could be the only option:https://github.com/intel/media-driver/pull/717

It is still in my dev branch, currently not planned to integrate it in iHD master. 



On Wed, May 20, 2020 at 4:41 PM Patrick Cusack <[hidden email]> wrote:
After making the changes, I was able to run the following command:

gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapivp9enc ! matroskamux ! filesink location=test.mkv

This worked successfully. The file played back fine on VLC.

Patrick

On May 20, 2020, at 2:24 PM, Nicolas Dufresne <[hidden email]> wrote:

Le mercredi 20 mai 2020 à 13:12 -0700, Patrick Cusack a écrit :
[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0
vainfo: Supported profile and entrypoints
[snip]
      VAProfileVP9Profile0            : VAEntrypointEncSlice

In 1.16, iHD driver is masked as it includes some breaking change in the way the API is implemented. This will be unmasked in 1.18 (upcoming released). Though as you can see, The VP9 encoder is gone in the iHD driver (the new driver). It is not clear why the default driver was flipped without checking if that would break existing userspace. So basically, if you want to see the VP9 encoder, for now you have to do:

rm ~/.cache/gstreamer-1.0/registry.*
export LIBVA_DRIVER_NAME=i965
gst-inspect-1.0 vaapi

In theory that should be sufficient.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


--
thanks,
sree

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: VA-API VP9 Encode For GStreamer??

Patrick Cusack
In reply to this post by Patrick Cusack
Thanks, I’ll look at that.


If you would like to have vp9 encoder for KBL & CFL (Intel gen9.5 graphics platforms) in iHD media driver, this could be the only option:https://github.com/intel/media-driver/pull/717
It is still in my dev branch, currently not planned to integrate it in iHD master. 


On Wed, May 20, 2020 at 4:41 PM Patrick Cusack <[hidden email]> wrote:
After making the changes, I was able to run the following command:

gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapivp9enc ! matroskamux ! filesink location=test.mkv

This worked successfully. The file played back fine on VLC.

Patrick

On May 20, 2020, at 2:24 PM, Nicolas Dufresne <[hidden email]> wrote:

Le mercredi 20 mai 2020 à 13:12 -0700, Patrick Cusack a écrit :
[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0
vainfo: Supported profile and entrypoints
[snip]
      VAProfileVP9Profile0            : VAEntrypointEncSlice

In 1.16, iHD driver is masked as it includes some breaking change in the way the API is implemented. This will be unmasked in 1.18 (upcoming released). Though as you can see, The VP9 encoder is gone in the iHD driver (the new driver). It is not clear why the default driver was flipped without checking if that would break existing userspace. So basically, if you want to see the VP9 encoder, for now you have to do:

rm ~/.cache/gstreamer-1.0/registry.*
export LIBVA_DRIVER_NAME=i965
gst-inspect-1.0 vaapi

In theory that should be sufficient.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


-- 
thanks,
sree

On May 20, 2020, at 4:41 PM, Patrick Cusack <[hidden email]> wrote:

After making the changes, I was able to run the following command:

gst-launch-1.0 -ev videotestsrc num-buffers=60 ! timeoverlay ! vaapivp9enc ! matroskamux ! filesink location=test.mkv

This worked successfully. The file played back fine on VLC.

Patrick

On May 20, 2020, at 2:24 PM, Nicolas Dufresne <[hidden email]> wrote:

Le mercredi 20 mai 2020 à 13:12 -0700, Patrick Cusack a écrit :
[root@localhost gstreamer-1.0]# LIBVA_DRIVER_NAME="i965" vainfo
error: can't connect to X server!
libva info: VA-API version 1.7.0
libva info: User environment variable requested driver 'i965'
libva info: Trying to open /usr/lib64/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_6
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.7 (libva 2.7.0.pre1)
vainfo: Driver version: Intel i965 driver for Intel(R) Coffee Lake - 2.4.0
vainfo: Supported profile and entrypoints
[snip]
      VAProfileVP9Profile0            : VAEntrypointEncSlice

In 1.16, iHD driver is masked as it includes some breaking change in the way the API is implemented. This will be unmasked in 1.18 (upcoming released). Though as you can see, The VP9 encoder is gone in the iHD driver (the new driver). It is not clear why the default driver was flipped without checking if that would break existing userspace. So basically, if you want to see the VP9 encoder, for now you have to do:

rm ~/.cache/gstreamer-1.0/registry.*
export LIBVA_DRIVER_NAME=i965
gst-inspect-1.0 vaapi

In theory that should be sufficient.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel