<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="quote dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">RiccardoCagnasso wrote</div>
<div class="quote-message">
You can decode videos up to 8K with intel video cards and vaapi using the new intel-media-driver</br>

<a href="https://github.com/intel/media-driver" target="_top" rel="nofollow" link="external">https://github.com/intel/media-driver</a>
</div>
</div></blockquote>


After installing the iHD driver following the steps you provided, I've set the following environment variables:
<ul>
  <li>LD_LIBRARY_PATH=path_to_installed_driver_lib</li>
  <li>LIBVA_DRIVERS_PATH=path_to_installed_driver_lib/dri</li>
  <li>LIBVA_DRIVER_NAME=iHD</li>
  <li>GST_VAAPI_ALL_DRIVERS=1</li>
</ul>
<tt>vainfo</tt> correctly opens the iHD driver and shows all the supported profiles and entrypoints. <tt>gst-instpect vaapi</tt> shows all the vaapi encoder/decoder but also prints the following lines:</br></br>

<code>DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument</br>
Assuming 131072kB available aperture size.</br>
May lead to reduced performance or incorrect rendering.</br>
get chip id failed: -1 [22]</br>
param: 4, val: 0</code></br></br>

and repeatedly the following error lines while decoding a sample 4k video:</br></br>

<code>
** (gst-launch-1.0:5765): CRITICAL **: 15:09:29.695: gst_vaapi_mini_object_unref: assertion 'object != NULL' failed</br>

** (gst-launch-1.0:5765): CRITICAL **: 15:09:29.727: gst_vaapi_surface_associate_subpicture: assertion 'subpicture != NULL' failed</code></br></br>

anyway 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:</br></br>

<tt>gst-launch-1.0 filesrc location="sample.h265" ! video/x-h265 ! h265parse ! avdec_h265 ! autovideosink sync=true</tt></br></br>

but switching to the vaapi version with new intel-media-driver iHD:</br></br>

<tt>gst-launch-1.0 filesrc location="sample.h265" ! video/x-h265 ! h265parse ! vaapih265dec ! autovideosink sync=true</tt></br></br>

I get the following error:</br></br>

<code>
DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument</br>
Assuming 131072kB available aperture size.</br>
May lead to reduced performance or incorrect rendering.</br>
get chip id failed: -1 [22]</br>
param: 4, val: 0</br>
Setting pipeline to PAUSED ...</br>
Pipeline is PREROLLING ...</br>
Got context from element 'autovideosink0-actual-sink-vaapi': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx1";</br>
ERROR: from element /GstPipeline:pipeline0/GstVaapiDecode_h265:vaapidecode_h265-0: No valid frames decoded before end of stream</br>
Additional debug info:</br>
../../../../gst-libs/gst/video/gstvideodecoder.c(1139): gst_video_decoder_sink_event_default (): /GstPipeline:pipeline0/GstVaapiDecode_h265:vaapidecode_h265-0:</br>
no valid frames found</br>
ERROR: pipeline doesn't want to preroll.</br>
Setting pipeline to NULL ...</br>
Freeing pipeline ...
</code></br></br>

When with the older i965 driver I got the following: </br></br>

<code>Pipeline is PREROLLING ...</br>
Got context from element 'autovideosink0-actual-sink-vaapi': gst.vaapi.Display=context, gst.vaapi.Display=(GstVaapiDisplay)"\(GstVaapiDisplayGLX\)\ vaapidisplayglx1";</br>
ERROR: from element /GstPipeline:pipeline0/GstVaapiDecode_h265:vaapidecode_h265-0: Decoding error</br>
Additional debug info:</br>
../../../gst/vaapi/gstvaapidecode.c(764): gst_vaapidecode_handle_frame (): /GstPipeline:pipeline0/GstVaapiDecode_h265:vaapidecode_h265-0:
Decode error -1</br>
ERROR: pipeline doesn't want to preroll.</br>
Setting pipeline to NULL ...</br>
Freeing pipeline ...</br>
</code></br></br>

Any advice on how to setup gstreamer to decode h265 videos of that size (5472x3648) in hardware?</br>
My specs: Ubuntu 18.01 | GStreamer 1.14 from repo | Intel i7-8700 | Nvidia RTX 2080



        
        
        
<br/><hr align="left" width="300" />
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>