Encode Line-In signal as http stream

About encoding, codec settings, muxers and filter usage
langerak
New Cone
New Cone
Posts: 3
Joined: 17 Mar 2010 12:38

Encode Line-In signal as http stream

Postby langerak » 17 Mar 2010 12:47

I've found some info already, but still can't get it wo work

Here is the situation:

I have a normal radio connected to the line-in on a computer (runs Ubuntu 9.10). the signal in the store is ok, so there is sound. It directly plays it via the Line-Out on that PC (passthrough).
Now i want to encode that input into a stream using VLC, however when i use the following command it opens VLC, the timer starts ticking, but i hear no audio (at the office there is no radio signal)

vlc -vvv alsa://hw:0,0 --sout '#transcode{acodec=mpga,ab=128}:standard{access=http,mux=ogg,dst=172.24.46.142:1234}'

I already tried changing it to hw:0,2 but that turns out the same result.

EDIT:
After researching a bit further, i've found some more info and now i have this command:
vlc -I http --control http:rc --rc-host :4800 --http-host :7000 --no-rc-show-pos --volume 500 -vvv alsa://hw:0,0 --sout '#duplicate{dst=display,dst="transcode{acodec=vorb,anc=vorbis{quality=2},ab=64,samplerate=44100,channels=2}:standard{access=http,mux=ogg,url=172.24.46.142:8080}"}'

Which actually starts encoding the stream, but when i connect i just hear a "ssssssssssssss". The sound if you tune a radio and there is no station at that time.

Am i missing something or doing something wrong in my command?

Any help is appreciated!

langerak
New Cone
New Cone
Posts: 3
Joined: 17 Mar 2010 12:38

Re: Encode Line-In signal as http stream

Postby langerak » 17 Mar 2010 13:57

Fixed it. It used PulseAudio as input, so i opened the volume control applet in padevchooser and set the correct line in and now all works like a charm!


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 20 guests