[gst-devel] handling unknown streams gracefully

Stefan Kost ensonic at hora-obscura.de
Sat Mar 6 15:03:15 CET 2010


Am 02.03.2010 23:55, schrieb Jeremiah Rose:
> I was hoping for a little more detail, as I've been unable to find any
> documentation on the subject (once I've got a thorough understanding,
> I'd be happy to write some).
> 
> Which signals are they?
> 
> I am aware that decodebin emits "unkown-type", but what does it do
> after it emits the signal?
> 
> I am blocking and pre-rolling the pipeline, and it seems like the
> block and preroll happen anyway, without any decoded pads being
> connected. Is this the correct behaviour?
> 
> Also, does the failure to typefind cause the pipeline to post any messages?
> 
> Where can I find more information?

For python, there is some docs on a berlios project (use google). Using grep on
python sources is a good idea too.

Anyway the idea is that you grab the GstBus and listen for the message:error
signal there. If you get such one, give up on the track and continue with the
next one.

Stefan

> 
> thanks,
> 
> Jez
> 
> On 2 March 2010 17:25, Kapil Agrawal <kapil.agl at gmail.com> wrote:
>> IMHO you can write a application and catch the error signals on the Bus, and
>> based on that skip the file.
>>
>>
>> On Tue, Mar 2, 2010 at 6:48 AM, Jeremiah Rose
>> <jeremiah.aaron.rose at gmail.com> wrote:
>>>
>>> hey all,
>>>
>>> I have a (python) program that runs through a playlist of audio files.
>>> It uses decodebin2 and associated machinery. If a file cannot be
>>> decoded, I wish to simply skip it, without complaint. How is this
>>> done?
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel&#174; Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>>
>> --
>> http://www.linkedin.com/in/kapilagrawal
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
> 
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list