gstreamer/gst/playback
2009-03-24 18:29:28 +01:00
..
.gitignore gst/playback/.cvsignore: Ignore more. 2007-12-20 17:13:37 +00:00
decodetest.c Don't use bad gst_element_get_pad(). 2008-05-21 16:36:50 +00:00
gstdecodebin.c gst/playback/: Add basic docs to decodebin and link to decodebin from decodebin2. 2008-12-08 15:25:13 +00:00
gstdecodebin2.c decodebin2: a pad starts out being not drained. 2009-03-20 15:47:47 +01:00
gstfactorylists.c gst/playback/Makefile.am: Group decodebin2 and uridecodebin into the same plugin so that they can share the GEnumType. 2007-12-05 17:11:48 +00:00
gstfactorylists.h gst/playback/Makefile.am: Group decodebin2 and uridecodebin into the same plugin so that they can share the GEnumType. 2007-12-05 17:11:48 +00:00
gstplay-enum.c gst/playback/gstplay-enum.*: Add enums for configuration flags. 2008-01-07 11:40:04 +00:00
gstplay-enum.h gst/playback/gstplay-enum.*: Add enums for configuration flags. 2008-01-07 11:40:04 +00:00
gstplay-marshal.list gst/playback/: Add get-video-pad, get-audio-pad, get-text-pad action signals to playbin2. This allows the user to get... 2008-06-20 18:24:24 +00:00
gstplayback.c Make sure gettext returns translations in UTF-8 encoding rather than in the current locale encoding (#546822). 2008-08-07 15:58:58 +00:00
gstplaybasebin.c docs: fix random text after since: tag. Also fix class name to make the docs actual appear. 2009-02-26 10:10:00 +02:00
gstplaybasebin.h gst/playback/: First stab at integrating DVD subpicture overlay into playbin. Successfully plugs and plays, but the q... 2008-07-14 08:18:58 +00:00
gstplaybin.c gst/playback/: XRef to GstXOverlay. 2008-12-12 13:06:48 +00:00
gstplaybin2.c playbin2: first support for subpictures 2009-03-24 17:12:53 +01:00
gstplaysink.c playbin2: add more support for subpictures 2009-03-24 18:29:28 +01:00
gstplaysink.h playbin2: add more support for subpictures 2009-03-24 18:29:28 +01:00
gstqueue2.c win32: fix seeking in large files 2009-03-20 14:17:19 +01:00
gstscreenshot.c gst/playback/gstscreenshot.*: Fix up copyright (I rewrote the GStreamer-0.10 code for this from scratch back in the d... 2008-02-19 15:50:37 +00:00
gstscreenshot.h gst/playback/gstscreenshot.*: Fix up copyright (I rewrote the GStreamer-0.10 code for this from scratch back in the d... 2008-02-19 15:50:37 +00:00
gststreaminfo.c Use G_PARAM_STATIC_STRINGS everywhere for GParamSpecs that use static strings (i.e. all). This gives us less memory u... 2008-03-22 15:00:53 +00:00
gststreaminfo.h gst/playback/: Add playbin2. 2007-11-16 15:44:48 +00:00
gststreamselector.c gst/playback/: First stab at integrating DVD subpicture overlay into playbin. Successfully plugs and plays, but the q... 2008-07-14 08:18:58 +00:00
gststreamselector.h gst/playback/gststreamselector.*: Revert change that caused regression until a real fix is found. 2008-03-14 09:54:44 +00:00
gsturidecodebin.c uridecodebin: expose more media types 2009-03-24 12:19:30 +01:00
Makefile.am Don't install static libs for plugins. Fixes #550851 for base. 2008-10-16 15:07:00 +00:00
README gst/playback/: Fix the build + little README update. 2007-11-17 15:25:15 +00:00
test.c Don't use bad gst_element_get_pad(). 2008-05-21 16:36:50 +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 gst/playback/: Also include config.h when relying on defines from it. Fixes the build. Its been a please to serve :) 2008-05-02 11:13:05 +00:00
test5.c gst/playback/: Also include config.h when relying on defines from it. Fixes the build. Its been a please to serve :) 2008-05-02 11:13:05 +00:00
test6.c Don't use bad gst_element_get_pad(). 2008-05-21 16:36:50 +00:00
test7.c gst/playback/: Also include config.h when relying on defines from it. Fixes the build. Its been a please to serve :) 2008-05-02 11:13:05 +00:00

decodebin:

  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.