Hi,
Thank you firstfire for replying.
I am using vlc for UDP streaming. All the information is encapsulated in MPEG TS. I use iptables to get all the UDP packets from server to my buffer first. I think that libipq remove all headers (IP,UDP,TCP) and now payload contains MPEG TS header and data. Video packet = mpeg ts + data.
As I work with Ubuntu and execute code, I got error: "Segmentation fault (core dumped)" instantly. I will try to debug it and see where is the problem.
EDIT: I was wrong. This is part of payload of one packet (no headers removed at all
):
IP header
[45 00 05 40 87 9b 00 00 80] UDP
[11] 2b 96 SRC adr
[c0 a8 00 65] c0 a8 00 c6 04 0e 04 d2 05 2c 5c 0f 47 00 e7 1c cc 9b 75
15 9f 70 4d 3c 0f 1e cc cc cd 45 49 a4 64 50 e4 aa e4 6....
I know that I send MPEG 4 but cant find value 00 00 01 B6. So this value can be incorrect.
EDIT 2: I do not use .mp4 container. Information in first post was misleading.
EDIT 3: 45 00 05 40 87 95 00 00 80 11 2b 9c c0 a8 00 65 c0 a8 00 c6 04 0e 04 d2 05 2c ee f3 MPEG TS sync byte
47 00 e7 and e7 = 1110 0111. From
MPEG Transport stream
it say that there is only adaptation field and no payload. So the problem can be here.