VT: ARTPWriter: Enhanced ARTPWriter as a RTP output
Enhances ARTPWriter that sends RTP packets to network.
Code modification as per RFC 3550, RFC 1889, RFC 894.
1. Interfaces are added to provide local-ip and remote-ip address to ARTPWriter.
2. By the RFC 3550, RTP protocol is run on top of UDP typically.
2-1. A port number for RTP is EVEN.
3. By the RFC 3550, RTCP protocol exists with RTP as coupled one.
3-1. By the RFC 1889, a port number for RTCP is the next ODD number of RTP port.
4. SPS/PPS are sent for every I-frame.
Basically encoder generates SPS/PPS at the first video stream.
But those can be lost because RTP is run on UDP.
So those are sent for every I-frame, and this is common action for RTP.
5. By the RFC 894, the maximum length of an IP datagram sent over an Ethernet is 1500 byte.
A packet would be fragmented if its size overs.
So some margin is needed for various cases. (various headers for UDP, RTP, encryption, etc...)
Change-Id: I34e18ed5ada6b51be3645eb8f725a6c16fe4878d
Signed-off-by: Kim Sungyeon <sy85.kim@samsung.com>
Signed-off-by: Byeongjo Park <bjo.park@samsung.com>
Merged-in: I34e18ed5ada6b51be3645eb8f725a6c16fe4878d
3 files changed