Using repetition code (3,1) on H.264/AVC NAL header and encapsulating using RTP
I'm trying implementing simple repetition code (3,1) on H.264/AVC stream and broadcasting it using RTP. But something goes wrong...
What I did is to take the AVC stream something like this in HEX :
00 00 00 01 67 48 D4 78 ....
and use repetition code (3,1):
00 00 00 00 00 00 00 00 00 01 01 01 67 67 67 48 48 48 D4 D4 D4 78 78 78 ....
As you can see I d开发者_运维技巧id RC(3,1) per BYTE, when I encapsulate using RTP and broadcast it on the receiver side after the packet has been decupsulated by RTSP receiver the received byte sequence is no the same (The loss is 0%). First i receive only half the data transmitted, and i get distortions at 00 00 00 01 (Start Code prefix) and at the blocks adjacent to the start code perfix.
精彩评论