Article 4S2MN vlc command line audio streaming

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?latest?d=yIl2AUoC8zA latest?i=OYtgMr4J_9s:Aj8UJS4Vlqw:F7zBnMy latest?i=OYtgMr4J_9s:Aj8UJS4Vlqw:V_sGLiP latest?d=qj6IDK7rITs latest?i=OYtgMr4J_9s:Aj8UJS4Vlqw:gIN9vFwOYtgMr4J_9s
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments