cheese non rileva webcam

chiedo scusa (a prima vista sembravano gli stessi)

$ mplayer -flip tv:// -tv driver=help:device=/dev/video0:outfmt=yv12:width=160:height=120:fps=50
MPlayer 1.0rc2-4.1.2 © 2000-2007 MPlayer Team
CPU: Intel® Core™2 Duo CPU T7700 @ 2.40GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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.
Available drivers:
v4l2 Video 4 Linux 2 input (first try, more to come ;-))
v4l Video 4 Linux input (under development)
dummy NULL-TV

Exiting… (End of file)

provate questo:

$ mplayer -flip tv:// -tv driver=v4l2:device=/dev/video0:outfmt=yv12:width=160:height=120:fps=50

e se non va provate a sostituire yv12 con:
uyvy, yuy2
date responso.

Funzionano tutti e tre i comandi e danno l’immaginre “dritta”,ma tutti e tre (se ho letto bene) danno un errore.Posto il primo dei tre output,se servono gli altri li posto.

[quote]
$ mplayer -flip tv:// -tv driver=v4l2:device=/dev/video0:outfmt=yv12:width=160:height=120:fps=50
MPlayer 1.0rc2-4.1.2 © 2000-2007 MPlayer Team
CPU: Intel® Core™2 Duo CPU T7700 @ 2.40GHz (Family: 6, Model: 15, Stepping: 11)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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 [email protected]
comment: first try, more to come :wink:
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
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
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run ‘xvinfo’ to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See ‘mplayer -vo help’ for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.

Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 160 x 120 (preferred colorspace: Packed YUY2)
Could not find matching colorspace - retrying with -vf scale…
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
[swscaler @ 0x876e990]SwScaler: BICUBIC scaler, from yuyv422 to rgb32 using MMX2
[swscaler @ 0x876e990]SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x876e990]SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x876e990]SwScaler: using n-tap MMX scaler for vertical scaling (BGR)
[swscaler @ 0x876e990]SwScaler: using MMX YV12->BGR32 Converter
[swscaler @ 0x876e990]SwScaler: 160x120 -> 160x120
VO: [x11] 160x120 => 160x120 BGRA [flip]
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)

Audio: no sound
Starting playback…
V: 0.0 136/136 ??% ??% ??,?% 0 0

MPlayer interrupted by signal 2 in module: video_read_frame

MPlayer interrupted by signal 8 in module: free_demuxer[/quote]

bene.
tenete presente che l’immagine corretta cioè “dritta” è corretta in via software, il dispositivo comunque la legge up-down.
Con questo vi voglio avvisare che se usate un altro software che non sia mplayer con i comandi che sono stati indicati, dovrete correggerli in modo analogo a mplayer.

ps. gli errori che riscontra mplayer sono dovuti alla grande sensibilità di questo straordinario software e alla sua capacità di porre rimedio.

provate a modificare:
width=160:height=120
con:
width=320:height=240
e vedete se ha problemi ad ampliare l’immagine.

funziona,anche ingrandendo la finestra al massimo (non a tutto schermo) :smiley:

potete ora registrare dalla web-cam usando il comando mencoder con le stesse opzioni di mplayer.
Buon divertimento.

perché non scrivete una bella guida?
:slight_smile:

[quote=virus]
perché non scrivete una bella guida?
:-)[/quote]

Aspetto responsi da lorty,se anche lui riesce a risolvere poi vediamo di creare una collaborazione (se per lui va bene)

Grazie ancora “Mod. virus” :wink:

Anche a me va perfettamente.
A dir la verità ho già fatto una bozza, dove la posso allegare?
Io non ho mai usato il mencoder…come lo uso per registrare? se sostituisco solo la parola mencoder a mplayer mi dice:
$ mencoder -flip tv:// -tv driver=v4l2:device=/dev/video0:outfmt=yv12:width=320:height=240:fps=50
MEncoder 1.0rc2-4.1.2 © 2000-2007 MPlayer Team
CPU: AMD Athlon™ 64 X2 Dual-Core Processor TK-55 (Family: 15, Model: 104, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Exiting… (No output file specified, please see the -o option.)

se è una bozza che vuoi condividere con l’utente Paky il modo migliore è che vi scambiate l’e.mail in PM, concordiate il testo e poi lo spedite mediante la sezione guide–invia articolo.

[quote]
Io non ho mai usato il mencoder…come lo uso per registrare? [/quote]
prova con questo:

$ mencoder -flip tv:// -tv driver=v4l2:device=/dev/video0:outfmt=yv12:width=160:height=120:fps=50 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800 -oac mp3lame -o prova.avi
continuerà a registrare nel file prova.avi all’infinito, lo fermi con un ctrl-c.

Ma è tutto un solo comando??
cmq non funziona:

$ mencoder -flip tv:// -tv driver=v4l2:device=/dev/video0:outfmt=yv12:width=160:height=120:fps=50 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=800 -oac mp3lame -o prova.avi

MEncoder 1.0rc2-4.1.2 © 2000-2007 MPlayer Team
CPU: AMD Athlon™ 64 X2 Dual-Core Processor TK-55 (Family: 15, Model: 104, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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: 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
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!
Errore di virgola mobile
[lorty@localhost ~]$

forse ho esagerato:

$ mencoder -flip tv:// -tv driver=v4l2:device=/dev/video0:outfmt=yv12:width=160:height=120:fps=50 -ovc lavc -o prova.avi

Purtroppo non funziona nemmeno così:

$ mencoder -flip tv:// -tv driver=v4l2:device=/dev/video0:outfmt=yv12:width=160:height=120:fps=50 -ovc lavc -o prova.avi
MEncoder 1.0rc2-4.1.2 © 2000-2007 MPlayer Team
CPU: AMD Athlon™ 64 X2 Dual-Core Processor TK-55 (Family: 15, Model: 104, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
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: 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
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!
Errore di virgola mobile

O provato anche a cambiare la risoluzione a 320 e 240 ma niente…
width=320:height=240

dammi l’output di questo:

$ mencoder -flip tv:// -tv driver=v4l2:device=/dev/video0:outfmt=yv12:width=160:height=120:fps=50 -ovc help -o prova.avi

$ mencoder -flip tv:// -tv driver=v4l2:device=/dev/video0:outfmt=yv12:width=160:height=120:fps=50 -ovc help -o prova.avi
MEncoder 1.0rc2-4.1.2 © 2000-2007 MPlayer Team
CPU: AMD Athlon™ 64 X2 Dual-Core Processor TK-55 (Family: 15, Model: 104, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.

Available codecs:
copy - frame copy, without re-encoding. Doesn’t work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
nuv - nuppel video
lavc - libavcodec codecs - best quality!
libdv - DV encoding with libdv v0.9.5
xvid - XviD encoding
x264 - H.264 encoding

prova a sostituire la parola help nel comando precedente con uno dei codecs che ha dato ora in risposta, cioè:
copy, raw, etc…

Niente, li ho provati tutti…

mi pare di aver trascurato una cosa.
dai questo:

$  mencoder -flip tv:// -tv driver=v4l2:device=/dev/video0:noaudio:outfmt=yv12:width=160:height=120:fps=50 -ovc lavc -o prova.avi

Perfetto, il comando è quello guisto…non riesco più a trovare Paky…quindi invio direttamente la guida sul sito…sperando sia corretta. Ti saluto e ancora grazie dell’aiuto.
Il prossimo passo sarà poter utilizzare l’immagine diritta della webcam su amsn…ma andiamo con calma…abbiamo già fatto molto.

:slight_smile: