<div dir="ltr"><div>Hello,</div><div>I'm writing a source element for a device with a
proprietary API. Now, this API generates audio and video data that I
need to push out the source pad.</div><div>I have written an element using GstBin, something of a wrapper for youtube-dl. This is it on GitHub, <a href="https://github.com/mndar/gstyoutubebin/" target="_blank">https://github.com/mndar/gstyoutubebin/</a></div><div><br></div><div>Taking this approach will mean, I'll have to write a separate program for the proprietary API. Is this the only way?</div><div><br></div><div>I've looked at GstPushSrc. I really want to use it. What do you think?</div><div><br></div><div>If data to pushed out the src pad is generated in proprietary callback, what would be the best way to push it out the src pad?</div><div><br></div><div>The
idea I have is to store it in memory and read that memory in _fill. Of course, I'll make sure that concurrent access does not happen.</div><div><br></div><div>Any inputs will help.</div><div><br></div><div>Thank You</div><font color="#888888"><div dir="ltr"><div dir="ltr"><div>Mandar Joshi</div><div>Czar Softech</div><div><i><a href="https://www.czarsoftech.com" target="_blank">https://www.czarsoftech.com</a></i></div></div></div></font></div>