[FFmpeg-user] FFMpeg stream audio problem

Csaba csabacsaba904 at gmail.com
Wed Dec 11 17:46:13 EET 2019


Hi Moritz,

Thank you very much for your mail. I am so sorry for my mistakes. You
are very friendly and helpful.

I have better success with VLC than ffmpeg. My simple goal is to make
audio streaming on my Linux machine. I would like to other machines
and mobile phones can connect to the Linux machine (192.168.1.20) and
can play the stream with low latency.

I tried the following:
#!/in/sh
cvlc -vvv alsa://hw:1,0 --sout-keep --sout
'#transcode{acodec=mp3,ab=128,channels=2,samplerate=9600}:standard{access=http,dst=192.168.1.20:8888/stream.mp3,caching=0}'
> vlc_tcp_stream.log 2>&1 &
I tried to set some caching options too but these options did not
decrease latency.
I tried to stream PCM but i made a mistake.
cvlc -vvv alsa://plughw:1,0 --sout
'#transcode{acodec=s16b,samplerate=44100}:standard{access=http,dst=192.168.1.20:8888/stream.pcm}'
> vlc_pcm.log 2>&1 &
I also tried with "araw" with no success.

I also tried rtp streaming with Ffmpeg. In this case where do I put
the "-listen 1" parameter?
#!/bin/sh
arecord -D plughw:1,0 -r 44100 -c 2 -f S16_LE | ffmpeg -i - -acodec
mp2 -ab 320k -ac 1 -f rtp rtp://192.168.1.20:5000 > ffmpeg_rtp.log
2>&1 &
The stream is operating but i unable to connect from other machine.

Best regards: Csaba


More information about the ffmpeg-user mailing list