<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><title id=ridTitle>Blank</title><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 5 4 2 2 2 3 2 4;}
@font-face
        {font-family:Helvetica;
        panose-1:2 11 5 4 2 2 2 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin-top:0in;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Helvetica","sans-serif";
        color:#FFFFCC;
        mso-believe-normal-left:yes;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><![if mso 9]><style>p.MsoNormal
        {margin-left:18.75pt;}
</style><![endif]><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white background="cid:image001.gif@01CC569F.8B516D60" lang=EN-US link=blue vlink=purple style='margin-left:18.75pt;margin-top:18.75pt' id=ridBody><img src="cid:image001.gif@01CC569F.8B516D60" v:src="cid:image001.gif@01CC569F.8B516D60" v:shapes="_x0000_Mail" width=0 height=0 class=shape style='display:none;width:0;height:0'><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If you preview/play using gstreamer, here are few sample commands you could use:<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span style='font-family:"Courier New";color:black;background:white'>gst-launch-0.10 v4l2src device=/dev/video1 ! autovideosink<o:p></o:p></span></p><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span style='font-family:"Courier New";color:black;background:white'>gst-launch-0.10 v4l2src device=/dev/video0 ! xvimagesink<o:p></o:p></span></p><pre><span style='color:black;background:white'>gst-launch-0.10 v4l2src device=/dev/video0 ! 'image/jpeg, width=640, height=480, framerate=30/1' ! jpegdec ! xvimagesink<o:p></o:p></span></pre><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Also the &quot;Webcam and Linux-GStreamer Tutorial&quot; is at:</span><o:p></o:p></p><p class=MsoNormal><a href="http://www.twm-kd.com/linux/webcam-and-linux-gstreamer-tutorial/">http://www.twm-kd.com/linux/webcam-and-linux-gstreamer-tutorial/</a><o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Other Linux Players/Apps include:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Mplayer:&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><a href="http://www.mplayerhq.hu/design7/news.html">http://www.mplayerhq.hu/design7/news.html</a><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>VLC:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><a href="http://www.videolan.org/vlc/download-sources.html">http://www.videolan.org/vlc/download-sources.html</a><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>TVtime:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><a href="http://tvtime.sourceforge.net/">http://tvtime.sourceforge.net/</a><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>XawTV:</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.kraxel.org/blog/linux/xawtv/">http://www.kraxel.org/blog/linux/xawtv/</a><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>all play from a v4l/v4l2 device including </span><span style='font-family:"Verdana","sans-serif";color:#3A3A3A'>webcam.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Best Regards,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Charlie X. Liu, Ph.D.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Sensoray Company Inc.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><b><span style='font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-family:"Tahoma","sans-serif";color:windowtext'> gstreamer-devel-bounces+charlie=sensoray.com@lists.freedesktop.org [mailto:gstreamer-devel-bounces+charlie=sensoray.com@lists.freedesktop.org] <b>On Behalf Of </b>Steve Cookson<br><b>Sent:</b> Friday, August 05, 2011 7:53 AM<br><b>To:</b> gstreamer-devel@lists.freedesktop.org<br><b>Subject:</b> Webcam URI<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#3A3A3A'>Hi Guys,</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#3A3A3A'>I'm hoping you can help me.</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#3A3A3A'>I am writing a medical video application for live surgical examinations, eg for endoscopies or laparoscopies. The application&nbsp;is written in wxPerl which uses an API called wxMediaCtrl as a GStreamer front end.</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#3A3A3A'>The C++ code is shown here:</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#3A3A3A'><a href="http://read.pudn.com/downloads69/sourcecode/embed/247385/wxWidgets-2.8.0/src/unix/mediactrl.cpp__.htm">http://read.pudn.com/downloads69/sourcecode/embed/247385/wxWidgets-2.8.0/src/unix/mediactrl.cpp__.htm</a></span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#3A3A3A'>While the video playback from a file works fine, the functionality for playing a webcam (wxGStreamerMediaBackend::Load (URI version)) does not. It seems that the webcam is opened/loaded but no image appears.&nbsp; If I use a valid webcam name, I get no reaction, but if I use an invalid webcam name the application crashes.&nbsp; I am trying to track the API calls through mediactrl.cpp which starts with this call, but should there be the equivalent of &quot;play&quot; for a webcam?</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#3A3A3A'>Does anyone have or can you point me to a piece of Linux c++ code that plays a Linux webcam (eg <a href="file:///\\dev\video0">file:///dev/video0</a>)?</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#3A3A3A'>Any code or other advice would be much appreciated<o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:#3A3A3A'>Regards<br><br>Steve</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:gray'><o:p></o:p></span></p><div><p class=MsoNormal style='margin-bottom:0in;margin-bottom:.0001pt'><span style='font-family:"Verdana","sans-serif";color:gray'>&nbsp;<o:p></o:p></span></p></div></div></body></html>