Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.
3058 Discussions

gstreamer skylake error: failed to get surface available

vandanachadha
Novice
850 Views

We have skylake and were able to reun the intel media sdk tests after installing that.

We then installed gstreamer using gst-build with enabled msdk.  However, this pipeline is not working ok:

gst-launch-1.0 --gst-debug=3 filesrc location=~/sample_videos/big_buck_bunny_720p_2mb.mp4 ! decodebin name=demux demux. ! queue ! audioresample ! audioconvert ! avenc_aac bitrate=192000 ! mux. mpegtsmux bitrate=5000000 alignment=7 name=mux ! filesink location=msdk_out_file_210308.ts demux. ! queue ! msdkh264enc hardware=true ! video/x-h264,stream-format=byte-stream,profile=high ! h264parse ! mux.

 

log:

libva info: VA-API version 1.11.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_11
libva info: va_openDriver() returns 0
Setting pipeline to PAUSED ...
libva info: VA-API version 1.11.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_11
libva info: va_openDriver() returns 0
0:00:00.227896923 27446 0x5643e8c48010 WARN basesrc gstbasesrc.c:3688:gst_base_src_start_complete:<filesrc0> pad not activated yet
Pipeline is PREROLLING ...
Got context from element 'msdkh264enc0': gst.msdk.Context=context, gst.msdk.Context=(GstMsdkContext)"\(GstMsdkContext\)\ msdkcontext1";
0:00:00.354057866 27446 0x7fa4a00a2d40 WARN qtdemux qtdemux.c:3101:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 1
0:00:00.354451483 27446 0x7fa4a00a2d40 WARN qtdemux qtdemux.c:3101:qtdemux_parse_trex:<qtdemux0> failed to find fragment defaults for stream 2
Redistribute latency...
0:00:00.568981810 27446 0x5643e8bfdd90 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool0> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.569071750 27446 0x5643e8bfdd90 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool1> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
Redistribute latency...
0:00:00.569147623 27446 0x5643e8bfdd90 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool2> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.569225629 27446 0x7fa480008a30 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool2> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.569272319 27446 0x7fa480008a30 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool2> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
Redistribute latency...
0:00:00.569418132 27446 0x5643e8bfdd90 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool3> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.569479894 27446 0x7fa480008a30 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool3> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.569514182 27446 0x7fa480008a30 WARN videopool gstvideopool.c:194:video_buffer_pool_set_config:<msdkbufferpool3> allocation params alignment 31 is smaller than the max specified video stride alignment 127, fixing
0:00:00.636525141 27446 0x7fa480008a30 ERROR default gstmsdkvideomemory.c:77:gst_msdk_video_allocator_get_surface: failed to get surface available
0:00:00.636567653 27446 0x7fa480008a30 ERROR msdkbufferpool gstmsdkbufferpool.c:270:gst_msdk_buffer_pool_alloc_buffer:<msdkbufferpool3> failed to create new MSDK memory
0:00:00.636580229 27446 0x7fa480008a30 WARN bufferpool gstbufferpool.c:302:do_alloc_buffer:<msdkbufferpool3> alloc function failed
0:00:00.636597721 27446 0x7fa480008a30 WARN libav gstavviddec.c:955:gst_ffmpegviddec_get_buffer2:<avdec_h264-0> error: Unable to allocate memory
0:00:00.636608281 27446 0x7fa480008a30 WARN libav gstavviddec.c:955:gst_ffmpegviddec_get_buffer2:<avdec_h264-0> error: The downstream pool failed to allocated buffer.
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:demux/avdec_h264:avdec_h264-0: Unable to allocate memory
Additional debug info:
../subprojects/gst-libav/ext/libav/gstavviddec.c(955): gst_ffmpegviddec_get_buffer2 (): /GstPipeline:pipeline0/GstDecodeBin:demux/avdec_h264:avdec_h264-0:
The downstream pool failed to allocated buffer.
ERROR: pipeline doesn't want to preroll.
0:00:00.636830303 27446 0x7fa480008a30 ERROR libav :0:: get_buffer() failed
Setting pipeline to NULL ...
0:00:00.636870620 27446 0x7fa480351d60 ERROR libav :0:: thread_get_buffer() failed
0:00:00.636919754 27446 0x7fa480351d60 ERROR libav :0:: decode_slice_header error
0:00:00.636935851 27446 0x7fa480351d60 ERROR libav :0:: no frame!
Freeing pipeline ...

 

 

Labels (1)
0 Kudos
0 Replies
Reply