vlc command line audio streaming
by kzo81 from LinuxQuestions.org on (#4S2MN)
Hi,
I'd like to stream my laptop's microphone with vlc and rtsp or http.
I've already did it with ffmpeg, but it consumes so much cpu, I thought I'd give it a try with vlc.
This is on my laptop:
Code:arecord -c 2 S16_LE -r 48000 | cvlc -vvv --sout '#rtp{sdp=rtsp://:4444}'
arecord -c 2 S16_LE -r 48000 | cvlc -vvv :sout=#http:{dst:8888}On the lan, I cannot open the stream from another laptop.
I also checked the server (laptop) and the 4444 or 8888 port is nopen but no stream coming from the server.
I'm also testing with this:
Code:arecord -c 2 S16_LE -r 48000 | cvlc -vvv --sout '#transcode:{acodec=mp2a, ab=128, channels=2, sdp=http://:4444}'On the other pc I got this error:
Code:vlc http:<laptop_ip>:4444
Raw-audio server found, any demuxer selected
Do you know what am I doing wrong?


I'd like to stream my laptop's microphone with vlc and rtsp or http.
I've already did it with ffmpeg, but it consumes so much cpu, I thought I'd give it a try with vlc.
This is on my laptop:
Code:arecord -c 2 S16_LE -r 48000 | cvlc -vvv --sout '#rtp{sdp=rtsp://:4444}'
arecord -c 2 S16_LE -r 48000 | cvlc -vvv :sout=#http:{dst:8888}On the lan, I cannot open the stream from another laptop.
I also checked the server (laptop) and the 4444 or 8888 port is nopen but no stream coming from the server.
I'm also testing with this:
Code:arecord -c 2 S16_LE -r 48000 | cvlc -vvv --sout '#transcode:{acodec=mp2a, ab=128, channels=2, sdp=http://:4444}'On the other pc I got this error:
Code:vlc http:<laptop_ip>:4444
Raw-audio server found, any demuxer selected
Do you know what am I doing wrong?