[gstreamer-bugs] [Bug 572973] buffer size request event

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Mar 10 05:22:52 PDT 2009


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=572973

  GStreamer | gstreamer (core) | Ver: git




------- Comment #5 from Stefan Kost (gstreamer, gtkdoc dev)  2009-03-10 12:24 UTC -------
Hmm several problems with the query:
* if the bitrate changes, the buffersize might change
* if one has the source running and start encoding dynamically, it is difficult
to get the change sync'ed so that the frames of requested size appear.

A buffer-size request could be send just before a seek-event.

structure = gst_structure_empty_new ("GstBufferSize");
gst_structure_id_set (structure,
    GST_QUARK (FORMAT), GST_TYPE_FORMAT, format,
    GST_QUARK (SIZE), G_TYPE_INT64, size, NULL);
event = gst_event_new_custom (GST_EVENT_SEEK, structure);

The formats can be converted as they are for seeks.

Problem of both approaches is that elements need to convert that type of query/
event. At least audioconvert, audioresample come to my mind.
Of course we could send a gst_query_new_convert(GST_FORMAT_DEFAULT, samples,
GST_FORMAT_BYTES) from the encoder if we would know what format the source
uses.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=572973.




More information about the Gstreamer-bugs mailing list