[gst-devel] Switching between videos with input-selector

victor héry victor.hery.polytech at gmail.com
Thu Aug 19 15:30:37 CEST 2010


  Mmmh, I choose to work with uridecodebin (with pad-added signals).

I think I hadn't fully understand how works dynamic pads and signal, but 
with your help I manage to made a function which allow to link the 
uridecodebin and autovideosink. I guess I first failed because I hadn't 
get the interests of signals, and so I hadn't made a good adaptation of 
the tutorial to my own work...

I tried without inputselector, and after some adaptations and tests,  it 
works well !
Now I tests with the input selector.
Links seems to work, but when I switch between videos, it stops without 
apparents reasons. I am working on it.
The first video is correctly displayed, so the link is good, but during 
the switching, it blocks abruptly. I think the switch signals in the 
input selector has a problem, but I don't know exactly why for the moment.
There is no errors displayed, so...

I will continue to work on it.

I really thank you for your valuable help :)

Regards,

Victor Hery




Le 18/08/2010 22:55, Luciana Fujii Pontello a écrit :
> On Wed, 2010-08-18 at 11:43 +0300, victor héry wrote:
>> Thank you for your answer.
>>
>> I didn't know about autovideosink working only with raw video. I used
>> h264enc because the final aim is to stream with H264pay and udp staff.
>> For the test I have tried to drop h264enc from the pipeline according to
>> your suggestion, but It seems not to change anything...
>>
>> I have already tried decodebin before using playbin, but I had a problem
>> with python, it said "failed to link decodebin and inputselector". I
>> have tried with other plugin, like ffmpegcolorspace, videoscale, ....
>> between decodebin and inputselector and I have the same error.
>>
>> Today I have tried uridecodebin like you said, but unfortunatelly I have
>> the same problem that with decodebin. Though it works well with the
>> command line : gst-launch-0.10 uridecodebin uri="file://..." !
>> input-selector ! autovideosink, without any problems.
>> So I think there is a thing to do in python (In C as well ?) to link
>> decodebin or uridecodebin with other plugins, but I really don't know
>> what. I found something about the "new-decoded-pad" signal with
>> decodebin2 in a tutorial (example 6.2 here :
>> http://pygstdocs.berlios.de/pygst-tutorial/capabilities.html), but it
>> didn't work for me :s
> Both in C or in python you need to connect to "new-decoded-pad" signal
> for decodebin. gst-launch works because it does that for you. I think
> the reference for decodebin used to have more information, it's really
> not that helpful now.
>
> I think the example in pygst is right. What didn't work for you? Try
> using this first in only one branch without input-selector to see if you
> got this part right.
>
> To use uridecodebin you need to connect to "pad-added" signal instead,
> which is documented in GstElement reference. In short, instead of
> (decodebin, pad, islast, data) you have (element, pad, data).
>
> Regards,
>
> Luciana Fujii
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> 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