<div dir="ltr">I feel like I'm very close now. I've set up a random access appsrc, and connected it to a pngenc followed by a filesink. I've set the appsrc's "size" property to the size of the album cover's image buffer, and when the "need-data" signal is fired, I'm pushing the entire buffer. I've also set the appsrc's "caps" property to the caps of the original album cover (sample.get_caps() from the image tag). In addition to a "could not send sticky events" warning, I'm also getting a "streaming task paused, reason not-negotiated". Also, it doesn't seem to like my use of "disconnect" for the "need-data" signal. It contradicts the GObject docs saying it's expecting an integer rather than a string. I've never done anything with pushing buffers around manually, so I'm a little out of my depth here.<div>
<br></div><div style>Here my slightly messy source (also probably full of bad practices):</div><div style><a href="http://pastebin.com/49ExZN4h">http://pastebin.com/49ExZN4h</a><br></div><div style><br></div><div style>Thanks.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 19 December 2012 16:28, Nox Deleo <span dir="ltr"><<a href="mailto:noxdeleo@googlemail.com" target="_blank">noxdeleo@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No worries, and thanks for the help.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br>
<br><div class="gmail_quote">On 19 December 2012 16:03, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Wed, 2012-12-19 at 15:52 +0000, Nox Deleo wrote:<br>
> Sorry if I'm just being dense here, but the docs package I downloaded<br>
> says it's for GStreamer 1.0, and the headings on the following two<br>
> pages say the same:<br>
> <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html</a><br>
><br>
> <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-appsrc.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-appsrc.html</a><br>
><br>
<br>
> I'm also explicitly asking for GStreamer 1.0 when I load Gst<br>
> introspection modules in python, and that's also telling me<br>
> push_buffer:<br>
> >>> import gi<br>
> >>> gi.require_version('GstApp', '1.0')<br>
> >>> from gi.repository import GstApp<br>
> >>> print(dir(GstApp.AppSrc))<br>
> ...'props', 'provide_clock', 'push_buffer', 'query',<br>
> 'query_convert'...<br>
<br>
> Very confusing.<br>
<br>
</div>Sorry, you're entirely right. It's me who was confused.<br>
<br>
It is indeed push-buffer for appsrc.<br>
<br>
appsink was changed from buffer to sample, I just assumed the same was<br>
done for appsrc as well, but seems not (and it's not really needed since<br>
you can set the caps via the property upfront anyway).<br>
<br>
Apologies for the confusion :)<br>
<div><div><br>
Cheers<br>
-Tim<br>
<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>