Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Apr 2005 21:33:01 -0300
From:      Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
To:        Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>
Cc:        FreeBSD-multimedia@FreeBSD.org
Subject:   Re: Help with TV capture (mplayer/brooktree/audigy)
Message-ID:  <20050425003323.96480.qmail@exxodus.fedaykin.here>
In-Reply-To: <20050423111641.C1642@free.home.local>
References:  <20050423060326.77136.qmail@exxodus.fedaykin.here> <20050423111641.C1642@free.home.local>

next in thread | previous in thread | raw e-mail | index | archive | help

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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

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

[snip]

> 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
required.

$ 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=3Dfile" option but
mplayer complains it does not exist.

	This works without audio just fine

$ mplayer -tv driver=3Dbsdbt848:noaudio:width=3D640:height=3D480:input=3D0:=
norm=3Dntsc tv://

	But this doesn't.

$ mplayer -tv driver=3Dbsdbt848:adevice=3D/dev/audio0.1:width=3D640:height=
=3D480:input=3D0:norm=3Dntsc 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-cpudetect=
ion.

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

http://people.FreeBSD.org/~lioux/mplayer.tgz

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

	Regards,

--=20
Mario S F Ferreira - DF - Brazil - "I guess this is a signature."
feature, n: a documented bug | bug, n: an undocumented feature

--TB36FDmn/VVEgNH/
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCbDrTrxEiaFLzGQwRArSeAJ9BL8bYQr+uM25E3jtRCDmv716DaACfZ9V8
yrvCvw00jmXuoX3rHrmD0+E=
=TJbn
-----END PGP SIGNATURE-----

--TB36FDmn/VVEgNH/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050425003323.96480.qmail>