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 [336m33437[00m 0x7fff6c008450 [36mINFO [00m [00;01;34m GST_EVENT gstevent.c:814:gst_event_new_caps:[00m 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 [336m33437[00m 0x7fff6c008540 [36mINFO [00m [00;01;34m GST_EVENT gstevent.c:814:gst_event_new_caps:[00m 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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel