Electrode |
04-03-2003 11:07 PM |
Having a hard time getting mplayer to capture sound from TV tuner
Hello all. I finally decided to buy a TV tuner (a Leadtek Winfast TV 2000 XP Deluxe, if it matters) to do some occasional video capturing, and right now almost everything is working. I've got video working just fine, but I'm having a little trouble with sound.
I compiled the bttv audio module, and it modprobes without error, but I'm having a hard time trying to get MPlayer to 'listen' to it.
Code:
electrode@tetrahedron:~$ mplayer -tv driver=v4l:norm=ntsc:channel=3:amode=1:adevice=/dev/dsp1:width=704:height=480:chanlist=us-cable tv://
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale
MPlayer dev-CVS-030403-21:53-2.95.3 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Advanced Micro Devices Athlon 4 PM Palomino/Athlon MP Multiprocessor/Athlon XP eXtreme Performance (Family: 6, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
Reading config file /usr/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /home/electrode/.mplayer/config
Reading /home/electrode/.mplayer/codecs.conf: can't open '/home/electrode/.mplayer/codecs.conf': No such file or directory
Reading /usr/etc/mplayer/codecs.conf: 50 audio & 136 video codecs
font: can't open file: /home/electrode/.mplayer/font/font.desc
font: can't open file: /usr/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /home/electrode/.mplayer/input.conf : No such file or directory
Can't open input config file /usr/etc/mplayer/input.conf : No such file or directory
Falling back on default (hardcoded) input config
Playing tv://
TV detected! ;-)
Selected driver: v4l
name: Video 4 Linux input
author: Alex Beregszaszi <alex@naxine.org>
comment: under development
Selected device: BT878(Leadtek WinFast 2000/ W)
Capabilites: capture tuner overlay clipping frameram scales
Device type: 235
Supported sizes: 48x32 => 768x480
Inputs: 4
0: Television: tuner audio tv camera (tuner:1, norm:ntsc)
1: Composite1: audio camera (tuner:0, norm:ntsc)
2: S-Video: audio camera (tuner:0, norm:ntsc)
3: Composite3: audio camera (tuner:0, norm:ntsc)
Card reports an unknown audio mode !
Trying two channel audio. Use forcechan to override.
Audio mode setup warning!
Requested mode was stereo, but v4l still reports unknown.
You may need "forcechan" option to force stereo/mono audio recording.
Using input 'Television'
Selected channel: 3 (freq: 61.250)
ioctl get picture failed: Invalid argument
ioctl get picture failed: Invalid argument
ioctl get picture failed: Invalid argument
ioctl get picture failed: Invalid argument
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 704 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 704x480 => 704x480 Planar YV12
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Audio: no sound
Starting playback...
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
MJP: returning! 11% 0.0% 0 0 0%
Exiting... (Quit)
/dev/dsp1 is indicated by dmesg as the btaudio-powered sound device. I have also tried with dsp2, no dice.
Code:
btaudio: driver version 0.7 loaded [digital+analog]
btaudio: Bt878 (rev 17) at 02:04.1, irq: 16, latency: 32, mmio: 0xf2101000
btaudio: using card config "default"
btaudio: registered device dsp1 [digital]
btaudio: registered device dsp2 [analog]
btaudio: registered device mixer1
Now, when I connect a cable between the audio-out jack on the TV card and the audio-in jack on the sound card, I can hear it just fine. The reason I'm not just accepting that is that I haven't the slightest idea how to capture audio along with video that way, whereas if mplayer was taking in audio and video this way (using the btaudio device), it would be easy. Also there's the matter of quality degredation that can not be avoided when using cables, so even if I DID know how to capture it, it wouldn't sound as good. :)
Anyone care to offer advice? Thanks in advance!
|