Streaming audio to an Icecast server

shaheenm82
Posts: 1
Joined: Tue Apr 09, 2024 1:15 pm

Streaming audio to an Icecast server

Postby shaheenm82 » Tue May 07, 2024 11:52 am

I am using a LyraT board to capture audio from the mic and convert this into ogg/opus and then stream this up to an icecast server.

I have used the pipeline_raw_http example as the base to test this and can successfully capture audio and encode the audio. I am using the http streamer in the STREAM WRITER configuration have connected it to my icecast server with the desired mount point for the stream i wish to create.

I am unable to successfully stream data to the icecast server. Has anyone successfully streamed audio from an ESP32 to an icecast server?

When capturing the network traffic using pcap, I see that the ESP32 sends a PUT request to begin the streaming connection to the icecast server. The http streamer sends audio data to the server before the server responds to the initial connection. I suspect that this is the reason that the stream is not available on the icecast server. Is there a way to stall the transmission of the audio data until the server responds to the initial PUT request?

Who is online

Users browsing this forum: No registered users and 27 guests