[Live-devel] Streaming G711 audio

Ross Finlayson finlayson at live555.com
Thu Nov 14 08:52:41 PST 2024



> On Nov 15, 2024, at 2:53 AM, d.gordenin at ngslab.ru wrote:
> 
> Hi,
> 
> Now I have a streamer that streams video with AAC audio:
> 
>     audio_sink_ = MPEG4GenericRTPSink::createNew(*env_, audio_rtp_socket_.get(), payload,
>       16000, "audio", "AAC-hbr", "", 1);
> 
> and it works well.
> 
> I need also stream G711U or G711A audio. How to make it?

Try the following:
	SimpleRTPSink::createNew(*env_, audio_rtp_socket_.get(), payload, 8000, “audio”, “PCMU”, 1);
for G711U.  (For G711A, replace “PCMU” with “PCMA”.)


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list