[MPlayer-users] mencoder -tv not recording sound...

CD Baric cdbaric at gmail.com
Sun Aug 26 20:20:22 CEST 2007


Hi Guys:

I am trying to set up mencoder to record tv from my V4L2 card.

I am able to view TV with following command:

mplayer -tv normid=1:driver=v4l2:chanlist=us-cable:channel=3 tv:// -vf
pp=lb fps=29.97

I get a reasonable analog picture and sound - I have to control sound
volume by changing the Line In volume on my mixer.

When I try to record I use the following command:

mencoder -tv normid=1:driver=v4l2:chanlist=us-cable\
:channel=26:buffersize=1024:amode=1 \
-oac mp3lame -lameopts cbr:br=64 -ovc lavc -fps 29.97 \
-lavcopts vcodec=mpeg4:vbitrate=900:autoaspect=1 \
-vf pp=lb -o tv-test.avi tv://

I hear the sound but when I playback the tv-test.avi all I have is
picture, no sound.

Here is what it says when I start recording:

MEncoder 2:1.0~rc1-0ubuntu9.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) XP 2400+ (Family: 6, Model: 8, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
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 <olschewski at zpr.uni-koeln.de>
 comment: first try, more to come ;-)
Selected device: BT878 video (Leadtek WinFast 20
 Tuner cap:
 Tuner rxs: LANG1 LANG2
 Capabilites:  video capture  video overlay  VBI capture device  tuner
 read/write  streaming
 supported norms: 0 = PAL; 1 = NTSC; 2 = SECAM; 3 = PAL-Nc; 4 = PAL-M;
5 = PAL-N; 6 = NTSC-JP; 7 = PAL-60;
 inputs: 0 = Television; 1 = Composite1; 2 = S-Video; 3 = Composite3;
 Current input: 0
 Current format: YVU420
v4l2: current audio mode is : STEREO
Selected channel: 26 (freq: 235.250)
Audio block size too low, setting to 16384!
[V] filefmt:9  fourcc:0x32315659  size:640x480  fps:29.97  ftime:=0.0334
Input fps will be interpreted as 29.97 instead.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
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 filter: [pp=lb]
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (640x480 fourcc=34504d46 [FMP4])
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
MP3 audio selected.
Forcing audio preload to 0, max pts correction to 0.
Writing header...1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
ODML: vprp aspect is 4:3.
Writing header...
ODML: vprp aspect is 4:3.

I have tried different adevice options but No Joy. I have tried the
lspci hardware ID for the BT878 audio device 00:09.1 (remembering to
replace the ':' with a '.') but all I get is errors.

What can you recommend?

A couple thoughts - is it possible to SEE the program as you record
it? Is it possible to briefly print the channel number on the video
when changing channels?

Thanks,

CD Baric



More information about the MPlayer-users mailing list