no frame appearing at appsink

Gary Metalle Gary.Metalle at rvl.co.uk
Mon Jul 20 09:40:33 UTC 2020


I have a relatively simple pipeline:


appsrc -> queue -> rawvideoparse -> x264enc -> appsink


I've connected this up in my C application and it and it creates elements and links pads fine, but I don't see any frames appearing on the sink pad of the appsink (my 'new_sample' callback is never called).


I can confirm I'm pushing data into the appsrc as I see quite a few 'need more data' messages followed eventually by a 'have enough data' message. The number of bytes seem to be sensible for the size of the frame 152064 (352 x 288 x 1.5).


I've noticed the caps on the x264enc sink pad are not quite what I'd expect and wonder if that's the problem? My raw input is set with the following caps:

0:00:18.777055485 33437 0x7fff6c008450 INFO               GST_EVENT gstevent.c:814:gst_event_new_caps: creating caps event video/x-unaligned-raw, format=(string)I420, framerate=(fraction)15/1, width=(int)352, height=(int)288

but at some point later I see the following message describing the caps for the encoder input:

0:00:18.809626272 33437 0x7fff6c008540 INFO               GST_EVENT gstevent.c:814:gst_event_new_caps: creating caps event video/x-raw, format=(string)I420, width=(int)320, height=(int)240, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)0/1

?The width, height and framerate and not the values I am expecting as they should be 352, 288 and 15/1.

Gary.






I

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200720/862baefb/attachment-0001.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gst1.txt
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200720/862baefb/attachment-0001.txt>


More information about the gstreamer-devel mailing list