WebCam for 3.01 That Works?
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
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]
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:
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.
When I reboot with camera attached, the LED on the camera turns on.
So some kernelmodule was loaded.
lsmod
tells me:
As we get errors about v4l2, we must disable the driver that uses it, then load the old v4l driver.sn9c102 103436 0
compat_ioctl32 1408 1 sn9c102
videodev 27904 1 sn9c102
v4l1_compat 14596 1 videodev
v4l2_common 16896 2 sn9c102,videodev
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]
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
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]
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:
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:
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.
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
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
[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
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?:
Mark
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
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
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
[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
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
[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
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
[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
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.
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
[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
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.
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
[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
Is what I have described what you would expect or do I perhaps have a setting wrong in MPlayer?
How do we proceed from here, please?
I am excited that we may have a solution soon!
How do we proceed from here, please?
I am excited that we may have a solution soon!
[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
[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
I think there will be different output...edoc wrote: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.
Please copy&paste the result you get from the command I suggested.
The exact errors are very important to have an idea, what goes wrong.
I am currently without idea, what goes wrong.
Also googling did not help me, to find out more.
So the error-messages are currently the only hint we might get.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]
OK, here is the result from
gmplayer tv:// -tv driver=v4l2:width=352:height=288:device=/dev/video0
I think you now have everything.
gmplayer tv:// -tv driver=v4l2:width=352:height=288:device=/dev/video0
I think you now have everything.
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
[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
ah I see, your mplayer is too old.
I get the same error when I test version 1.0.8, but not with 1rc1.
Please uninstall mplayer with Petget, then install:
http://dotpups.de/dotpups/Multimedia/Mp ... chrome.pup
mirror:
http://puppyfiles.ca/dotpupsde/dotpups/ ... chrome.pup
Then run
gmplayer, and open a video, to check that it plays well (that the correct video-out driver is active).
Then run my command again, please, and post the result here.
Mark
I get the same error when I test version 1.0.8, but not with 1rc1.
Please uninstall mplayer with Petget, then install:
http://dotpups.de/dotpups/Multimedia/Mp ... chrome.pup
mirror:
http://puppyfiles.ca/dotpupsde/dotpups/ ... chrome.pup
Then run
gmplayer, and open a video, to check that it plays well (that the correct video-out driver is active).
Then run my command again, please, and post the result here.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]