gst-sh-mobile-sink

gst-sh-mobile-sink - HW accelerated video sink.

Description

Video sink for the Renesas SuperH chipset.

Example launch lines

Displaying a test stream

 gst-launch \
  videotestsrc \
  ! gst-sh-mobile-sink

This is the simplest pipeline which can be used to test the gst-sh-mobile-sink element. Videotestsrc provides video streams in various formats for testing.

Displaying an Ogg video

 gst-launch \
  filesrc location=/mnt/usb/theora-test.ogg \
  ! oggdemux \
  ! theoradec \
  ! ffmpegcolorspace \
  ! gst-sh-mobile-sink "width=400 height=240 x=100 y=100"

OGG video stream read from a file using filesrc element and then demuxed with oggdemux. The Theora video elementary stream is then decoded using theoradec element. Output is scaled to 400x240 resolution and top-left corner is placed at 100:100 coordinates using the properties of gst-sh-mobile-sink.

Displaying an AVI video + audio playback

 gst-launch \
  filesrc location=test.avi ! avidemux name=demux \
  demux.audio_00 ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink \
  demux.video_00 ! queue ! gst-sh-mobile-dec ! gst-sh-mobile-sink

Filesrc element is used to read the file, which this time is an avi wrapped video containing both audio and video streams. avidemux element is used to strip the avi container. avidemux has two src-pads, which are named “demux” using a property. Both of the avidemux src pads are first connected to queue elements, which take care of the buffering of the data in the pipeline.

The audio stream is then connected to the the decodebin element, which detects the stream format and does the decoding. audioconvert and audioresample elements are used to transform the data into a suitable format for playback. The last element in the audio pipeline is autoaudiosink, which automatically detects and connects the correct audio sink for playback. This audio pipeline composition is very common in GStreamer programming.

The video pipeline is constructed from SuperH specific elements: gst-sh-mobile-dec and gst-sh-mobile-sink. The gst-sh-mobile-sink is a videosink element for SuperH.

Properties

Pads

Licensing

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA

Johannes Lahti <johannes.lahti@nomovok.com> Pablo Virolainen <pablo.virolainen@nomovok.com> Aki Honkasuo <aki.honkasuo@nomovok.com>

Generated on Tue Dec 7 13:42:53 2010 for gst-sh-mobile by  doxygen 1.6.3