Write MPEG4 out of a RTP Stream

posted in Encoding, viewed 2161 times


I am trying to write a C++ Application which converts my Raw RTP stream data to a MPEG4 conform MP4 file.

The data itself is streamed by an IP Camera ( just video stream, no audio ) and recorded by a separate Hardware. Now after recording I can access all the data, meaning the RTSP Requests and Replies ( so I have also access to the SDP ). Now I actually just don’t know how to get my raw data appropriately into an MP4. I know that I need the config line from the SDP as header and also some other bytes.

Also I don’t know if I can dump all the RTP payload data ( which should be the MPEG4 Frames ) just into the mp4 file after I have written the header. Also , do I need to write some kind of tail after writing all the frames into the file?
I just don’t know any further, maybe you can help.


03-07-2012 05:22 AM
1 posts

i think forum.doom9.org would be more suited for these kinds of questions reply

03-07-2012 10:23 AM


Your reply
Your name
or log in
Verify you're human

By submitting this form you agree to our posting rules,
privacy policy and our disclaimer.