[input-selector] - when i try to play s.sink1 using autovideosrc it gets freezed

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[input-selector] - when i try to play s.sink1 using autovideosrc it gets freezed

IamTrying
About:

- This is very strange problem, i am not getting any answer about this so that i can move forward. What i am using is called "input-selector".  Where i have 2 src, select 1 source and do 2 sink.

Try 1:

When i use this it works: ( Screen shot: http://i.imgur.com/v8PrZ.png )
- Here its working because you can see the ball

videotestsrc ! queue ! s.sink0 videotestsrc pattern=18 ! queue ! s.sink1 input-selector name=s ! videoscale  ! video/x-raw-yuv,width=320,height=240,framerate=30/1 ! queue ! tee name=t ! queue ! xvimagesink name=gl t. ! queue ! rtppay ssrc=1 timestamp-offset=0 seqnum-offset=0 ! udpsink

Try 2:

When i use this it does not work ( Screen shot: http://i.imgur.com/24mdM.png)
- Right screen you can see it does not show the camera

videotestsrc ! queue ! s.sink0 autovideosrc ! queue ! s.sink1 input-selector name=s ! videoscale  ! video/x-raw-yuv,width=320,height=240,framerate=30/1 ! queue ! tee name=t ! queue ! xvimagesink name=gl t. ! queue ! rtppay ssrc=1 timestamp-offset=0 seqnum-offset=0 ! udpsink
Reply | Threaded
Open this post in threaded view
|

Re: [input-selector] - when i try to play s.sink1 using autovideosrc it gets freezed

IamTrying
Here is the fail details.

Debug=*:3: http://fpaste.org/z2zn/raw/
========

Debug=*:2:
=========

# rm -fr /tmp/hackit.gst; export GST_DEBUG=*:3; export GST_DEBUG_FILE=/tmp/hackhit.gst; java -cp My.jar test.test;

# tail -f /tmp/hackit.gst
0:00:01.833575068 14521 0x8b663568 WARN                     bin gstbin.c:2384:gst_bin_do_latency_func:<pipeline0> failed to query latency
0:00:01.881988974 14521 0x8b5e2558 WARN                     bin gstbin.c:2380:gst_bin_do_latency_func:<pipeline0> did not really configure latency of 0:00:00.033333333

FREEZE
Reply | Threaded
Open this post in threaded view
|

Re: [input-selector] - when i try to play s.sink1 using autovideosrc it gets freezed

Stefan Sauer
In reply to this post by IamTrying
On 09/22/2011 12:09 AM, IamTrying wrote:

> About:
>
> - This is very strange problem, i am not getting any answer about this so
> that i can move forward. What i am using is called "input-selector".  Where
> i have 2 src, select 1 source and do 2 sink.
>
> Try 1:
>
> When i use this it works: ( Screen shot: http://i.imgur.com/v8PrZ.png )
> - Here its working because you can see the ball
>
> videotestsrc ! queue ! s.sink0 *videotestsrc* pattern=18 ! queue ! s.sink1
> input-selector name=s ! videoscale  !
> video/x-raw-yuv,width=320,height=240,framerate=30/1 ! queue ! tee name=t !
> queue ! xvimagesink name=gl t. ! queue ! rtppay ssrc=1 timestamp-offset=0
> seqnum-offset=0 ! udpsink
>
Two non-live sources. Also the queue infront of the tee is not needed.

> Try 2:
>
> When i use this it does not work ( Screen shot:
> http://i.imgur.com/24mdM.png)
> - Right screen you can see it does not show the camera
>
> videotestsrc ! queue ! s.sink0 *autovideosrc* ! queue ! s.sink1
> input-selector name=s ! videoscale  !
> video/x-raw-yuv,width=320,height=240,framerate=30/1 ! queue ! tee name=t !
> queue ! xvimagesink name=gl t. ! queue ! rtppay ssrc=1 timestamp-offset=0
> seqnum-offset=0 ! udpsink
>
One live source and one non-live-source. Have you tried switching the
inputs (on input-selector) actually?

Stefan
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/input-selector-when-i-try-to-play-s-sink1-using-autovideosrc-it-gets-freezed-tp3831571p3831571.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [input-selector] - when i try to play s.sink1 using autovideosrc it gets freezed

IamTrying
I switched the input, but it works in LOCAL (such as ximagesink or xvimagesink, you can switch it). But when ever you have UDPSINK and do the same switching, it fails.

To reproduce you can try as following:
=============================

Step 1: Create a live source, does not matter 2,1 or 0 live sources (i have tried with random live sources same problem remains).

Step 2: Do a test for local (ximagesink, xvimagesink, fakesink) not UDPSINK
- You will see it works (confusing is most of us will think its always working), when you switch the input-selector

Step 3: Same working pipe if you now change to UDPSINK, and use UDPSRC to capture it let it run for few seconds

Step 4: Now switch the input-selector, you will see my second screen shot problem.
Reply | Threaded
Open this post in threaded view
|

Re: [input-selector] - when i try to play s.sink1 using autovideosrc it gets freezed

IamTrying
I have tried several way but still the same. Two live source or not two live
source, act exactly the same. If there is no udpsink it works but if its a
udpsink it does not work.

What can be done, has anyone found a solution for this.?

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/input-selector-when-i-try-to-play-s-sink1-using-autovideosrc-it-gets-freezed-tp3831571p3936608.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: [input-selector] - when i try to play s.sink1 using autovideosrc it gets freezed

IamTrying
Just for the records (those who are looking for info) `input-selector` is better choice while playing in local system but not suitable for broadcasting, will provide more information on this follow up:

http://gstreamer-devel.966125.n4.nabble.com/VideoConcat-td971089.html