Programma per registrare con webcam

Ciao
vorrei perfavore chiedervi cosa dovrei installare per registrare video con webcam.

Cheese scatta foto ma ha difficoltà (non va) a registrare un filmato.

Vi ringrazio per informazioni.

# tail -f /var/log/messages May 27 13:11:55 localhost kernel: 4557.623053] usb 3-2: USB disconnect, address 2 May 27 13:11:56 localhost kernel: 4558.459032] usb 3-2: new full speed USB device using uhci_hcd and address 4 May 27 13:11:56 localhost kernel: 4558.646937] usb 3-2: not running at top speed; connect to a high speed hub May 27 13:11:56 localhost kernel: 4558.668937] usb 3-2: New USB device found, idVendor=eb1a, idProduct=2761 May 27 13:11:56 localhost kernel: 4558.668943] usb 3-2: New USB device strings: Mfr=0, Product=1, SerialNumber=0 May 27 13:11:56 localhost kernel: 4558.668947] usb 3-2: Product: DEF-299 Camera May 27 13:11:56 localhost kernel: 4558.672087] uvcvideo: Found UVC 1.00 device DEF-299 Camera (eb1a:2761) May 27 13:11:57 localhost kernel: 4559.141167] input: DEF-299 Camera as /devices/pci0000:00/0000:00:1d.1/usb3/3-2/3-2:1.0/input/input9

# yum install guvcview

Grazie MarioS
questo programma va meglio di Cheese ma nel suono si sente
sempre un fruscio?
tribu

userei invece mencoder:

$ mencoder tv:// -tv driver=v4l2:device=/dev/video0:forceaudio -ovc lavc -o prova.avi

Ciao
non arrivo a capisco il code che hai messo?
ho provato ma :

[code][vittorio@localhost ~]$ mencoder tv:// -tv driver=v4l2:device=/dev/video0:forceaudio -ovc lavc -o prova.avi
MEncoder SVN-r31628-4.4.4 © 2000-2010 MPlayer Team
success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski [email protected]
comment: first try, more to come :wink:
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: DEF-299 Camera
Capabilites: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: MJPEG
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
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!
Unable to open ‘/dev/dsp’: No such file or directory
Unable to open ‘/dev/dsp’: No such file or directory
Unable to open ‘/dev/dsp’: No such file or directory
v4l2: ioctl set mute failed: Invalid argument
v4l2: 0 frames successfully processed, 0 frames dropped.
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.

Exiting…
[vittorio@localhost ~]$ [/code]

prova così:

$  mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:fps=30:forceaudio:alsa:adevice=pulse -ovc lavc -oac mp3lame -o prova.avi

non l’ho messo tutto

[code][vittorio@localhost ~]$ mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:fps=30:forceaudio:alsa:adevice=pulse -ovc lavc -oac mp3lame -o prova.avi
MEncoder SVN-r31628-4.4.4 © 2000-2010 MPlayer Team
success: format: 9 data: 0x0 - 0x0
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski [email protected]
comment: first try, more to come :wink:
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: DEF-299 Camera
Capabilites: video capture streaming
supported norms:
inputs: 0 = Camera 1;
Current input: 0
Current format: MJPEG
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
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!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
[V] filefmt:9 fourcc:0x47504A4D size:640x480 fps:30.000 ftime:=0.0333

Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio: 176400->176400)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)

Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1

Opening video decoder: [ffmpeg] FFmpeg’s libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)

MP3 audio selected.
Forcing audio preload to 0, max pts correction to 0.
[mjpeg @ 0x9d99e60] Found EOI before any SOF, ignoring

4 duplicate frame(s)!
Writing header…1f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header…
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header…
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header…
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header…
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Could not find matching colorspace - retrying with -vf scale…
Opening video filter: [scale]
Movie-Aspect is undefined - no prescaling applied.
[swscaler @ 0x9e20480] BICUBIC scaler, from yuv422p to yuv420p using MMX2
videocodec: libavcodec (640x480 fourcc=34504d46 [FMP4])
Writing header…
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

1 duplicate frame(s)!
Pos: 0.3s 5f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
Pos: 0.3s 6f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
Pos: 0.3s 8f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
Pos: 0.4s 10f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
Pos: 0.4s 11f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!
Pos: 0.4s 13f ( 0%) 0.00fps Trem: 0min 0mb A-V:0.000 [0:0]

^Zs: 9.8s 697f ( 0%) 28.85fps Trem: 0min 0mb A-V:0.000 [945:197]
[1]+ Stopped mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:fps=30:forceaudio:alsa:adevice=pulse -ovc lavc -oac mp3lame -o prova.avi
[vittorio@localhost ~]$ [/code]
Poi mi da anche questo quandi tento di lanciare Guvcview

[code]Guvcview error:

Unable to start with minimum setup[/code]

nella tua home c’è il video prova.avi
vedi come è venuta la registrazione.

l’audio è sporco sempre, il video ok

il microfono è della webcam o è esterno ?

è integrato nella webcam

c’è qualche fonte di rumore/vibrazione vicino alla webcam ( ventole , casse acustiche, tsunami …)?

[quote=virus]
c’è qualche fonte di rumore/vibrazione vicino alla webcam ( ventole , casse acustiche, tsunami …)?[/quote]

no, ma ho spostato la presa usb e sembra andare un po meglio ma sempre rumore di fondo

vedere output di:

$ aplay -L

[vittorio@localhost ~]$ aplay -L default Default front:CARD=ICH5,DEV=0 Intel ICH5, Intel ICH5 Front speakers surround40:CARD=ICH5,DEV=0 Intel ICH5, Intel ICH5 4.0 Surround output to Front and Rear speakers surround41:CARD=ICH5,DEV=0 Intel ICH5, Intel ICH5 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=ICH5,DEV=0 Intel ICH5, Intel ICH5 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=ICH5,DEV=0 Intel ICH5, Intel ICH5 5.1 Surround output to Front, Center, Rear and Subwoofer speakers iec958:CARD=ICH5,DEV=0 Intel ICH5, Intel ICH5 - IEC958 IEC958 (S/PDIF) Digital Audio Output [vittorio@localhost ~]$

vedere output di:

# lsusb

[root@localhost ~]# lsusb Bus 007 Device 005: ID 050d:016a Belkin Components Bluetooth Mini Dongle Bus 007 Device 004: ID 0a5c:4503 Broadcom Corp. Bus 007 Device 003: ID 0a5c:4502 Broadcom Corp. Keyboard (Boot Interface Subclass) Bus 007 Device 002: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of BCM2046 Bluetooth) Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 002: ID 0d7d:0240 Phison Electronics Corp. I/O-Magic/Transcend 6-in-1 Card Reader Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 003: ID 046d:c31c Logitech, Inc. Bus 002 Device 002: ID 046d:c05a Logitech, Inc. Optical Mouse M90 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 004: ID eb1a:2761 eMPIA Technology, Inc. EeePC 701 integrated Webcam Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

ma è un asus ?

no è una normale webcam collegata ad desktop dovrebbe venire da cina nome:cx00

non ci stiamo capendo, la macchina è un asus, ha una webcam anche lui integrata ?