I'd like to send an RTP stream of g729
audio data using ffmpeg
. I have an existing file of g729
audio and would like to wrap it with RTP headers and send it over the network. Something like this:
$ ffmpeg -re -i encoded_audio.g729 -acodec copy -f rtp rtp://<address>:<port>
This fails with the message:
[rtp @ 0x55f389dea040] Unsupported codec g729
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Last message repeated 1 times
I realize that ffmpeg
decodes but doesn't encode g729, but I thought that the point of the copy
codec was that the encode/decode process was entirely skipped.
Is there something I'm missing?