AVPacket to GStreamer pipeline

fre deric frenky.picasso at seznam.cz
Fri Jan 22 14:03:08 UTC 2021


Finally I found the problem.
if the gst buffer is created from AVPacket, it is necessary to specify the
"codec_data" for the video caps.

So for the mp4 file with h264 I have:
const gchar *video_caps = "video/x-h264, width=(int)1920, height=(int)1080,
framerate=(fraction)30/1, alignment=(string)au,
codec_data=(buffer)014d0028ffe1001a274d002895a01e0089f970110000030001000003003c8da1c32a01000428ee3c80,
stream-format=(string)avc"; 





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list