No Audio using BTTV

*nix specific usage questions
jeremy1701
New Cone
New Cone
Posts: 4
Joined: 09 Mar 2006 17:50

No Audio using BTTV

Postby jeremy1701 » 09 Mar 2006 17:55

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

tonsofpcs
Cone that earned his stripes
Cone that earned his stripes
Posts: 363
Joined: 04 Jan 2006 10:03
Location: Binghamton, NY, USA
Contact:

Postby tonsofpcs » 10 Mar 2006 01:37

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.

jeremy1701
New Cone
New Cone
Posts: 4
Joined: 09 Mar 2006 17:50

Postby jeremy1701 » 10 Mar 2006 03:28

Hey tonsofpcs,
Would you maybe be able to tell me how to do that? :oops:
Thanks!
Jeremy

tonsofpcs
Cone that earned his stripes
Cone that earned his stripes
Posts: 363
Joined: 04 Jan 2006 10:03
Location: Binghamton, NY, USA
Contact:

Postby tonsofpcs » 11 Mar 2006 00:36

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.

oneeighty

sound

Postby oneeighty » 24 Mar 2006 04:00

Here's a work around.

Set sound output module to alsa.

open tvtime turn down tv time volume.

jeremy1701
New Cone
New Cone
Posts: 4
Joined: 09 Mar 2006 17:50

Postby jeremy1701 » 03 Apr 2006 22:05

Will try! Thanks for the tip.
Jeremy

collins
New Cone
New Cone
Posts: 4
Joined: 19 Apr 2006 22:23

Postby collins » 21 Apr 2006 20:22

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,

bblood
New Cone
New Cone
Posts: 6
Joined: 10 May 2006 16:38
Location: Maine

Maybe this will help...

Postby bblood » 12 May 2006 14:41

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

bblood
New Cone
New Cone
Posts: 6
Joined: 10 May 2006 16:38
Location: Maine

Got everything working...

Postby bblood » 12 May 2006 20:24

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

randomuser

Postby randomuser » 22 May 2006 02:23

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 !


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests