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.

MFX H/W codec issue on Intel N3350

LiChuan__Kao
Beginner
779 Views
SoC: N3350 OS: Ubuntu 18.04 We can add gstreamer-MediaSDK plugin into gstreamer-1.0, and see 16 elements using command "gst-inspect-1.0 | grep mfx". 16 elements listed below: ubuntu@LR29b5-DevHost-ApolloLake:~$ gst-inspect-1.0 | grep mfx mfx: mfxh264dec: MFX H264 decoder mfx: mfxhevcdec: MFX HEVC decoder mfx: mfxmpeg2dec: MFX MPEG2 decoder mfx: mfxwmvdec: MFX WMV decoder mfx: mfxvc1dec: MFX VC1 decoder mfx: mfxvp8dec: MFX VP8 decoder mfx: mfxvp9dec: MFX VP9 decoder mfx: mfxjpegdec: MFX JPEG decoder mfx: mfxdecode: MFX Video Decoder mfx: mfxvpp: MFX video postprocessing mfx: mfxsinkelement: MFX sink mfx: mfxsink: MFX Sink Bin mfx: mfxh264enc: MFX H.264 encoder mfx: mfxhevcenc: MFX H.265 encoder mfx: mfxmpeg2enc: MFX MPEG-2 encoder mfx: mfxjpegenc: MFX JPEG encoder Although we're able to build the gstreamer-msdk, but find error in using mfx elements. For example, with command "gst-launch-1.0 filesrc location=/home/ubuntu/video_files/What-is-XenDesktop_H264_AAC.mp4 ! qtdemux ! h264parse ! mfxh264dec ! fpsdisplaysink video-sink=mfxsink" comes error below: ubuntu@LR29b5-DevHost-ApolloLake:~$ gst-launch-1.0 filesrc location=/home/ubuntu/video_files/What-is-XenDesktop_H264_AAC.mp4 ! qtdemux ! h264parse ! mfxh264dec ! fpsdisplaysink video-sink=mfxsink libva info: VA-API version 1.1.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_1 libva info: va_openDriver() returns 0 Setting pipeline to PAUSED ... Pipeline is PREROLLING ... Got context from element 'mfxsink0': gst.mfx.Aggregator=context, gst.mfx.Aggregator=(GstMfxTaskAggregator)"\(GstMfxTaskAggregator\)\ mfxtaskaggregator0"; libva info: VA-API version 1.1.0 libva info: va_getDriverName() returns 0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so libva info: Found init function __vaDriverInit_1_1 libva info: va_openDriver() returns 0 ** (gst-launch-1.0:1868): CRITICAL **: 17:23:55.354: gst_mfx_surface_new_from_pool: assertion 'pool != NULL' failed ERROR: from element /GstPipeline:pipeline0/GstQTDemux:qtdemux0: Internal data stream error. Additional debug info: qtdemux.c(6073): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:qtdemux0: streaming stopped, reason error (-5) ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... Freeing pipeline ... Does anyone find the same problem? How to fix it? Thanks in advance for the feedback.
0 Kudos
1 Reply
Mark_L_Intel1
Moderator
779 Views

Hi Lichuan,

Apologized for late response. Did you solve the problem yet?

Could you check the following website and let me know if it helps?

https://01.org/linuxmedia/quickstart/gstreamer-vaapi-msdk-command-line-examples

Mark

0 Kudos
Reply