Hi all,<br><br>I was wondering whether the following can work:<br><br>- use a fakesrc connected to a capsfilter<br>- Set the GstCaps on the caps filter to something like this: video/x-xvid, width=(int)256, height=(int)144, framerate=(fraction)23/1, format=(fourcc)XVID<br>
- Set the maxsize property to something large enough and use the handoff signal to fill in the buffer. Also set the following props:<br> "signal-handoffs", TRUE,<br> "is-live", TRUE,<br> "filltype", 1 /* don't fill */, <br>
"sizemax", size,<br> "sizetype", 2 /* Makes all samples the same size */,<br><br>The encoded raw data is provided by the app, which supports a pull model.<br><br>I have tried out this combination by connecting the capsfilter to a decodebin. The first problem I ran into was the GstFindType element within the decode bin, which seemed to query the duration of the stream, which returned 0. This caused an error.<br>
<br>I then connected a query function (using gst_pad_set_query_function) to the source pad on the caps filter (I also provided a gst_pad_set_query_type_function) to return a fake value for duration (I am getting my app data from a live source).<br>
<br>I no longer got the previous error but the pipeline still wouldn't run, my handoff callback function never gets called.<br><br>The question is: Does anyone else know what other properties or caps I would have to set to make this work?<br>
<br>I saw some other post asking about the GstAppSrc element. Is this element already part of the latest release and how would I use it?<br><br>Any help greatly appreciated,<br><br>Andreas<br>