Getting random results trying to split and combine video

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

Getting random results trying to split and combine video

Sean Truman
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
 
 
 
 
 
 
 
 

------------------------------------------------------------------------------
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: Getting random results trying to split and combine video

Sean Truman
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 <[hidden email]> 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
 

------------------------------------------------------------------------------
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