trouble with tee element

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

trouble with tee element

Bert Douglas
Hi All,

The script below does not work.  It stays in "prerolling" state forever.
However, if the last two lines are deleted, then it does work.
I am running code from git about 1 week old.

Thanks much for looking.
Bert Douglas

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: trouble with tee element

Bert Douglas
Forgot to put in the script.  Here it is:

gst-launch \
      videomixer name="mix" \
   !  ffmpegcolorspace \
   !  xvimagesink name=sink force-aspect-ratio=1 \
 \
      videotestsrc name=src1 pattern="smpte" \
   !  video/x-raw-rgb, bpp=32, framerate=10/1, width=400, height=300 \
   !  tee name=t1 \
   !  mix.sink_1 \
 \
      videotestsrc name=src2 pattern="checkers-8" \
   !  video/x-raw-rgb, bpp=32, framerate=10/1, width=400, height=300 \
   !  tee name=t2 \
   !  mix.sink_2 \
 \
 \
      t1. ! fakesink \
      t2. ! fakesink \


On Tue, Aug 31, 2010 at 3:35 PM, Bert Douglas <[hidden email]> wrote:
Hi All,

The script below does not work.  It stays in "prerolling" state forever.
However, if the last two lines are deleted, then it does work.
I am running code from git about 1 week old.

Thanks much for looking.
Bert Douglas


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: trouble with tee element

Tim-Philipp Müller-2
On Tue, 2010-08-31 at 15:37 -0500, Bert Douglas wrote:

> Forgot to put in the script.  Here it is:
>
> gst-launch \
>       videomixer name="mix" \
>    !  ffmpegcolorspace \
>    !  xvimagesink name=sink force-aspect-ratio=1 \
>  \
>       videotestsrc name=src1 pattern="smpte" \
>    !  video/x-raw-rgb, bpp=32, framerate=10/1, width=400, height=300 \
>    !  tee name=t1 \
>    !  mix.sink_1 \

You need a queue here for each branch after a tee.

>       videotestsrc name=src2 pattern="checkers-8" \
>    !  video/x-raw-rgb, bpp=32, framerate=10/1, width=400, height=300 \
>    !  tee name=t2 \
>    !  mix.sink_2 \

(so here too)

>  \
>       t1. ! fakesink \

(and here)

>       t2. ! fakesink \

(and here)

Cheers
 -Tim


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: trouble with tee element

Bert Douglas
Thanks much.

Is this in docs anywhere?

On Tue, Aug 31, 2010 at 4:15 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Tue, 2010-08-31 at 15:37 -0500, Bert Douglas wrote:

> Forgot to put in the script.  Here it is:
>
> gst-launch \
>       videomixer name="mix" \
>    !  ffmpegcolorspace \
>    !  xvimagesink name=sink force-aspect-ratio=1 \
>  \
>       videotestsrc name=src1 pattern="smpte" \
>    !  video/x-raw-rgb, bpp=32, framerate=10/1, width=400, height=300 \
>    !  tee name=t1 \
>    !  mix.sink_1 \

You need a queue here for each branch after a tee.

>       videotestsrc name=src2 pattern="checkers-8" \
>    !  video/x-raw-rgb, bpp=32, framerate=10/1, width=400, height=300 \
>    !  tee name=t2 \
>    !  mix.sink_2 \

(so here too)

>  \
>       t1. ! fakesink \

(and here)

>       t2. ! fakesink \

(and here)

Cheers
 -Tim


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: trouble with tee element

Tim-Philipp Müller-2
On Tue, 2010-08-31 at 16:34 -0500, Bert Douglas wrote:
> Thanks much.
>
> Is this in docs anywhere?

Yes:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-tee.html

(I just uploaded an updated version though, the bit about the need for
queues was added recently in git.)

Cheers
 -Tim



------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: trouble with tee element

Tiago Katcipis
In reply to this post by Bert Douglas
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-tee.html

best regards,
Katcipis

On Tue, Aug 31, 2010 at 6:34 PM, Bert Douglas <[hidden email]> wrote:
Thanks much.

Is this in docs anywhere?


On Tue, Aug 31, 2010 at 4:15 PM, Tim-Philipp Müller <[hidden email]> wrote:
On Tue, 2010-08-31 at 15:37 -0500, Bert Douglas wrote:

> Forgot to put in the script.  Here it is:
>
> gst-launch \
>       videomixer name="mix" \
>    !  ffmpegcolorspace \
>    !  xvimagesink name=sink force-aspect-ratio=1 \
>  \
>       videotestsrc name=src1 pattern="smpte" \
>    !  video/x-raw-rgb, bpp=32, framerate=10/1, width=400, height=300 \
>    !  tee name=t1 \
>    !  mix.sink_1 \

You need a queue here for each branch after a tee.

>       videotestsrc name=src2 pattern="checkers-8" \
>    !  video/x-raw-rgb, bpp=32, framerate=10/1, width=400, height=300 \
>    !  tee name=t2 \
>    !  mix.sink_2 \

(so here too)

>  \
>       t1. ! fakesink \

(and here)

>       t2. ! fakesink \

(and here)

Cheers
 -Tim


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
http://www.getgnulinux.org/windows

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel