vaapipostproc question

Víctor M. Jáquez L. vjaquez at igalia.com
Thu Oct 6 21:36:10 UTC 2016


Hi Jorge,

On 10/06/16 at 10:28am, Jorge Fernandez Monteagudo wrote:
> Hi all,
> 
> I'm playing with the new gstreamer-vaapi-1.8.3 components and I would like to know how to use
> vaapipostproc.
> 
> I have the next pipeline working ok in a C application
> 
> $ gst-launch-1.0 filesrc location=video.avi ! avidemux ! vaapidecode ! videoconvert !  video/x-raw,format=RGBA ! appsink
> 
> and I would like to replace the videoconvert element with vaapipostproc but I'm running the next pipeline without luck.
> 
> $ gst-launch-1.0 videotestsrc ! video/x-raw,format=I420,width=800,height=600 ! vaapipostproc ! fakesink
> 0:00:00.035228105 22186       0x8ed500 INFO                   vaapi gstvaapidisplay.c:119:libgstvaapi_init_once: gstreamer-vaapi version
> error: XDG_RUNTIME_DIR not set in the environment.
> 0:00:00.095699723 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:800:gst_vaapi_display_calculate_pixel_aspect_ratio: calculated pixel aspect ratio: 0,998619
> libva info: VA-API version 0.36.0
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so

This VA driver doesn't support vaapipostproc.

If you run vainfo, you will see that no VAProfileNone : VAEntrypointVideoProc
is shown.

In gstreamer-vaapi 1.10 the plugins features are registered in runtime,
showing only those that are supported by the default driver, but in
gstreamer-vaapi 1.8, all the features are registered even if they are not
supported.

> libva info: Found init function __vaDriverInit_0_35
> libva info: va_openDriver() returns 0
> 0:00:00.117732294 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:940:gst_vaapi_display_create_unlocked: VA-API version 0.36
> 0:00:00.117810482 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:713:ensure_image_formats: 4 image formats
> 0:00:00.117828154 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:715:ensure_image_formats:   NV12
> 0:00:00.117842976 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:715:ensure_image_formats:   YV12
> 0:00:00.117857909 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:715:ensure_image_formats:   I420
> 0:00:00.117870174 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:715:ensure_image_formats:   BGRA
> 0:00:00.117893511 22186       0x8ed500 DEBUG                  vaapi gstvaapisurface.c:334:gst_vaapi_surface_new: size 64x64, chroma type 0x1
> 0:00:00.118379724 22186       0x8ed500 DEBUG                  vaapi gstvaapisurface.c:121:gst_vaapi_surface_create: surface 0x3000000
> 0:00:00.118407190 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:248:gst_vaapi_image_new: format NV12, size 64x64
> 0:00:00.118430656 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:201:gst_vaapi_image_create: image 0x6000000
> 0:00:00.118454979 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:115:gst_vaapi_image_destroy: image 0x6000000
> 0:00:00.118470839 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:248:gst_vaapi_image_new: format YV12, size 64x64
> 0:00:00.118485942 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:201:gst_vaapi_image_create: image 0x6000000
> 0:00:00.118507102 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:115:gst_vaapi_image_destroy: image 0x6000000
> 0:00:00.118522575 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:248:gst_vaapi_image_new: format I420, size 64x64
> 0:00:00.118538624 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:201:gst_vaapi_image_create: image 0x6000000
> 0:00:00.118561425 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:115:gst_vaapi_image_destroy: image 0x6000000
> 0:00:00.118577959 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:248:gst_vaapi_image_new: format BGRA, size 64x64
> 0:00:00.118595499 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:201:gst_vaapi_image_create: image 0x6000000
> 0:00:00.118610609 22186       0x8ed500 DEBUG                  vaapi gstvaapiutils.c:53:vaapi_check_status: vaPutImage(): operation failed
> 0:00:00.118627324 22186       0x8ed500 DEBUG                  vaapi gstvaapiimage.c:115:gst_vaapi_image_destroy: image 0x6000000
> 0:00:00.118661595 22186       0x8ed500 DEBUG                  vaapi gstvaapisurface.c:78:gst_vaapi_surface_destroy: surface 0x3000000
> Setting pipeline to PAUSED ...
> 0:00:00.120481950 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:537:ensure_profiles: 9 profiles
> 0:00:00.120497395 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:544:ensure_profiles:   VAProfileMPEG2Simple
> 0:00:00.120506394 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:544:ensure_profiles:   VAProfileMPEG2Main
> 0:00:00.120514617 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:544:ensure_profiles:   VAProfileMPEG4Simple
> 0:00:00.120522306 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:544:ensure_profiles:   VAProfileMPEG4AdvancedSimple
> 0:00:00.120530360 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:544:ensure_profiles:   VAProfileH264Main
> 0:00:00.120538239 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:544:ensure_profiles:   VAProfileH264High
> 0:00:00.120545924 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:544:ensure_profiles:   VAProfileVC1Simple
> 0:00:00.120553741 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:544:ensure_profiles:   VAProfileVC1Main
> 0:00:00.120561455 22186       0x8ed500 DEBUG                  vaapi gstvaapidisplay.c:544:ensure_profiles:   VAProfileVC1Advanced
> 0:00:00.120572784 22186       0x8ed500 DEBUG                  vaapi
> gstvaapiutils.c:53:vaapi_check_status: vaQueryEntrypoints() [VAProfileNone]:
> the requested VAProfile is not supported

Here is why the pipeline is not working.

vmjl


More information about the gstreamer-devel mailing list