Pranay Kumar
Pranay Kumar

Reputation: 11

FFMPEG Audio streaming over RTP

I have a encoded Audio File(.aac file). I want to stream this file over RTP using FFMPEG without any transcoding. I am using following command :

ffmpeg -i input_file.aac -re -vn -acodec copy -strict experimental -f rtp rtp://225.0.0.1:1234

But above command gives below error:

AAC with no global headers is currently not supported

Can anyone point out any corrections ?

Thanks for the help.

Upvotes: 1

Views: 3658

Answers (1)

Mike
Mike

Reputation: 582

The warning means it wants global headers to be set on your audio stream, like this:

ffmpeg -re -i input_file.aac -c:a copy -flags:a +global_headers -f rtp rtp://225.0.0.1:1234

Upvotes: 1

Related Questions