Hi
I created a stream using: gst-launch -e oggmux name=mux ! queue ! filesink location=vid.ogv \ v4l2src device=/dev/video0 ! queue ! video/x-raw-yuv, width=320, height=240,framerate=15/1 ! queue ! \ textoverlay font-desc="Sans 24" text="CAM1" valign=top halign=left shaded-background=true ! queue ! theoraenc ! queue ! mux. \ v4l2src device=/dev/video1 ! queue ! video/x-raw-yuv, width=320, height=240,framerate=15/1 ! queue ! \ textoverlay font-desc="Sans 24" text="CAM2" valign=top halign=left shaded-background=true ! queue ! theoraenc ! queue ! mux. VLC plays this file vid.ogv without any problem and I see two streams. When I want to play using gst-launch I put: gst-launch filesrc location=vid.ogv ! oggdemux name="demux" ! videomixer name=mix ! ffmpegcolorspace ! xvimagesink \ demux. ! queue ! theoradec ! videoscale ! video/x-raw-yuv, width=640, height=400 ! videobox border-alpha=0 top=-10 left=-10 ! mix. ! \ demux. ! queue ! theoradec ! videoscale ! video/x-raw-yuv, width=640, height=400 ! videobox border-alpha=0 top=-10 left=-10 ! mix. and gets the message: WARNING: erroneous pipeline: link without source element How to select the stream which I want to play? Can anyone help me?? Best regards zakri |
On Fri, Dec 30, 2011 at 02:00:58AM -0800, zakri wrote:
> Hi > > I created a stream using: > gst-launch -e oggmux name=mux ! queue ! filesink location=vid.ogv \ > v4l2src device=/dev/video0 ! queue ! video/x-raw-yuv, width=320, > height=240,framerate=15/1 ! queue ! \ > textoverlay font-desc="Sans 24" text="CAM1" valign=top halign=left > shaded-background=true ! queue ! theoraenc ! queue ! mux. \ > v4l2src device=/dev/video1 ! queue ! video/x-raw-yuv, width=320, > height=240,framerate=15/1 ! queue ! \ > textoverlay font-desc="Sans 24" text="CAM2" valign=top halign=left > shaded-background=true ! queue ! theoraenc ! queue ! mux. > > VLC plays this file vid.ogv without any problem and I see two streams. I can't test your setup, but above you're encoding two video streams, but below you're demuxing 3! > > When I want to play using gst-launch I put: > gst-launch filesrc location=vid.ogv ! oggdemux name="demux" ! videomixer > name=mix ! ffmpegcolorspace ! xvimagesink \ this is one > demux. ! queue ! theoradec ! videoscale ! video/x-raw-yuv, width=640, > height=400 ! videobox border-alpha=0 top=-10 left=-10 ! mix. ! \ two > demux. ! queue ! theoradec ! videoscale ! video/x-raw-yuv, width=640, > height=400 ! videobox border-alpha=0 top=-10 left=-10 ! mix. and three I you want "preview" one of those streams, you'll need to tee[1] them 1. http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-tee.html > > and gets the message: WARNING: erroneous pipeline: link without source > element > > How to select the stream which I want to play? > > Can anyone help me?? > > > Best regards > zakri > > > > > -- > View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-oggdemux-many-streams-tp4245385p4245385.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 |
Free forum by Nabble | Edit this page |