<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I have a relatively simple pipeline:<br>
</p>
<p><br>
</p>
<p>appsrc -> queue -> rawvideoparse -> x264enc -> appsink<br>
</p>
<p><br>
</p>
<p>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).<br>
</p>
<p><br>
</p>
<p>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).<br>
</p>
<p><br>
</p>
<p>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:<br>
</p>
<p></p>
<div>
<div>
<div><br>
</div>
<div>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<br>
</div>
<div><br>
</div>
<div>but at some point later I see the following message describing the caps for the encoder input:<br>
</div>
<div><br>
</div>
<div>
<div>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</div>
<div><br>
​The width, height and framerate and not the values I am expecting as they should be 352, 288 and 15/1.<br>
</div>
<div><br>
</div>
<div>Gary.<br>
</div>
<br>
</div>
<div><br>
<br>
</div>
</div>
<div><br>
<br>
</div>
<br>
I<br>
</div>
<p><br>
</p>
</body>
</html>