[opensuse] v4l2 recording with mencoder, has anyone succeeded.. ever?
Dear List,
I have had this problem ever since I bought my laptop. :(
I can't find _any_ program I could use to record video
using my laptops integrated webcam.. neither mencoder
nor ffmpeg works..
----------
sampsa@linux-ty84:~/video> mencoder tv:// -tv
driver=v4l2:device=/dev/video:width=640:height=480:forceaudio -ovc lavc -oac
lavc -lavcopts vcodec=mpeg4:acodec=mp3 -ffourcc divx -o test.avi
MEncoder 1.0rc2-openSUSE Linux 11.0 (x86_64)-Packman-4.3 (C) 2000-2007 MPlayer
Team
CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-58 (Family: 15, Model: 104,
Stepping: 1)
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski
Sampsa Riikonen wrote:
Dear List,
I have had this problem ever since I bought my laptop. :( I can't find _any_ program I could use to record video using my laptops integrated webcam.. neither mencoder nor ffmpeg works.. ---------- sampsa@linux-ty84:~/video> mencoder tv:// -tv driver=v4l2:device=/dev/video:width=640:height=480:forceaudio -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:acodec=mp3 -ffourcc divx -o test.avi MEncoder 1.0rc2-openSUSE Linux 11.0 (x86_64)-Packman-4.3 (C) 2000-2007 MPlayer Team CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-58 (Family: 15, Model: 104, Stepping: 1) 3DNow supported but disabled 3DNowExt supported but disabled CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
success: format: 9 data: 0x0 - 0x0 TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski
comment: first try, more to come ;-) v4l2: ioctl get standard failed: Invalid argument Selected device: USB 2.0 Camera Capabilites: video capture streaming supported norms: inputs: 0 = Camera 1; Current input: 0 Current format: YUYV v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument tv.c: norm_from_string(pal): Bogus norm parameter, setting default. v4l2: ioctl enum norm failed: Invalid argument Error: Cannot set norm! Selected input hasn't got a tuner! Audio block size too low, setting to 16384! Floating point exception ------------- My webcam is the following (from dmesg): ------------- input: USB 2.0 Camera as /devices/pci0000:00/0000:00:0b.1/usb2/2-2/2-2.1/2-2.1:1.0/input/input16 usb 2-2.1: New USB device found, idVendor=0c45, idProduct=62c0 usb 2-2.1: New USB device strings: Mfr=2, Product=1, SerialNumber=3 usb 2-2.1: Product: USB 2.0 Camera usb 2-2.1: Manufacturer: Sonix Technology Co., Ltd. ------------ .. on the other hand, skype and kopete are able to use my webcam without any problems. Is anyone aware of a bugfix for mplayer or some other program that would do the trick?
Thanks in advance,
Sampsa
Try only displaying the picture with mplayer before confusing the issue
with mencoder options.
I had to add " fps=<framerate> " to my -tv settings for integrated Dell
1700 camera.
Also take a look at " outfmt=
Hi Manne & List,
Well, it seems that mplayer works ok.. I am able to
to get the webcam on my screen with the following command:
***************************
sampsa@linux-ty84:~/video> mplayer tv:// -tv
driver=v4l2:device=/dev/video0:fps=10
MPlayer 1.0rc2-openSUSE Linux 11.0 (x86_64)-Packman-4.3 (C) 2000-2007 MPlayer
Team
CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-58 (Family: 15, Model: 104,
Stepping: 1)
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski
Sampsa Riikonen wrote:
Dear List,
I have had this problem ever since I bought my laptop. :( I can't find _any_ program I could use to record video using my laptops integrated webcam.. neither mencoder nor ffmpeg works.. ---------- sampsa@linux-ty84:~/video> mencoder tv:// -tv driver=v4l2:device=/dev/video:width=640:height=480:forceaudio -ovc lavc -oac lavc -lavcopts vcodec=mpeg4:acodec=mp3 -ffourcc divx -o test.avi MEncoder 1.0rc2-openSUSE Linux 11.0 (x86_64)-Packman-4.3 (C) 2000-2007 MPlayer Team CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-58 (Family: 15, Model: 104, Stepping: 1) 3DNow supported but disabled 3DNowExt supported but disabled CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
success: format: 9 data: 0x0 - 0x0 TV file format detected. Selected driver: v4l2 name: Video 4 Linux 2 input author: Martin Olschewski
comment: first try, more to come ;-) v4l2: ioctl get standard failed: Invalid argument Selected device: USB 2.0 Camera Capabilites: video capture streaming supported norms: inputs: 0 = Camera 1; Current input: 0 Current format: YUYV v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument v4l2: ioctl set format failed: Invalid argument tv.c: norm_from_string(pal): Bogus norm parameter, setting default. v4l2: ioctl enum norm failed: Invalid argument Error: Cannot set norm! Selected input hasn't got a tuner! Audio block size too low, setting to 16384! Floating point exception ------------- My webcam is the following (from dmesg): ------------- input: USB 2.0 Camera as /devices/pci0000:00/0000:00:0b.1/usb2/2-2/2-2.1/2-2.1:1.0/input/input16 usb 2-2.1: New USB device found, idVendor=0c45, idProduct=62c0 usb 2-2.1: New USB device strings: Mfr=2, Product=1, SerialNumber=3 usb 2-2.1: Product: USB 2.0 Camera usb 2-2.1: Manufacturer: Sonix Technology Co., Ltd. ------------ .. on the other hand, skype and kopete are able to use my webcam without any problems. Is anyone aware of a bugfix for mplayer or some other program that would do the trick?
Thanks in advance,
Sampsa
Try only displaying the picture with mplayer before confusing the issue with mencoder options. I had to add " fps=<framerate> " to my -tv settings for integrated Dell 1700 camera. Also take a look at " outfmt=
Manne
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Sampsa Riikonen
So mplayer works ok and mencoder crashes (and they both give the same error messages about "norm" (whatever that is),etc.), so I think it looks like a bug in mencoder, with that "floating point exception" (see below) and all..
Add:
,----
| -dumpstream -dumpfile
On 26 August 08, Sampsa Riikonen wrote:
Hi Manne & List,
Well, it seems that mplayer works ok.. I am able to to get the webcam on my screen with the following command:
<snip>
Have to do my recordings in windows xp, inside virtualbox.. grrrr. :(
Please don't top-post. Have you tried using wxcam? It records from a webcam just fine. The only problem I've had with it, is it crashes when I try to open the 'preferences', but that's easy, I just go onto the .wxcam file and manually edit things I need. -- The right of self defence is the first law of nature: in most governments it has been the study of rulers to confine this right within the narrowest limits possible. -St. George Tucker, Blackstone's Commentaries (1803) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Charles philip Chan
-
JB2
-
Manne Merak
-
Sampsa Riikonen