Showing posts with label gstreamer. Show all posts
Showing posts with label gstreamer. Show all posts

Saturday, February 9, 2013

Gstreamer

http://arashafiei.files.wordpress.com/2012/12/gst-doc.pdf
http://digitalpatch.blogspot.in/2010/09/gstreamer-introduction-draft-version.html

GStreamer is multimedia framework which provides an abstraction layer for the developers of multimedia applications

Element: A GStreamer element is an object that can send and/or receive data
Source: An element that generates a data stream
Filter: An element that transforms the data stream
Sink: An element that receives a stream and doesn't redirect it
Pipeline: A collection of linked elements

A typical pipeline would be:

Source -> Parser -> Decoder -> Filter -> Sink 



Testing Video Files:
====================
gst-launch --gst-debug-help
gst-launch videotestsrc ! ffmpegcolorspace ! fbdevsink
gst-launch filesrc location=big_buck_bunny_h264.h264 ! decodebin ! fbdevsink
gst-launch filesrc location=appudo.mp4 ! decodebin name=decoder decoder. ! queue ! fbdevsink decoder. ! queue ! filesink location=aac.pcm
gst-launch filesrc location=big_buck_bunny_1920x1080.mp4  ! qtdemux name=demux demux. ! queue ! decodebin ! fbdevsink demux. ! queue ! aacparse ! faad ! alsasink

Testing Audio Files:
====================
gst-launch filesrc location=sample_ogg.ogg ! oggdemux ! vorbisdec ! autoaudiosink
gst-launch filesrc location=sample_dts.wav ! dcaparse ! dtsdec ! audioresample ! audioconvert ! alsasink

Interview questions:
how negotiation occur in gstreamer
stagefright, gstreamer, omxil. kernel av codecs