GStreamer V4L2h264dec to watch mp4 videos

Hi there,

I’ve been having some trouble using the v4l2h264dec element to decode H264 videos using the Qualcomm Venus decoder on the dragonboard 410c.

I can successfully play the video using the hardware decoder using ffmpeg ffplay, and it correctly uses the Venus Decoder.

However, using the pipeline : gst-launch-1.0 filesrc location="/home/linaro/1280.mp4" ! qtdemux ! parsebin ! v4l2h264dec ! glimagesink

I get the following error:
ERROR: from element /GstPipeline:pipeline0/v4l2h264dec:v4l2h264dec0: Failed to allocate required memory.
Additional debug info:…/…/…/gst-plugins-good-1.16.0/sys/v4l2/gstv4l2videodec.c(759): gst_v4l2_video_dec_handle_frame (): /GstPipeline:pipeline0/v4l2h264dec:v4l2h264dec0:
Buffer pool activation failed

I am using GStreamer 1.16 and using wayland.

which release are you running (debian/RPB)?

I’m running 4.14.96 Kernel from the linaro release 19.01.
However, i’m using Yocto Thud with gstreamer 1.16 and Wayland

Sorry, fixed the issue - I had modified the minimum number of v4l2 buffers in gstreamer, and had to match that in the gstv4l2videodec plugin. Sorry and thanks for your help!