WebCam for 3.01 That Works?

Booting, installing, newbie
Message
Author
User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#16 Post by edoc »

Hooray!

# modprobe pwc
# lsmod
Module Size Used by
pwc 96256 1

I did activate xawtv and got that result.

So we have some exciting progress!

Now xawtv opened a small window and I right-clicked for the control panel and played with some settings but still only saw a black display and ??? at the top.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#17 Post by edoc »

BTW: I read that one might also choose to use MPlayer.

I don't see any way in MPlayer to view a webcam.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#18 Post by MU »

Ok, to reproduce it, I attached my old Genius VideoCAM Trek again.
I had used that over a year ago for Muppywebcam, but it just could display 4 colours :x

Now I compiled the required Kernelmodule again for Puppy 301.
It is called gspca (what for you is pwc).

I loaded it (what you did with pwc):
modprobe gspca
lsmod

Then I ran xawtv.
For a moment, I could see a picture - buggy again with 4 colors.
Interrupted, started again.
Now I also just get a welcome-screen from xawtv, and the xawtv is black and has "???" in the title.
I'm not able to get the picture again.

Then I tried:
gmplayer tv:// -tv driver=v4l:width=352:height=288:device=/dev/video0
I had to detach the cable first!

And WOW...
I have a CORRECT picture now!
Just a bit dark, but with all colours (and it actually is quite dark in my room)!
I hope in daylight it will have natural colours.
You can see at my hand, that I enlightened using a small LED-lamp, that there are "correct" colours.

So there seems to be a problem with xawtv in Puppy 3.
Please also try mplayer :)

But it eats lot of CPU, other applications become extremely slow.
Also, if you stop mplayer, I once had to detach the camera-cable and plug it in again, before I could start mplayer again.

This message helped me:
http://www.murga-linux.com/puppy/viewtopic.php?t=21464

Hmm.. now also this works for me:
xawtv -noxv

Mark
Attachments
gspca.jpg
(12.85 KiB) Downloaded 4319 times
Last edited by MU on Thu 20 Mar 2008, 23:30, edited 2 times in total.

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#19 Post by edoc »

OK , I entered the gmplayer string (of course forgetting to disconnect the USB cable) and fired it off - got an error.

Unplugged and re-plugged the USB cable and pressed the play icon in gmplayer and got the rxvt error (below) along with a brief flashing version of it in a pop-up and two tones of green in the gmplayer window.

# gmplayer tv:// -tv driver=v4l:width=352:height=288:device=/dev/video0
MPlayer 1.0pre8-3.3.4 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1500MHz (Family: 6, Model: 9, Stepp ing: 5)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Xlib: extension "XFree86-VidModeExtension" missing on display ":0.0".
Xlib: extension "XFree86-VidModeExtension" missing on display ":0.0".

Playing tv://.
Selected driver: v4l
name: Video 4 Linux input
author: Alex Beregszaszi
comment: under development
=================================================================
WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!
As the V4L1 compatibility layer is broken, this may not work.
If you encounter any problems, use driver=v4l2 instead.
Bugreports on driver=v4l with v4l2 drivers will be ignored.
=================================================================
Selected device: Philips SPC 900NC webcam
Capabilites: capture
Device type: 1
Supported sizes: 160x120 => 640x480
Inputs: 1
0: Webcam: (tuner:0, norm:pal)
Using input 'Webcam'
Selected input hasn't got a tuner!
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 352 x 288 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 352x288 => 352x288 Planar YV12
SwScaler: using unscaled Planar YV12 -> BGRA special converter
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...

ioctl mcapture failed: Numerical result out of range

ioctl mcapture failed: Numerical result out of range

ioctl mcapture failed: Numerical result out of range
V: 0.0 1/ 1 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.0 2/ 2 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.1 3/ 3 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.1 4/ 4 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.2 5/ 5 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.2 6/ 6 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.2 7/ 7 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.3 8/ 8 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.3 9/ 9 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.4 10/ 10 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.4 11/ 11 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range
V: 0.4 12/ 12 ??% ??% ??,?% 0 0
ioctl mcapture failed: Numerical result out of range

ioctl mcapture failed: Numerical result out of range
MJP: returning!

Exiting... (Quit)
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#20 Post by MU »

hm, I don't know what this means.
I would try this:

first check, if mplayer can play videos (.avi, or .mpg or .wmv).
So that you can be shure, that a correct videodriver is used (that can be changed via right-click -> options).

Then:
detach cable, and type:
rmmod pwc
modprobe pwc

Then plugin cable again, and start gmplayer again with the long tv option.
That should "reset" everything from the former experiments.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#21 Post by MU »

also try:
gmplayer tv:// -tv driver=v4l2:width=352:height=288:device=/dev/video0

