[Gstreamer-openmax] Fwd: Regarding GStreamer-OpenMax Layer

Felipe Contreras felipe.contreras at nokia.com
Wed Dec 10 01:52:51 PST 2008


On Wed, 2008-12-10 at 15:17 +0530, ext sriram murthy wrote:
>         You can do:
>         export GST_DEBUG=GST_ELEMENT_FACTORY:3
>         
>         To find out what exactly is playbin doing, so you can try
>         different
>         pipelines trying to reproduce the issue.
>         
>         You can also paste the output here if you need help.
> 
> Here is output for Different Commands ( gst-lanch-0.10 alone,
> gst-launch-0.10 with play bin and totem from source packages ).
> All these command are run from the same command prompt & gstreamer
> openmax build is same for all. 
> 
> 1. Command: $ gst-launch-0.10 filesrc location=Sample.mp3 !
> omx_mp3dec ! omx_audiosink
> 
> Output:
> 0:00:00.541246443 10863 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:399:gst_element_factory_create: creating element
> "filesrc"
> 0:00:00.542451992 10863 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:399:gst_element_factory_create: creating element
> "omx_mp3dec"
> 0:00:00.542542517 10863 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:399:gst_element_factory_create: creating element
> "omx_audiosink"
> 0:00:00.542737328 10863 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:399:gst_element_factory_create: creating element
> "pipeline"
> Setting pipeline to PAUSED ...
> 
> Pipeline is PREROLLING ...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> pad_event():eos ---from ---- gstomx_base_filter.c
> handle_event():eos ---from ---- gstomx_base_Sink.c
> Got EOS from element "pipeline0".
> Execution ended after 10927551006 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> FREEING pipeline ...
> 
> Observation: Sound coming Properly from my audio card.
> 
> 2. Command:$ gst-launch playbin uri=file:///Sample.mp3 
> 
> Output:
> 
> 0:00:00.679714213 10910 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:399:gst_element_factory_create: creating element
> "playbin"
> Setting pipeline to PAUSED ...
> 0:00:00.683916693 10910 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "fakesink" named "test"
> 0:00:00.684322156 10910 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "filesrc" named "source"
> 0:00:00.685265890 10910 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:399:gst_element_factory_create: creating element
> "decodebin"
> 0:00:00.686449357 10910 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "typefind" named "typefind"
> 0:00:00.686845780 10910 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "fakesink" named "fakesink"
> 0:00:00.714458553 10910 0x804e050 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:399:gst_element_factory_create: creating element
> "mp3parse"
> 0:00:00.736375402 10910 0x81474d8 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:399:gst_element_factory_create: creating element
> "omx_mp3dec"
> 
> Pipeline is PREROLLING ...
> 
> 0:00:00.897804041 10910 0x81474d8 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "queue" named "preroll_audio_src0"
> 0:00:00.900152615 10910 0x81474d8 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "autoaudiosink" named "audiosink"
> 0:00:00.900536597 10910 0x81474d8 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "fakesink" named "tempsink"
> 0:00:00.900968301 10910 0x81474d8 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "bin" named "abin"
> 0:00:00.903642214 10910 0x81474d8 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "audioconvert" named "aconv"
> 0:00:01.054248196 10910 0x81474d8 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "audioresample" named "aresample"
> 0:00:01.056150184 10910 0x81474d8 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "volume" named "volume"
> 0:00:01.069029998 10910 0x81474d8 INFO   GST_ELEMENT_FACTORY
> gstelementfactory.c:397:gst_element_factory_create: creating element
> "pulsesink" named "audiosink-actual-sink-pulse"

As you can see pulsesink is being picked by autoaudiosink.

A way to mimic this behavior is with:
gst-launch-0.10 filesrc location=Sample.mp3 ! mp3parse ! omx_mp3dec ! pulsesink

If that doesn't work it might be because of timestamp issues in your mp3
component, you can try with omx_mp3dec use-timestamps=false.

If you want to use your omx_audiosink then you would probably need to
give it a higher priority than autoaudiosink (you can set priorities
higher than 256).

-- 
Felipe Contreras





More information about the Gstreamer-openmax mailing list