[gst-devel] Getting random results trying to split and combine video

Sean Truman struman at gmail.com
Tue Mar 2 22:05:35 CET 2010


All,

I have figured out the issue, I have to use multicast (duh same machine)
instead of unicast. (Just one of them days).

Sean

On Tue, Mar 2, 2010 at 11:13 AM, Sean Truman <struman at gmail.com> wrote:

> All,
>
> I am trying to split a 640x320 web camera into two streams and then
> recombine the streams into one stream.
>
> Here is what I have so far. (Please be aware I am running Fedora Core 12
> with the latest gstreamer libraries compiled from source and everything is
> running on the same machine). I wanted to do proof of concept from command
> line before I code it.
>
> Capure Webcamera and stream via MPEG2/TS to port 1234
>
> gst-launch v4l2src ! video/x-raw-yuv,width=640,height=480 !
> ffenc_mpeg2video ! mpegtsmux ! udpsink host=192.168.1.2 port=1234
>
> Next I start the each zone that does the cropping from the original stream.
>
> Zone 1:
> gst-launch -v udpsrc port=1234 ! mpegtsdemux ! ffdec_mpeg2video ! videocrop
> top=0 left=0 right=320 bottom=0 ! ffenc_mpeg2video ! mpegtsmux ! udpsink
> host=192.168.1.2 port=20001
>
> Zone 2:
>  gst-launch -v udpsrc port=1234 ! mpegtsdemux ! ffdec_mpeg2video !
> videocrop top=0 left=320 right=0 bottom=0 ! ffenc_mpeg2video ! mpegtsmux !
> udpsink host=192.168.1.2 port=20002
>
> Now when I try to use the following command to view each stream, sometimes
> it works sometimes it doesn't
>
> View Zone 1:
> gst-launch udpsrc port=20001 ! mpegtsdemux ! ffdec_mpeg2video !
> ffmpegcolorspace ! xvimagesink sync=false
>
> View Zone 2:
> gst-launch udpsrc port=20002 ! mpegtsdemux ! ffdec_mpeg2video !
> ffmpegcolorspace ! xvimagesink sync=false
>
>
> Here is how I am trying to combine the two streams and view them as one.
>
> gst-launch -v udpsrc port=20001 ! mpegtsdemux ! ffdec_mpeg2video ! videobox
> left=0 top=0 ! videomixer name=zone1 ! videomixer name=zone2 ! alpha !
> ffmpegcolorspace ! xvimagesink sync=false udpsrc port=20002 ! mpegtsdemux !
> ffdec_mpeg2video ! videobox left=-320 top=0 ! zone2.
>
> Am I forgetting something? I have scanned the email archieve to see if
> anyone has tried to do the same thing but have found nothing.
>
> Sean
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100302/faf9085f/attachment.htm>


More information about the gstreamer-devel mailing list