diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2015-01-29 00:56:26 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-06-12 20:32:25 +0100 |
commit | 5da10b4f57f5f1a9490873f4f13302c03ece3e09 (patch) | |
tree | 90d8c9acefc9fbab4bae7d41e4d2e177105bd417 /tests/examples/Makefile.am | |
parent | 220a1334792d8ff40f00df05e83918a77f5eef5a (diff) |
playout: New example for seamless audio/video playback
An example app that takes video URIs as command line arguments and switches
between them seamlessly one after the other using compositor and audiomixer.
Both audio-video and video-only media files are valid inputs, but mixing files
of both types in a single invocation is cumbersome to support, and hence does
not work. The example attempts to keep the audio stream moving along perfectly,
and duplicates video frames where necessary to cover gaps in the video
timestamps using the 'ignore-eos' videoaggregator pad property.
Ensuring seamless (and mostly-glitch-free) switching is harder than it sounds,
and hence the example contains plenty of pad probes and running time
calculations to make things work.
The GPtrArray play_queue contains items that are being played back, have been
prepared for playback, and will be played back in the future. The queue itself
is mutable besides the first two items (playing and prepared). The item that has
been prepared should not be edited or removed since it has been prepared in
advance to be activated immediately on the current item's EOS.
The example also has support for switching to the next item in the queue
prematurely; see the --switch-after/-s flag to the application.
Note: the output video is hard-coded at 1280x720, and input video is scaled as
needed to fit this size. Set OUTPUT_VIDEO_WIDTH/HEIGHT to change this.
https://bugzilla.gnome.org/show_bug.cgi?id=748947
Diffstat (limited to 'tests/examples/Makefile.am')
-rw-r--r-- | tests/examples/Makefile.am | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/examples/Makefile.am b/tests/examples/Makefile.am index 6b752b9bc..009ff73f4 100644 --- a/tests/examples/Makefile.am +++ b/tests/examples/Makefile.am @@ -40,6 +40,12 @@ else GTK3_DIR= endif +noinst_PROGRAMS = playout + +playout_SOURCES = playout.c +playout_CFLAGS = $(GST_PLUGINS_BASE_CFLAGS) $(GST_CFLAGS) +playout_LDADD = $(GST_PLUGINS_BASE_LIBS) -lgstvideo-$(GST_API_VERSION) $(GST_LIBS) + SUBDIRS= mpegts $(DIRECTFB_DIR) $(GTK_EXAMPLES) $(OPENCV_EXAMPLES) $(GL_DIR) \ $(GTK3_DIR) $(AVSAMPLE_DIR) DIST_SUBDIRS= mpegts camerabin2 directfb mxf opencv uvch264 gl gtk avsamplesink |