Newsgroup: it.comp.os.linux.iniziare
Titolo: cattura video ed audio

Uso questo comando con mencoder per catturare dalla televisione ma ho
problemi con l'audio : dal programma
mplayer non esce alcun suono
#Cattura dalla Televisione :
mencoder -tv device=/dev/video0:on:driver=v4l:width=320:height=240:forceaudio:adevice=/dev/dsp:input=1
-ovc lavc -lavcopts vcodec=mjpeg -oac pcm -o tvcapture@`date
+%Y`-`date +%m%d`-`date +%H%M`.avi
La stessa cosa mi succede se catturo video da xawtv :(
Se provo ad eseguire un normale mp3 allora mplayer mi permette di
acoltarlo senza problemi...chi mi sta prendendo in giro ???
Ho fatto la prova aprendo questi video da winzozz ma, anche se il file
risulta avere dell'audio, non si sente nulla lo stesso !
Se avete bisogno di altre informazioni non avete che da chiedere
P.S. : OUTPUT di mplayer :
[claudio@terra ~]$ mplayer movie.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale
MPlayer 0.90rc2-RPM-3.1 (C) 2000-2002 Arpad Gereoffy (see DOCS)
CPU: Intel Pentium II Klamath/Pentium II OverDrive (Family: 6,
Stepping: 4)
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled with RUNTIME CPU Detection - warning, it's not optimal! To
get best performance, recompile MPlayer with
--disable-runtime-cpudetection
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/claudio/.mplayer/config
Reading /home/claudio/.mplayer/codecs.conf: can't open
'/home/claudio/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 49 audio & 125 video codecs
font: can't open file: /home/claudio/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded successfully! (206
chars)
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your
system startup scripts.
Using usleep() timing
Can't open input config file /home/claudio/.mplayer/input.conf : No
such file or directory
Input config file /etc/mplayer/input.conf parsed : 50 binds
Playing movie.avi
Detected AVI file format!
VIDEO:  []  384x288  16bpp  12,00 fps  21233,7 kbps (2592,0 kbyte/s)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44100 Hz, 1 ch, 8 bit (0x8), ratio: 44100->44100 (352,8 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local
display)
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 288 (preferred csp: BGR 15-bit)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 288 (preferred csp: BGR 15-bit)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 288 (preferred csp: BGR 15-bit)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 288 (preferred csp: BGR 15-bit)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 288 (preferred csp: BGR 15-bit)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 288 (preferred csp: BGR 15-bit)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 384 x 288 (preferred csp: BGR 15-bit)
Couldn't find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
VDec: using BGR 15-bit as output csp (no 0)
Opening video filter: [flip]
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 9 -> 8
SwScaler: BICUBIC scaler, from BGR 15-bit to Planar YV12 using MMX
VO: [xv] 384x288 => 384x288 Planar YV12
Selected video codec: [rawbgr15] vfm:raw (RAW BGR15)

 La stessa cosa mi succede se catturo video da xawtv :(
A me accade la stessa cosa catturando dalla TV (con transcode), sospetto
fortemente che qualcosa non vada tra alsa, emulazione OSS e cattura dalla
scheda TV. BTW che scheda audio hai? Per caso una integrata nforce (i8x0)?
Ciao
  Andrea

 
Hai provato a cambiare driver usando v4l2 ?Io avevo risolto
cosi' la cattura video con mencoder.
Questo e' il comando che uso io per registrare ad es. 2 ore
di video:
mencoder tv:// -tv driver=v4l2:width=320:height=240:alsa
:chanlist=italy:channels=66-mtv:adevice=hw.0,0:volume=90
:balance=50:amode=0 -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=800:vhq:vqmax=31:keyint=300 -vf
crop=312:240:4:0,pp=tn/lb,scale=320:240 -oac mp3lame -lameopts
preset=medium -endpos 02:00:00 -sws 2 -o mtv.avi
Mi trovo bene anche con transcode che uso cosi':
transcode -i /dev/video0 -p /dev/dsp   -x v4l -g 720x576
-n 0x01 -y ffmpeg -F mjpeg -Q 5 -N 0x01 -V -q 2 --avi_limit 4000 
-o raiuno.avi -c 0-02:00:00
Vedi se ti puo' essere utile.
Ciao.

 
Non si tratta di ascoltare, ma di registrare :-)
Hai già provato a registrare solo audio?
Non é che ti sei scordato di alzare il volume di registrazione?
Ma usi ALSA?
-- 
why do I've to sign here?