Replies: 1 comment
-
You are missing the conversion from the raw audio to the AAC codec. A good pipeline could be:
Steps 1-4 can be done with Gstreamer and a very simple command line, steps 5-6 are done with Go and gortsplib. https://github.com/aler9/gortsplib/blob/main/examples/client-publish-aac/main.go Find a way to send the raw audio to Gstreamer (i think it can be done with udpsrc), and the example will work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm working on an application where we send raw audio data (in UDP format) from a mic output over a socket to a GO app. (16bit, stereo, 48000hz)
We want to use aacEncoder to encode the raw audio data and send it to an rtsp stream ... playable in VLC
The stream gets to VLC fine, but the audio is obviously formatted wrong and we see errors like;
"faad warning: Maximum number of bitstream elements exceeded"
"faad warning: Gain control not yet implemented"
"faad warning: Bitstream value not allowed by specification"
I assume we are missing headers/formatting data that needs to be added to the raw audio data?
Below is a simplified example showing what we are trying to do.
Thanks for an help/suggestions on how to make this work!
Beta Was this translation helpful? Give feedback.
All reactions