so use v4l2 instead of v4l.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#22 Post by MU »

mplayer just ate so many CPU-resources, as It used the wrong output driver.
If I use "xv", it is fine.
The colors in the dark look better by right-click -> equalizer -> video -> saturation.
Decreased the value.

After a reboot I got the same errors as you, about v4l2.

I then typed:

rmmod sn9c102
rmmod gspca
modprobe gspca
gmplayer tv:// -tv driver=v4l:width=352:height=288:device=/dev/video0

And it worked.
Not shure that
rmmod sn9c102
is required.

I will test again tomorrow, and then maybe can write a new script to run it with a mouseclick, a new "Muppywebcam".
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#23 Post by MU »

ok, thats it (use pwc instead of gspca):

When I reboot with camera attached, the LED on the camera turns on.
So some kernelmodule was loaded.

lsmod
tells me:
sn9c102 103436 0
compat_ioctl32 1408 1 sn9c102
videodev 27904 1 sn9c102
v4l1_compat 14596 1 videodev
v4l2_common 16896 2 sn9c102,videodev
As we get errors about v4l2, we must disable the driver that uses it, then load the old v4l driver.
This seems to be new in Puppy 3, maybe Puppy 2 did not have v4l2 yet.

So I type:

rmmod sn9c102
modprobe gspca
gmplayer tv:// -tv driver=v4l:width=352:height=288:device=/dev/video0


Then it works for me.
After correcting the saturation in the equalizer, it looks like attached.
Attachments
gspca2.jpg
(16.07 KiB) Downloaded 4268 times
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#24 Post by MU »

Here is adotpup.
It includes for Puppy 301 only:

xawtv (TV-viewer)
gspca (Kerneldriver)
pwc (Kerneldriver)
Muppywebcam (Startscript with Menu-entry)

Muppywebcam will try to load gspca and pwc, then run gmplayer, or if that is not installed, then xawtv.
It will try to not use v4l2, because of the errors edoc and I have gotten.
You can easily modify the sequence of unloading/loading modules with your texteditor in:
/usr/local/Muppywebcam-Puppy301/Muppywebcam

The best will be to run it in a consolewindow by typing
Muppywebcam

Then you can see potential errors.
I'm not at home and do not have the webcam with me, so I cannot test it myself this week.

Please tell me if it works, so that I could add it to Muppy008.3, before I go home.

UPDATE:
to use xawtv in Dingo (Puppy 4), you need another package in addition:
http://www.murga-linux.com/puppy/viewto ... 076#215076

Mark
Last edited by MU on Wed 16 Jul 2008, 04:34, edited 4 times in total.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#25 Post by edoc »

Sorry for my delayed reply, for some reason the Forum is not sending me notices of new posts to this thread even though I have that toggled on. :-(

Anyhow, I plugged in the camera, loaded the Muppywebcam PUP, then ran it from rxvt as recommended.

This is what appeared:

Code: Select all

# Muppywebcam
ERROR: Module gspca does not exist in /proc/modules
ERROR: Module pwc does not exist in /proc/modules
ERROR: Module sn9c102 does not exist in /proc/modules
ERROR: Module videodev does not exist in /proc/modules
ERROR: Module v4l2_common does not exist in /proc/modules

ERROR: Module v4l2_common is in use by videodev
ERROR: Module sn9c102 does not exist in /proc/modules


MPlayer 1.0pre8-3.3.4 (C) 2000-2006 MPlayer Team
CPU:         Intel(R) Pentium(R) M processor 1500MHz (Family: 6, Model: 9, Stepp                                                               ing: 5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.


Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".

Playing tv://.
Selected driver: v4l
 name: Video 4 Linux input
 author: Alex Beregszaszi
 comment: under development
=================================================================
 WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!
 As the V4L1 compatibility layer is broken, this may not work.
 If you encounter any problems, use driver=v4l2 instead.
 Bugreports on driver=v4l with v4l2 drivers will be ignored.
=================================================================
Selected device: Philips SPC 900NC webcam
 Capabilites: capture 
 Device type: 1
 Supported sizes: 160x120 => 640x480
 Inputs: 1
  0: Webcam:  (tuner:0, norm:pal)
Using input 'Webcam'
Selected input hasn't got a tuner!
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 352 x 288 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 352x288 => 352x288 Planar YV12 
SwScaler: using unscaled Planar YV12 -> BGRA special converter
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...

ioctl mcapture failed: Numerical result out of range

ioctl mcapture failed: Numerical result out of range

ioctl mcapture failed: Numerical result out of range
V:   0.0   1/  1 ??% ??% ??,?% 0 0                                              
ioctl mcapture failed: Numerical result out of range
V:   0.0   2/  2 ??% ??% ??,?% 0 0    


The latter lines repeated endlessly until I stopped them by pressing the STOP button in the MPlayer window.

When I went to copy the code above there were more changes and this code appeared:

Code: Select all

MPlayer interrupted by signal 2 in module: unknown
# This is xawtv-3.95, running on Linux/i686 (2.6.21.7)
Xlib:  extension "XVideo" missing on display ":0.0".
Xlib:  extension "XVideo" missing on display ":0.0".
WARNING: Your X-Server has no DGA support.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "7x13bold" to type FontStruct
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
Xlib:  extension "GLX" missing on display ":0.0".
ioctl: VIDIOC_S_FMT(type=VIDEO_CAPTURE;fmt.pix.width=384;fmt.pix.height=288;fmt.pix.pixelformat=0x32315559 [YU12];fmt.pix.field=ANY;fmt.pix.bytesperline=0;fmt.pix.sizeimage=0;fmt.pix.colorspace=unknown;fmt.pix.priv=0): Numerical result out of range
And the xatv window popped up and I pressed the OK box got a blank (black actually) xatv window with "???" at the top.

So, I unplugged the camera and ran Muppywebcam again.

Same result.

So I left the camera plugged in and tried launching from the desktop icon.

Same result.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#26 Post by MU »

I'm back home.
Just installed Muppywebcam in a new Muppy.

Works.
Only that xawtv was run after gmplayer, was not ok.
I fixed this now.

Concerning your errors:
It seems, that pwc cannot use v4l (that my gspca uses), but only v4l2.
I can verify this here with lsmod.
So gmplayer must be told, to use v4l2.

What do you get, if you type this?:

Code: Select all

gmplayer tv:// -tv driver=v4l2:width=352:height=288:device=/dev/video0 
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#27 Post by edoc »

Code: Select all

# gmplayer yv:// -tv driver=v412:width=352:height=288:device=/dev/video0
MPlayer 1.0pre8-3.3.4 (C) 2000-2006 MPlayer Team
CPU:         Intel(R) Pentium(R) M processor 1500MHz (Family: 6, Model: 9, Stepping: 5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.


Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".

Playing yv://.
[file] No filename
Failed to open yv://.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#28 Post by linuxcbon »

tv: and not yv:

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#29 Post by edoc »

Ooops! Fat finger error!

Code: Select all

# gmplayer tv:// -tv driver=v412:width=352:height=288:device=/dev/video0
MPlayer 1.0pre8-3.3.4 (C) 2000-2006 MPlayer Team
CPU:         Intel(R) Pentium(R) M processor 1500MHz (Family: 6, Model: 9, Stepping: 5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.


Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".

Playing tv://.
No such driver: v412


Exiting... (Quit)
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#30 Post by linuxcbon »

v4l2 and not v412

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#31 Post by edoc »

Fat finger redux! Sorry ...

Code: Select all

# gmplayer tv:// -tv driver=v4L2:width=352:height=288:device=/dev/video0
MPlayer 1.0pre8-3.3.4 (C) 2000-2006 MPlayer Team
CPU:         Intel(R) Pentium(R) M processor 1500MHz (Family: 6, Model: 9, Stepping: 5)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.


Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".
Xlib:  extension "XFree86-VidModeExtension" missing on display ":0.0".

Playing tv://.
No such driver: v4L2


Exiting... (Quit)
# 
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#32 Post by linuxcbon »

v4l2 and not v4L2
take some sleep and test a lot and google before posting :lol:

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#33 Post by edoc »

Actually this time I merely provided you with only the results of my second try and not both my first and second try.

I tried both v4l2 and v4L2, both failed the same.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

linuxcbon
Posts: 1312
Joined: Thu 09 Aug 2007, 22:54

#34 Post by linuxcbon »

type cat /dev/video > test.avi
wait for 3 seconds
type ctrl and c at the same time (ctrl+c)
open the file test.avi with mediaplayer (gxine or else).

User avatar
edoc
Posts: 4729
Joined: Sun 07 Aug 2005, 20:16
Location: Southeast Georgia, USA
Contact:

#35 Post by edoc »

A file is created and when I open it with MPlayer it plays it but it is too quick for me to actually see what is being played.

I tried also test1.avi and test2.avi each running a little longer but even 20 seconds of being goofy in front of the camera didn't result in anything but a quick flash in the MPlayer window.
[b]Thanks! David[/b]
[i]Home page: [/i][url]http://nevils-station.com[/url]
[i]Don't google[/i] [b]Search![/b] [url]http://duckduckgo.com[/url]
TahrPup64 & Lighthouse64-b602 & JL64-603

Post Reply