[Live-devel] Missing 44 bytes
Ross Finlayson
finlayson at live555.com
Sun Oct 16 18:51:36 PDT 2016
Just to clarify some more - your ‘missing’ 44 bytes are just the Ethernet header (16 bytes), the IP header (20 bytes), and the UDP header (8 bytes). Specifically breaking down your ‘Wireshark’ output:
> 0000 00 00 00 01 00 06 00 12 14 1b f7 78 00 00 08 00 ...........x....
> 0010 45 00 00 3e 00 00 40 00 40 11 b6 e9 c0 a8 01 6a E..>.. at .@......j
> 0020 c0 a8 01 0b 9c 40 c6 b4 00 2a 81 a3 80 e0 00 00 ..... at ...*......
> 0030 2c a8 de 10 00 00 00 00 67 4d 00 2a 95 a8 1e 00 ,.......gM.*....
> 0040 89 f9 61 00 00 03 00 01 00 00 03 00 02 84 ..a………..
We get:
- Ethernet header:
> 0000 00 00 00 01 00 06 00 12 14 1b f7 78 00 00 08 00 ...........x….
- IP header:
> 0010 45 00 00 3e 00 00 40 00 40 11 b6 e9 c0 a8 01 6a E..>.. at .@......j
> 0020 c0 a8 01 0b
- UDP header:
> 9c 40 c6 b4 00 2a 81 a3
- RTP header (12 bytes):
> 80 e0 00 00 ..... at ...*......
> 0030 2c a8 de 10 00 00 00 00
- RTP payload (i.e., H.264 NAL unit):
> 67 4d 00 2a 95 a8 1e 00 ,.......gM.*....
> 0040 89 f9 61 00 00 03 00 01 00 00 03 00 02 84 ..a………..
Of course, only the last part (the RTP payload - i.e., the H.264 NAL unit) gets delivered to your receive buffer. The OS and our library code handles the rest.
It all looks good to me...
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list