Page 1 of 1

No Audio using BTTV

Posted: 09 Mar 2006 17:55
by jeremy1701
Hello everyone,
I recently installed VLC to stream media from one computer to another on my home network. I can stream DVD's and CD's perfectly, but I'm having issues with my TV Tuner. I get the image, and I can stream that, but there's no audio. In fact, I get no audio even when I'm just trying to watch TV without streaming using VLC. The TV Tuner is has a BTTV chipset, but it's one of the kind with a 3.5mm jack out that's being input into the 3.5mm AUX jack of the sound card. I get audio out of it when I watch TV using KDE-TV or TV-Time, so I'm sure that it's something to do with VLC.

Can anyone point me in the right direction? Running Mandrake 10.1.

Thanks in advance!
Jeremy

Posted: 10 Mar 2006 01:37
by tonsofpcs
You need to set VLC to use the input of the sound card for sound input, and you need to be sure that your sound card is set for recording from the AUX input.

Posted: 10 Mar 2006 03:28
by jeremy1701
Hey tonsofpcs,
Would you maybe be able to tell me how to do that? :oops:
Thanks!
Jeremy

Posted: 11 Mar 2006 00:36
by tonsofpcs
Sorry, I don't have a video input device that works at this point (my Hauppauge tuner broke). But you should be able to set the source audio device to /dev/dsp or whatever device your audio input goes to.

sound

Posted: 24 Mar 2006 04:00
by oneeighty
Here's a work around.

Set sound output module to alsa.

open tvtime turn down tv time volume.

Posted: 03 Apr 2006 22:05
by jeremy1701
Will try! Thanks for the tip.
Jeremy

Posted: 21 Apr 2006 20:22
by collins
Will try! Thanks for the tip.
Jeremy
I have exactly the same problem : bttv + vlc = no sound :( (video works perfectly)
have you fond the solution ?
thanks,

Maybe this will help...

Posted: 12 May 2006 14:41
by bblood
This is what I found to work on my system.....Fedora Core 4, all applications install via yum...

vlc -vv v4l:/dev/video0:norm=ntsc:size=320x240:adev=/dev/dsp:audio=0 --ttl 12 --sout '#transcode{vcodec=mp4v,acodec=mp3,vb=1000,ab=64}:std{access=http,mux=ts}'

Notice the acodec=mp3 part...If I use any other codec in there I get this error:

main encoder debug: looking for encoder module: 7 candidates
[00000279] stream_out_transcode private error: cannot find encoder
[00000151] main module debug: unlocking module "araw"
[00000279] stream_out_transcode private error: cannot create audio chain

which results in a picture with no sound...:o

Now...with the command line start text listed above, I get a really nice picture with sound when I open the stream from a windows machine (running vlc) but when I try to open the stream from a linux box vlc just crashes with this message....:

[00000286] ts demuxer debug: * es pid=69 type=3 fcc=mpga
[00000346] main decoder debug: looking for decoder module: 24 candidates
[00000110] main module debug: using decoder module "mpeg_audio"
[00000346] main decoder debug: thread 149711776 (decoder) created at priority 0 (src/input/decoder.c:159)
[00000286] ts demuxer warning: first packet for pid=68 cc=0xd
[00000286] ts demuxer warning: first packet for pid=69 cc=0x8
[00000339] packetizer_mpeg4video packetizer warning: waiting for VOL
[00000339] packetizer_mpeg4video packetizer warning: waiting for VOL
[00000346] mpeg_audio decoder debug: MPGA channels:2 samplerate:44100 bitrate:64
[00000346] main decoder debug: no aout present, spawning one
[00000347] main audio output debug: looking for audio output module: 6 candidates
[00000347] alsa audio output debug: opening ALSA device `default'
vlc: pcm_plug.c:384: snd_pcm_plug_change_channels: Assertion `snd_pcm_format_linear(slv->format)' failed.
Aborted

Anyone have a clue?? I tried switching the audio mode to OSS but I get the same thing...

Got everything working...

Posted: 12 May 2006 20:24
by bblood
Ok....Finally fixed it.

To get vlc running with video and sound on the linux client I had to compile from source with:

./configure --with-ffmpeg-mp3lame

For some reason the rpm I got from freshrpms didn't want to work...

Posted: 22 May 2006 02:23
by randomuser
I had the same problem, heres what worked for me

my tvcard (an saa7133 msi tv@nywhere plus) makes another mixer, and has another dsp device and and audio device (audio1), however I just use the default /dev/audio (not sure if thats any different than /dev/dsp), use audio codec=mp3, ab=128, I am not using a bitrate like 44100 or 32000 I just leave it blank. the trick for me was, I had to use aumixer and open the new tv-only mixer device, /dev/mixer1

aumixer -d /dev/mixer1 -I

and set the volume up and I have to toggle it on and off each time I start vlc on the server side. I also had to open aumixer
aumixer -d /dev/mixer -I (note: not using mixer1 this time) and set the line in and pcm 2 and toggle the rec devices (just fiddle with it till it works) this only had to be done once, the only thing that needs to be done every time is toggling the rec/play with /dev/mixer1 and btw to toggle just hit space bar twice, AFTER vlc starts streaming. hope this helps someone out there, happy tv watching !