[Live-devel] how to stream G711 raw bit stream
Mike Gilorma
mike.gilorma at apogeelabs.com
Mon Jun 2 13:26:50 PDT 2008
I've managed to write a streamer and receiver program based on the test
programs that successfully transmits my audio file from one pc to
another via rtp (unicast). To do this however, I had to modify the
WAVAudioFileSource.cpp file to not complain about my file not being a
wav file. Is there a better way to do this? I've attached my test
programs.
thank for the help,
mike
On Mon, 2008-06-02 at 08:04 -0700, Ross Finlayson wrote:
> >I miss-typed, I meant to say that I couldn't find an example for
> >streaming raw audio.
>
> See "testWAVAudioStreamer", and notice how 'raw' PCM audio is
> streamed (i.e., *without* conversion to u-law). It is streamed as
> the RTP media type "audio/L8" (for 8-bits-per-sample PCM audio), or
> "audio/L16" (for the more common 16-bits-per-sample PCM audio).
>
> Note that if you are streaming 16-bits-per-sample PCM audio which is
> originally in 'little-endian' byte order, then you *must* byte-swap
> it to 'big-endian' order before it gets sent out on the net. Note in
> the code how we do this using the "EndianSwap16" filter.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myAudio.cpp
Type: text/x-c++src
Size: 3613 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080602/be106535/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: myAudioReciever.cpp
Type: text/x-c++src
Size: 2889 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080602/be106535/attachment-0003.bin>
More information about the live-devel
mailing list