Issues gstreamer using videomixer and udpsrc

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

Issues gstreamer using videomixer and udpsrc

Sean Truman
All,
 
I am streaming two webcam's from VLC via UDP.  I am trying to use videomix to mix both streams into a single stream.  I can view the stream correctly if I use the following command.
 
gst-launch udpsrc port=2341 ! mpegtsdemux ! mpeg2dec ! ffmpegcolorspace ! ximagesink sync=false
 
now when I add the videomixer like so
 
gst-launch udpsrc port=2341 ! mpegtsdemux ! mpeg2dec ! ffmpegcolorspace ! videomixer name=zone1 ! ximagesink sync=false
 
I get a the following error.
 
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2388): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-negotiated (-4)
 
Both streams are 640x480 MPEG2/TS and from the documentation I should be able to mix the two UDP streams like so.
 
gst-launch udpsrc port=2341 ! mpegtsdemux ! mpeg2dec ! ffmpegcolorspace ! videobox left=0 top=0 ! videomixer name=zone1 ! videomixer name=zone2 ! ffmpegcolorspace ! xvimagesink sync=false videotestsrc ! videobox left=-640 top=0 ! zone2.
 
But I still get the same error, if I replace the udpsrc with videotestsrc and remove the demux and decoders everything is fine.
 
Any help is greatly appreciated for I am going to be bald by the end of the day. ;)
 
Sean Truman
 
 
 

 

------------------------------------------------------------------------------
Download Intel® 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Issues gstreamer using videomixer and udpsrc

Wim Taymans
On Fri, 2010-02-26 at 11:15 -0600, Sean Truman wrote:

> All,
>  
> I am streaming two webcam's from VLC via UDP.  I am trying to use
> videomix to mix both streams into a single stream.  I can view the
> stream correctly if I use the following command.
>  
> gst-launch udpsrc port=2341 ! mpegtsdemux ! mpeg2dec !
> ffmpegcolorspace ! ximagesink sync=false
>  
> now when I add the videomixer like so
>  
> gst-launch udpsrc port=2341 ! mpegtsdemux ! mpeg2dec !
> ffmpegcolorspace ! videomixer name=zone1 ! ximagesink sync=false
>  
> I get a the following error.
>  
> ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal
> data flow error.
> Additional debug info:
> gstbasesrc.c(2388): gst_base_src_loop
> (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
> streaming task paused, reason not-negotiated (-4)
>  
> Both streams are 640x480 MPEG2/TS and from the documentation I should
> be able to mix the two UDP streams like so.
>  
> gst-launch udpsrc port=2341 ! mpegtsdemux ! mpeg2dec !
> ffmpegcolorspace ! videobox left=0 top=0 ! videomixer name=zone1 !
> videomixer name=zone2 ! ffmpegcolorspace ! xvimagesink sync=false
> videotestsrc ! videobox left=-640 top=0 ! zone2.
>  
> But I still get the same error, if I replace the udpsrc with
> videotestsrc and remove the demux and decoders everything is fine.
>  
> Any help is greatly appreciated for I am going to be bald by the end
> of the day. ;)

Use the -v option of gst-launch to see what pad got negotiated last.
>From that point on you have a format problem downstream. Then you see
where the format problem is and you insert ffmpegcolorspace. In your
first pipeline that would likely be before xvimagesink.

Wim

>  
> Sean Truman
>  
>  
>  
>
>  
> ------------------------------------------------------------------------------
> Download Intel® 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 [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------
Download Intel® 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Issues gstreamer using videomixer and udpsrc

Sean Truman
Ok I got it working with the following,
 
gst-launch udpsrc port=2341 ! mpegtsdemux ! mpeg2dec ! alpha ! videobox left=0 top=0 ! videomixer name=zone1 ! videomixer name=zone2 ! ffmpegcolorspace ! ximagesink sync=false udpsrc port=2342 ! mpegtsdemux ! mpeg2dec ! alpha ! videobox left=-640 top=0 ! zone2. sync=false
 
But the video will play for a few seconds and then freeze.  Any suggestions?
 
Sean

On Fri, Feb 26, 2010 at 11:25 AM, Wim Taymans <[hidden email]> wrote:
 
Use the -v option of gst-launch to see what pad got negotiated last.
>From that point on you have a format problem downstream. Then you see
where the format problem is and you insert ffmpegcolorspace. In your
first pipeline that would likely be before xvimagesink.

Wim

>
> Sean Truman
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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 [hidden email] 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
[hidden email]
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Issues gstreamer using videomixer and udpsrc

Luciana Fujii Pontello
On Fri, 2010-02-26 at 11:57 -0600, Sean Truman wrote:

> Ok I got it working with the following,
>  
> gst-launch udpsrc port=2341 ! mpegtsdemux ! mpeg2dec ! alpha !
> videobox left=0 top=0 ! videomixer name=zone1 ! videomixer
> name=zone2 ! ffmpegcolorspace ! ximagesink sync=false udpsrc
> port=2342 ! mpegtsdemux ! mpeg2dec ! alpha ! videobox left=-640
> top=0 ! zone2. sync=false
>  
> But the video will play for a few seconds and then freeze.  Any
> suggestions?

This is just a wild guess, but have you tried adding a videorate? From
experience I learned that videomixer doesn't work well with some
framerate combinations.

Also, I'm just curious if you can't use xvimagesink instead of
ximagesink. That would probably save you from that colorspace before
ximagesink.

Luciana Fujii
Holoscópio Tecnologia - http://holoscopio.com

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel