Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 17 Sep 2014, 13:38
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
WebCam for 3.01 That Works?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 5 [73 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
edoc


Joined: 07 Aug 2005
Posts: 4368
Location: Southeast Georgia, USA

PostPosted: Thu 20 Mar 2008, 18:17    Post subject:  

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.

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4368
Location: Southeast Georgia, USA

PostPosted: Thu 20 Mar 2008, 18:28    Post subject:  

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

I don't see any way in MPlayer to view a webcam.

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 20 Mar 2008, 19:12    Post subject:  

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 Mad

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 Smile

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
GSPCA-2007-24-12-Puppy3-Kernel-2.6.21.7.pup
Description 
pup

 Download 
Filename  GSPCA-2007-24-12-Puppy3-Kernel-2.6.21.7.pup 
Filesize  126.1 KB 
Downloaded  821 Time(s) 
gspca.jpg
 Description   
 Filesize   12.85 KB
 Viewed   4110 Time(s)

gspca.jpg


Last edited by MU on Thu 20 Mar 2008, 19:30; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4368
Location: Southeast Georgia, USA

PostPosted: Thu 20 Mar 2008, 19:27    Post subject:  

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)

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 20 Mar 2008, 19:36    Post subject:  

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

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 20 Mar 2008, 19:43    Post subject:  

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

so use v4l2 instead of v4l.
Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 20 Mar 2008, 21:51    Post subject:  

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

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 20 Mar 2008, 22:12    Post subject:  

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:
Quote:

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.
gspca2.jpg
 Description   
 Filesize   16.07 KB
 Viewed   4082 Time(s)

gspca2.jpg


_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Thu 27 Mar 2008, 18:56    Post subject:  

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/viewtopic.php?p=215076#215076

Mark
Muppywebcam-Puppy301.pup
Description 
pup

 Download 
Filename  Muppywebcam-Puppy301.pup 
Filesize  384.44 KB 
Downloaded  3017 Time(s) 

_________________
my recommended links

Last edited by MU on Wed 16 Jul 2008, 00:34; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4368
Location: Southeast Georgia, USA

PostPosted: Sat 05 Apr 2008, 22:03    Post subject:  

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. Sad

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

This is what appeared:

Code:
# 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:
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.

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 05 Apr 2008, 23:45    Post subject:  

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:
gmplayer tv:// -tv driver=v4l2:width=352:height=288:device=/dev/video0


Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
edoc


Joined: 07 Aug 2005
Posts: 4368
Location: Southeast Georgia, USA

PostPosted: Sun 06 Apr 2008, 13:00    Post subject:  

Code:
# 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://.

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
linuxcbon

Joined: 09 Aug 2007
Posts: 762

PostPosted: Sun 06 Apr 2008, 13:47    Post subject:  

tv: and not yv:
Back to top
View user's profile Send private message 
edoc


Joined: 07 Aug 2005
Posts: 4368
Location: Southeast Georgia, USA

PostPosted: Sun 06 Apr 2008, 14:22    Post subject:  

Ooops! Fat finger error!

Code:
# 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)

_________________
Thanks! David
Home page: http://nevils-station.com
Don't google Search! http://duckduckgo.com
Puppy upup Raring 3992 & Lighthouse64-b602
Back to top
View user's profile Send private message Visit poster's website 
linuxcbon

Joined: 09 Aug 2007
Posts: 762

PostPosted: Sun 06 Apr 2008, 15:05    Post subject:  

v4l2 and not v412
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 5 [73 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1074s ][ Queries: 13 (0.0045s) ][ GZIP on ]