[Live-devel] How to implement Opus live audio
Ross Finlayson
finlayson at live555.com
Fri Jun 2 01:18:33 PDT 2017
> I'm trying to stream Opus-encoded live audio via live555 from my server and I'm a bit lost in how to implement that.
Fortunately the RTP payload format for Opus audio is very simple - so you can use the existing “SimpleRTPSink” class for this - without modification.
When you are creating your “RTPSink” (subclass) object, just call:
SimpleRTPSink::createNew(envir(), rtpGroupsock, rtpPayloadTypeIfDynamic, 48000, "audio", "OPUS", 2, False);
(The reason for the final ‘False’ is that only one Opus ‘packet’ is allowed in each RTP packet.)
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list