[FFmpeg-user] FFMpeg stream audio problem

Csaba csabacsaba904 at gmail.com
Sat Dec 14 09:15:53 EET 2019


Hi Moritz,

Thank you very much, you are very friendly and helpful.

You wrote:

> Thanks for these. I always want to try vlc for certain stuff, but get
> scared a bit. ;-)
I found these command line parameters somewhere on the net. I am a novice. :-(

> As far as I understand, the rtp protocol is always a listening server,
> no extra option needed.

> > #!/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.

> I can't help you with that. Are ports 5000 and 5001 open, and
> accessable from the other machine?

It seems that these ports are not open. I have base install of Debian
stable, i have no active firewall. When I install IPtables, everything
is empty and "accept" status. Do i need to install some other packages
to work with RTP protocol?

netstat -tul
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:ssh             0.0.0.0:*               LISTEN
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN
udp        0      0 0.0.0.0:52177           0.0.0.0:*
udp        0      0 0.0.0.0:52178           0.0.0.0:*
udp        0      0 0.0.0.0:bootpc          0.0.0.0:*

What is the problem with this situation?

> Other question: Did the http "-listen" option work for you?

Unfortunately, not. Because i am a novice, i always put wrong place
the "-listen" parameter in the commandline and the program complains
about error.
#!/bin/sh
ffmpeg -f alsa -i plughw:1,0 -acodec libmp3lame -ac 1 -f mp3
http://192.168.1.20:8080
Where do i put the -listen 1 parameter to avoid an error?

I am so sorry, i am a beginner.

I wish you nice day, good weekend.

Best regards: Csaba


2019-12-12 11:38 GMT+01:00, Moritz Barsnick <barsnick at gmx.net>:
> On Wed, Dec 11, 2019 at 16:46:13 +0100, Csaba wrote:
>> #!/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 &
>
> Thanks for these. I always want to try vlc for certain stuff, but get
> scared a bit. ;-)
>
>> I also tried rtp streaming with Ffmpeg. In this case where do I put
>> the "-listen 1" parameter?
>
> As far as I understand, the rtp protocol is always a listening server,
> no extra option needed.
>
>> #!/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.
>
> I can't help you with that. Are ports 5000 and 5001 open, and
> accessable from the other machine?
>
> Other question: Did the http "-listen" option work for you?
>
> Regards,
> Moritz
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list