Webcam streaming problem

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

Webcam streaming problem

Matias Hernandez Arellano
Hi ... im trying to stream my webcam using OpenCV and gstreamer (with appsrc)... for this, first i test using the command line with this:

    gst-launch v4l2src ! ffmpegcolorspace ! theoraenc ! rtptheorapay ! udpsink host=localhost port=5000 sync=false -v

Then i try to see the streaming using this command line:

    gst-launch udpsrc port=5000 caps="video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)30/1, width=(int)640, height=(int)480, interlaced=(boolean)false" ! rtptheoradepay ! theoradec ! ximagesink

But i get an error: could not link udpsrc0 to rtptheoradepay0 and could not link udpsrc0 to rtptheoradepay0

then i try to use vlc to see what i get from webcam using rtp://@localhost:5000 but nothing happend ...

what i'm do wrong???

I'm running Ubuntu 10.10  with gstreamer and plugins compiled from git repositorie...

Thanks in advance!!

Matías Hernandez Arellano
Ingeniero de Software/Proyectos en VisionLabs S.A
CDA Archlinux-CL
www.msdark.archlinux.cl




_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Webcam streaming problem

Sudarshan Bisht
caps in udpsrc should be at least "application/x-rtp" , certainly not the one which you are using.

On Fri, Apr 1, 2011 at 2:50 AM, Matias Hernandez Arellano <[hidden email]> wrote:
Hi ... im trying to stream my webcam using OpenCV and gstreamer (with appsrc)... for this, first i test using the command line with this:

   gst-launch v4l2src ! ffmpegcolorspace ! theoraenc ! rtptheorapay ! udpsink host=localhost port=5000 sync=false -v

Then i try to see the streaming using this command line:

   gst-launch udpsrc port=5000 caps="video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)30/1, width=(int)640, height=(int)480, interlaced=(boolean)false" ! rtptheoradepay ! theoradec ! ximagesink

But i get an error: could not link udpsrc0 to rtptheoradepay0 and could not link udpsrc0 to rtptheoradepay0

then i try to use vlc to see what i get from webcam using rtp://@localhost:5000 but nothing happend ...

what i'm do wrong???

I'm running Ubuntu 10.10  with gstreamer and plugins compiled from git repositorie...

Thanks in advance!!

Matías Hernandez Arellano
Ingeniero de Software/Proyectos en VisionLabs S.A
CDA Archlinux-CL
www.msdark.archlinux.cl




_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



--
Regards,

Sudarshan Bisht

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel