nvdec and vaapi with cerbero

Andressio www.andreabertolaso at gmail.com
Mon May 27 13:43:51 UTC 2019


RiccardoCagnasso wrote
> You can decode videos up to 8K with intel video cards and vaapi using the
> new intel-media-driver
> https://github.com/intel/media-driver
> <https://github.com/intel/media-driver>  
After installing the iHD driver following the steps you provided, I've set
the following environment variables:
  
LD_LIBRARY_PATH=path_to_installed_driver_lib  
LIBVA_DRIVERS_PATH=path_to_installed_driver_lib/dri  
LIBVA_DRIVER_NAME=iHD  
GST_VAAPI_ALL_DRIVERS=1
vainfo correctly opens the iHD driver and shows all the supported profiles
and entrypoints. gst-instpect vaapi shows all the vaapi encoder/decoder but
also prints the following lines:DRM_IOCTL_I915_GEM_APERTURE failed: Invalid
argumentAssuming 131072kB available aperture size.May lead to reduced
performance or incorrect rendering.get chip id failed: -1 [22]param: 4, val:
0and repeatedly the following error lines while decoding a sample 4k
video:** (gst-launch-1.0:5765): CRITICAL **: 15:09:29.695:
gst_vaapi_mini_object_unref: assertion 'object != NULL' failed**
(gst-launch-1.0:5765): CRITICAL **: 15:09:29.727:
gst_vaapi_surface_associate_subpicture: assertion 'subpicture != NULL'
failedanyway the video is displayed. All the above messages where not
printed when I used the older stock driver i965. I am trying the iHD because
I need to decode a video with resolution 5472x3648. I have a sample video
recorded directly from a h265 camera with that resolution and I am able to
decode and see frames using a software decoder like this:gst-launch-1.0
filesrc location="sample.h265" ! video/x-h265 ! h265parse ! avdec_h265 !
autovideosink sync=truebut switching to the vaapi version with new
intel-media-driver iHD:gst-launch-1.0 filesrc location="sample.h265" !
video/x-h265 ! h265parse ! vaapih265dec ! autovideosink sync=trueI get the
following error:DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argumentAssuming
131072kB available aperture size.May lead to reduced performance or
incorrect rendering.get chip id failed: -1 [22]param: 4, val: 0Setting
pipeline to PAUSED ...Pipeline is PREROLLING ...Got context from element
'autovideosink0-actual-sink-vaapi': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\
vaapidisplayglx1";ERROR: from element
/GstPipeline:pipeline0/GstVaapiDecode_h265:vaapidecode_h265-0: No valid
frames decoded before end of streamAdditional debug
info:../../../../gst-libs/gst/video/gstvideodecoder.c(1139):
gst_video_decoder_sink_event_default ():
/GstPipeline:pipeline0/GstVaapiDecode_h265:vaapidecode_h265-0:no valid
frames foundERROR: pipeline doesn't want to preroll.Setting pipeline to NULL
...Freeing pipeline ...When with the older i965 driver I got the following:
Pipeline is PREROLLING ...Got context from element
'autovideosink0-actual-sink-vaapi': gst.vaapi.Display=context,
gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\
vaapidisplayglx1";ERROR: from element
/GstPipeline:pipeline0/GstVaapiDecode_h265:vaapidecode_h265-0: Decoding
errorAdditional debug info:../../../gst/vaapi/gstvaapidecode.c(764):
gst_vaapidecode_handle_frame ():
/GstPipeline:pipeline0/GstVaapiDecode_h265:vaapidecode_h265-0:Decode error
-1ERROR: pipeline doesn't want to preroll.Setting pipeline to NULL
...Freeing pipeline ...Any advice on how to setup gstreamer to decode h265
videos of that size (5472x3648) in hardware?My specs: Ubuntu 18.01 |
GStreamer 1.14 from repo | Intel i7-8700 | Nvidia RTX 2080



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190527/0addeabc/attachment.html>


More information about the gstreamer-devel mailing list