gstreamer/gst/playback
Wim Taymans ae69903ca1 gst/playback/: On our way to playbin2 this is the new network queue that does buffering all by itself using high and ...
Original commit message from CVS:
* gst/playback/Makefile.am:
* gst/playback/gstqueue2.c: (gst_queue_get_type),
(gst_queue_class_init), (gst_queue_init), (gst_queue_finalize),
(gst_queue_getcaps), (gst_queue_bufferalloc),
(gst_queue_acceptcaps), (update_time_level), (apply_segment),
(apply_buffer), (update_buffering), (reset_rate_timer),
(update_rates), (gst_queue_locked_flush),
(gst_queue_locked_enqueue), (gst_queue_locked_dequeue),
(gst_queue_handle_sink_event), (gst_queue_is_empty),
(gst_queue_is_filled), (gst_queue_chain), (gst_queue_push_one),
(gst_queue_loop), (gst_queue_handle_src_event),
(gst_queue_handle_src_query), (gst_queue_sink_activate_push),
(gst_queue_src_activate_push), (gst_queue_change_state),
(gst_queue_set_property), (gst_queue_get_property), (plugin_init):
On our way to playbin2 this is the new network queue that does buffering
all by itself using high and low watermarks. It can also measure up and
downstream bandwidth to optimally size the queue.
2007-05-17 11:57:44 +00:00
..
.gitignore gst/playback/: Port these two tests as well. 2005-10-27 18:30:04 +00:00
decodetest.c gst/playback/: Port these two tests as well. 2005-10-27 18:30:04 +00:00
gstdecodebin.c gst/playback/: Better error message for text files. 2007-05-01 18:45:36 +00:00
gstdecodebin2.c gst/playback/: Better error message for text files. 2007-05-01 18:45:36 +00:00
gstplay-marshal.list gst/playback/: New decodebin2 element. 2006-11-28 14:40:39 +00:00
gstplaybasebin.c gst/playback/gstplaybasebin.c: Connect to the new queue "pushing" signal instead of the broken "running" one. 2007-05-10 15:28:13 +00:00
gstplaybasebin.h gst/playback/gstdecodebin.c: Implement delayed caps linking needed for element with a lot of different caps on the sr... 2006-09-28 15:29:17 +00:00
gstplaybin.c gst/playback/gstplaybin.c: Activate sync in playbin, we are ready to handle it for live streams. 2007-04-06 12:58:06 +00:00
gstqueue2.c gst/playback/: On our way to playbin2 this is the new network queue that does buffering all by itself using high and ... 2007-05-17 11:57:44 +00:00
gststreaminfo.c ext/gnomevfs/: Fix URI interface implementation return type. 2006-10-10 12:49:03 +00:00
gststreaminfo.h gst/playback/gststreaminfo.*: Introduce language informations. 2006-02-19 00:25:16 +00:00
gststreamselector.c gst/playback/gststreamselector.c: Don't unref a NULL pad. 2006-11-10 00:52:55 +00:00
gststreamselector.h Fix more gobject macros: obj<->klass, GstXXX<->GstXXXClass 2006-06-01 19:19:51 +00:00
Makefile.am gst/playback/: On our way to playbin2 this is the new network queue that does buffering all by itself using high and ... 2007-05-17 11:57:44 +00:00
README Raw and crude port of decodebin. 2005-04-12 10:48:58 +00:00
test.c gst/playback/test.c: Fix compilation with uClibc and -Werror (#357591). 2006-09-25 11:28:15 +00:00
test2.c All plugins updated for element state changes. 2005-09-02 15:43:18 +00:00
test3.c gst/playback/: Port these two tests as well. 2005-10-27 18:30:04 +00:00
test4.c exit needs stdlib.h 2006-04-29 01:18:05 +00:00
test5.c gst/playback/: free cpas using gst_caps_unref, don't leak caps-strings 2006-05-02 18:15:25 +00:00
test6.c gst/playback/: free cpas using gst_caps_unref, don't leak caps-strings 2006-05-02 18:15:25 +00:00

decoderbin:

  A bin with a sinkpad that decodes the data into raw formats. It works by sending
  the input data through a typefind element and then recursively autoplugs elements 
  from the registry until a raw format is obtained. It will then create a new ghostpad
  on itself to signal the app of the new pad. 

  Decodebin will also remove pads when they are removed from the stream.

  TODO
   - reuse of decoderbin, cleanup in READY state
   - threading after demuxing?
   - new_media events should be handled.
   - caching of elements.
   - abstract more elements, pads (typefind, ...);

   The autoplugging happens as follows:

   1) typefind is added internally to the bin.
   2) the have_type signal is connected to typefind.
   3) in the have_type callback the close_pad_link function is called
   4) close_pad_link checks the type on the pad, if it is raw, a ghostpad
      is created and autoplugging for that pad stops.
   5) if the type of the pad is not raw, a list of possible elements that
      can connect to this type is generated in find_compatibles.
   6) try_to_link_1 with the element list is called. The function will loop
      over the element list and will try to connect one of the elements to
      the pad. If the link works, a call is made to close_link.
   7) close_link loops over all the source pads of the element and 
      recursively calls 4) for any ALWAYS pad. For elements with
      a SOMETIMES pad, a structure is set up and is passed to the callback
      of the new_pad signal.
   8) in the new_pad callback, 4) is called to try to autoplug the
      new pad.


playbasebin:

  A bin with an uri property. It will find the right source element from the registry
  and connect a decoderbin to it. When going to the PAUSED state, it will iterate the
  decoderbin and listen for new pad signals from it. It will connect a queue to each
  new pad and will iterate the decoderbin until one of the queues is filled. It is
  assumed that by that time all the streams will be found so that when leaving the
  PAUSED state, one can query the number of streams in the media file with the given
  uri.

  Playbasebin internally groups related streams together in a GstPlayBaseGroup. This
  is particulary important for chained oggs. Initially, a new group is created in 
  the 'building' state. All new streams will be added to the building group until
  no-more-pads is signaled or one of the preroll queues overflows. When this happens,
  the group is commited to a list of groups ready for playback. PlaybaseBin will then
  attach a padprobe to each stream to figure out when it finished. It will remove
  the current group and install the next playable group, then.

  Before going to the PLAYING state, it is possible to connect a custom element to
  each of the streams. To do that, you have to add the element to the bin and then
  connect the pad(s) from the stream(s). You do not have to add the elements in
  a thread, the bin will take care of then when it's needed. You are allowed to use
  threads inside the elements, of course.
  The bin tries to be smart and doesn't add a queue when there is only one possible 
  stream.

  
  TODO
  - reuse, cleanup in ready state
  - when the first pad is closed, it's possible that another dynamic element is
    added somewhere so that we need a queue for the first pad as well.

playbin:
  
   Extends playbasebin, sets up default audiosink and videosink for first audio/video
   stream detected. implements seeking and querying on the configured sinks.

   It also waits for new notifications from playbasebin about any new groups that are
   becomming active. It then disconnects the sinks and reconnects them to the new
   pads in the group.

   TODO
   - reuse, refcounting, cleanup in READY state
   - be smarter about replugging the sinks instead of removing them and readding them.
   - Do not crap out when the audio device is in use.

general

   TODO
   - playlist support. maybe use a playlist bin that streams the contents of the
     playlist on a pad, interleaved with new_media events. Also add a tuner 
     interface while we're at it.
   - plug the many memleaks.