Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sending Wav Audio File As RTP Packets

Suppose that I have an wav audio stay on my disk call it MyDummy.wav. I want to send it to a server as an RTP Packet. But As I see there are some timing issues with RTP Packet sending some says 20 ms etc...And how I will determine size of RTP Packet... I really can not figure out how to do many things , and are all things necessary?

Anyone can tell as a Pseudocode how to packetize an audio file as RTP packets and at which timing I should send the audio or provide any sample code which I can investigate?

like image 606
Hippias Minor Avatar asked Nov 11 '16 14:11

Hippias Minor


1 Answers

Please check out the following open source project:

http://www.live555.com/mediaServer/

It supports streaming wav audio files out of the box.

'The "LIVE555 Media Server" is a complete RTSP server application. It can stream several kinds of media file (which must be stored in the current working directory - i.e., the directory from which you launch the application - or a subdirectory.):'

  • A WAV (PCM) audio file (with file name suffix ".wav")
like image 178
Markus Schumann Avatar answered Sep 19 '22 12:09

Markus Schumann