Webcam URI

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

Webcam URI

Steve_Bz
Blank

Hi Guys,

I'm hoping you can help me.

I am writing a medical video application for live surgical examinations, eg for endoscopies or laparoscopies. The application is written in wxPerl which uses an API called wxMediaCtrl as a GStreamer front end.

The C++ code is shown here:

http://read.pudn.com/downloads69/sourcecode/embed/247385/wxWidgets-2.8.0/src/unix/mediactrl.cpp__.htm

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.  If I use a valid webcam name, I get no reaction, but if I use an invalid webcam name the application crashes.  I am trying to track the API calls through mediactrl.cpp which starts with this call, but should there be the equivalent of "play" for a webcam?

Does anyone have or can you point me to a piece of Linux c++ code that plays a Linux webcam (eg file:///dev/video0)?

Any code or other advice would be much appreciated

Regards

Steve

 

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

Blank Bkgrd.gif (202 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Webcam URI

Stefan Sauer
Hi,
On 08/05/11 15:57, Steve Cookson wrote:

>
> Hi Guys,
>
> I'm hoping you can help me.
>
> I am writing a medical video application for live surgical
> examinations, eg for endoscopies or laparoscopies. The application is
> written in wxPerl which uses an API called wxMediaCtrl as a GStreamer
> front end.
>
> The C++ code is shown here:
>
> http://read.pudn.com/downloads69/sourcecode/embed/247385/wxWidgets-2.8.0/src/unix/mediactrl.cpp__.htm
>
> 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.
> If I use a valid webcam name, I get no reaction, but if I use an
> invalid webcam name the application crashes.  I am trying to track the
> API calls through mediactrl.cpp which starts with this call, but
> should there be the equivalent of "play" for a webcam?
>
> Does anyone have or can you point me to a piece of Linux c++ code that
> plays a Linux webcam (eg file:///dev/video0)?
>

Most people here are familiar with the c code and not with that
particullar wrapper. You'll probably need to file a bug against the
wrapper. You'll find c based examples in each gstreamer module under
tests/examples.

Stefan

>
> Any code or other advice would be much appreciated
>
> Regards
>
> Steve
>
>  
>
>
> _______________________________________________
> 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
it
Reply | Threaded
Open this post in threaded view
|

RE: Webcam URI

it
Update,

Stefan,

Thanks for your input.  In fact just last night, I got a fix from the
wxWidgets mailing list.

The answer for anyone else who comes looking is:

The Linux webcam should be addressed as v4lc:///dev/video0.  

Now I have beautiful streaming webcam!

Regards

Steve
 

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