N
N
nallion2015-08-23 05:52:14
System administration
nallion, 2015-08-23 05:52:14

FFmpeg - aac stream streaming, buffering?

Good afternoon! I have the following problem.
Picked up icecast2.
When I send a stream from a file to it using FFmpeg (the file is encoded in aac in any variations (aac \ aac-he \ aac-hev2)) there is a picture that this stream does not play in half of the players (foobar2000 \ mplayer etc). These players endlessly buffer the stream instead of playing. FFplay and VLC play fine.
I send for the test like this:
ffmpeg -re -i test.aac -acodec copy -legacy_icecast 1 -f adts icecast://source:[email protected]_IP:8000/radio.aac
or
ffmpeg -re -i test.mp3 -acodec aac -ab 64k -strict -2 -legacy_icecast 1 -f adts icecast://source:[email protected]_IP:8000/radio.aac
if I use software to send to icecast2 - a stream server (like altacast) and send aac through it, then everything is fine.
but I need it through FFmpeg
, what could be the problem? what are the solutions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
nallion, 2015-08-24
@nallion

Solved with the help of the ffmpeg + liquidsoup bundle butandiol.blogspot.com/2015/08/liquidsoap-rtmp-to-...
There was another option using perl and this module https://gist.github.com/AndyA/5587779
By law meanness, I discovered a simpler option (the second method) after I figured out liquidsoup
Both options are tested and work. I leave a note here if someone needs to stream proprietary AAC + from under Linux.
And the third option, fir-trees, ffmpeg lacked the -content_type audio/aac parameter !!!

A
Armenian Radio, 2015-08-23
@gbg

ffmpeg works crookedly with icecast.
Use gstreamer. It allows you to do the same.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question