[mythtv-users] BT878A TV-FM sound grabbing problem

tovis mailer.tovis at freemail.hu
Wed Mar 21 13:24:42 UTC 2012


Dear list!

I have a TV tuner card signed by Pinnacle, utilizing good old Connexant
BT878A chip. Sound system includes Micronas MSP3410G and Philips
TDA9887TS.
I'm using Debian Squeeze (I do not recommend for multimedia purposes).
After many hours of struggling, emailing I have reached acceptable video
quality using ffmpeg+libx264. Problem is about the grabbing of sound.
On the card, there is a four pin sound connector, which is connected to
sound card on main board (CD in) I can use it for watching and grabbing
through sound card, but my target, is to grab video+sound and "broadcast"
on my home LAN, I do not want "local" sound.
My command for grabbing (using console), using sound card output:
ffmpeg -v verbose -f alsa -ac 2 -i hw:0 -f video4linux2 -i /dev/video0 \
-r 29.97 -s 640x480 -vcodec libx264 \
-f avi -y test02.avi

Next I was trying get sound directly from tuner card, changed appropriate
part of command:
ffmpeg -v verbose -f alsa -ac 2 -i hw:1,0,0 -f video4linux2 -i /dev/video0 \
-r 29.97 -s 640x480 -vcodec libx264 \
-f avi -y test02.avi
But no sound at all, even any noise or "poff".
The system recognizes my card and load appropriate modules such as snd_bt87x.
The /proc/asound/cards seems like this:

 0 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfe024000 irq 16
 1 [Bt878          ]: Bt87x - Brooktree Bt878
                      Brooktree Bt878 at 0xfdbfe000, irq 20
 2 [HDMI           ]: HDA-Intel - HDA ATI HDMI
                      HDA ATI HDMI at 0xfdffc000 irq 19

I have inspected info for card 1:

/proc/asound/card1/pcm0c/info
card: 1
device: 0
subdevice: 0
stream: CAPTURE
id: Bt87x Digital
name: Bt87x Digital
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1

/proc/asound/card1/pcm1c/info
card: 1
device: 1
subdevice: 0
stream: CAPTURE
id: Bt87x Analog
name: Bt87x Analog
subname: subdevice #0
class: 0
subclass: 0
subdevices_count: 1
subdevices_avail: 1

I was trying also -i hw:1,1,0 with same result (it was only to be sure, I
thin I need digital output).
Almost forget, that to switch the sound on with ffmpeg I always need to
use v4l2-ctl application, use controls, listed below:

brightness (int)  : min=0 max=65535 step=256 default=32768 value=32768
contrast (int)  : min=0 max=65535 step=128 default=32768 value=32768
saturation (int)  : min=0 max=65535 step=128 default=32768 value=32768
hue (int)  : min=0 max=65535 step=256 default=32768 value=32768
balance (int)  : min=0 max=65535 step=655 default=32768 value=32768
bass (int)  : min=0 max=65535 step=655 default=32768 value=32768
treble (int)  : min=0 max=65535 step=655 default=32768 value=32768
mute (bool) : default=0 value=1
chroma_agc (bool) : default=0 value=0
combfilter (bool) : default=0 value=0
automute (bool) : default=0 value=1
luma_decimation_filter (bool) : default=0 value=0
agc_crush (bool) : default=0 value=1
vcr_hack (bool) : default=0 value=0
whitecrush_upper (int)  : min=0 max=255 step=1 default=207 value=207
whitecrush_lower (int)  : min=0 max=255 step=1 default=127 value=127
uv_ratio (int)  : min=0 max=100 step=1 default=50 value=50
full_luma_range (bool) : default=0 value=0
coring (int)  : min=0 max=3 step=1 default=0 value=0

(output a little reformatted, the origin is not so good for email)
To switch on the sound I have used command:
$ v4l2-ctl --set-ctrl=mute=0

When I have grabbing through the sound card it was worked.
I have lost, what I can do to get sound directly from the tuner card. I
have reviewed data sheets for main chips on my board, theoretically it
should work. I have checked out your Wiki but do not found how to check
alsa output, only oss (/dev/dspX).
Could some one give help, how to get sound working directly from tuner
card for grabbing?

Sincerelly tovis





More information about the mythtv-users mailing list