Help with TV capture (mplayer/brooktree/audigy)

Mario Sergio Fujikawa Ferreira lioux at
Sun Apr 24 17:36:42 PDT 2005

On Sat, Apr 23, 2005 at 05:07:52PM +0400, Yuriy Tsibizov wrote:

> You should also try to set other 'mixer' levels (except master, rec &
> pcm) to zero. This can produce more clean sound.


> Can you try to connect your sound source into line input? Mic input can
> have only mono ADC.

	Okay, these are the settings that are working. I connected
my sound source to the line input. I set all mixers to 0 but the
only I really needed to get it to work.  So you can use only those
and get a clear sound input.

$ mixer
Recording source: line1
Mixer vol      is currently set to  64:64
Mixer pcm      is currently set to  81:81
Mixer speaker  is currently set to   0:0
Mixer line     is currently set to 100:100
Mixer mic      is currently set to   0:0
Mixer cd       is currently set to   0:0
Mixer rec      is currently set to 100:100
Mixer ogain    is currently set to   0:0
Mixer line1    is currently set to   0:0
Mixer phin     is currently set to   0:0
Mixer phout    is currently set to   0:0
Mixer video    is currently set to   0:0

	Just the same with emuctrl. I am using the minimum options

$ emuctrl list
Id      Description               Vol   RecVol
FX (PCM) buses
fx0     DSP FX BUS 0             83:83  (0:0)
DSP Inputs
in0     AC97 Codec                0:0   (100:100)
in1     CD S/PDIF                 0:0   (0:0)
in2     Optical S/PDIF            0:0   (0:0)
in3     0x06                      0:0   (0:0)
in4     Line-In (2)               0:0   (0:0)
in5     Coaxial S/PDIF            0:0   (0:0)
in6     AUX2                      0:0   (0:0)
in7     0x0E                      0:0   (0:0)
DSP Outputs
out0    DIGITAL: Front            0:0
out1    DIGITAL: Center           0
out2    DIGITAL: Subwoofer        0
out3    Headphones              100:100
out4    DIGITAL: Rear             0:0
out5    Front                   100:100
out6    Center                  100
out7    Subwoofer               100
out8    Side                      0:0
out9    Rear                    100:100
out10   AC97 ??                   0:0
out11   0x12                      0:0
out12   0x14                      0:0
out13   A/D converter (REC)     100:100
out14   0x18                      0:0
out15   0x1A                      0:0
out16   0x1C                      0:0
out17   0x1E                      0:0

> Does it produce better sound than recoding from AC97 mic?

	Yes, line input produces excellent quality.

	It would be nice if you added those figures above to the
FAQ. :) Let me know if you want me to test anything. I would really
like to be of assistance.  Thanks a lot for everybody's help.

	Just one question remains. My video input is /dev/bktr0
alas my audio input is /dev/audio0.1. How do I get mplayer to record
both audio and video at the same time from different sources?

	mplayer(1) man page mentions a "adevice=file" option but
mplayer complains it does not exist.

	This works without audio just fine

$ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv://

	But this doesn't.

$ mplayer -tv driver=bsdbt848:adevice=/dev/audio0.1:width=640:height=480:input=0:norm=ntsc tv://
MPlayer 1.0pre7-3.4.2 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.

Option tv: Unknown suboption adevice

	In case you're wondering if audio0.1 works

$ ls -l /dev/audio0.1
crw-rw-rw-  1 root  wheel   30, 0x00010004 Apr 18 01:24 /dev/audio0.1

	Using wavrec works just fine so I know the audio input device is sound.

$ wavrec -d /dev/audio0.1 test.wav

	Any help is appreciated. Oh, in case you guys want to use my sample
of mplayer 1.0pre7, it can be found at

	It is not a final version but it is working just fine for


Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
feature, n: a documented bug | bug, n: an undocumented feature
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-multimedia mailing list