[Libav-user] [h264] RTP: missed X packets: corrupted images

Rafa Lopez rafaware at gmail.com
Fri Oct 11 08:43:48 CEST 2013


Hi all

I'm using the latest version of libav (2.0.2). I'm writing a simple code
test (attached with .pro file) for camera streaming.

My libav is compiled by me in debian squeeze amd64 (./configure
--prefix=/opt/ffmpeg/ --enable-shared && make && make install)

If my simple code test is compiled against ffmpeg 0.8.15, I have no
problem.

If my simple code test is compiled againts ffmpeg 2.0.2 I have always the
same problem:

[h264 @ 0xbe40a0] RTP: missed 12 packets


this message is repetead hundreds of times with other messages like this:


[h264 @ 0x1d102c0] mb_type 27 in P slice too large at 23 23

[h264 @ 0x1d102c0] error while decoding MB 23 23

[h264 @ 0x1d102c0] Cannot use next picture in error concealment

[h264 @ 0x1d102c0] concealing 2986 DC, 2986 AC, 2986 MV errors in P frame

and  sws_scale give me a corrupted image (attached). I attach the ouput of
my program with AV_LOG_DEBUG

Anyone can help me?

Best Regards

Rafael L.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131011/80e7fcaa/attachment.html>
-------------- next part --------------
[rtsp @ 0x1070000] SDP:
v=0
o=- 0 0 IN IP4 192.168.0.95
s=rtsp://192.168.0.95/profile1
c=IN IP4 0.0.0.0
t=0 0
m=application 0 RTP/AVP 122
a=rtpmap:122 vnd.onvif.metadata/90000
a=control:rtsp://192.168.0.95/profile1/METAEnc
m=audio 0 RTP/AVP 0
a=rtpmap:0 PCMU/8000/1
a=control:rtsp://192.168.0.95/profile1/G711Enc
m=video 0 RTP/AVP 99
a=rtpmap:99 H264/90000
a=fmtp:99 sprop-parameter-sets=Z0LgKdoBQB5puAgIMBAAAA==,aM48gA==;packetization-mode=1;profile-level-id=42e029
a=control:rtsp://192.168.0.95/profile1/AVCESEnc
a=framerate:30.0

[rtsp @ 0x1070000] audio codec set to: pcm_mulaw
[rtsp @ 0x1070000] audio samplerate set to: 8000
[rtsp @ 0x1070000] audio channels set to: 1
[rtsp @ 0x1070000] video codec set to: h264
[NULL @ 0x10740c0] Extradata set to 0x105d840 (size: 28)!
[NULL @ 0x10740c0] RTP Packetization Mode: 1
[NULL @ 0x10740c0] RTP Profile IDC: 42 Profile IOP: e0 Level: 29
[rtsp @ 0x1070000] hello state=0
[h264 @ 0x10740c0] Current profile doesn't provide more RBSP data in PPS, skipping
[rtsp @ 0x1070000] All info found
rfps: 29,333333 0,019482
rfps: 29,416667 0,016022
rfps: 29,500000 0,013077
rfps: 29,583333 0,010647
rfps: 29,666667 0,008732
rfps: 29,666667 0,008732
rfps: 29,750000 0,007333
rfps: 29,750000 0,007333
rfps: 29,833333 0,006448
rfps: 29,916667 0,006080
rfps: 30,000000 0,006226
rfps: 30,083333 0,006888
rfps: 30,166667 0,008065
rfps: 30,250000 0,009757
rfps: 30,250000 0,009757
rfps: 30,333333 0,011964
rfps: 30,333333 0,011964
rfps: 30,416667 0,014687
rfps: 30,500000 0,017925
rfps: 29,970030 0,006114
detected 4 logical cores
0 true 
1 true 
2 true 
3 true 
4 true 
5 true 
6 true 
7 true 
8 true 
9 true 
10 true 
11 true 
12 true 
13 true 
14 true 
15 true 
16 true 
17 true 
18 true 
19 true 
20 true 
21 true 
22 true 
23 true 
24 true 
25 true 
[h264 @ 0x10740c0] RTP: missed 143 packets
[h264 @ 0x10740c0] RTP: missed 662 packets
[h264 @ 0x10740c0] RTP: missed 231 packets
[h264 @ 0x12a2880] out of range intra chroma pred mode at 24 34
[h264 @ 0x12a2880] error while decoding MB 24 34
[h264 @ 0x12a2880] concealing 2105 DC, 2105 AC, 2105 MV errors in I frame
26 true 
[h264 @ 0x10740c0] RTP: missed 16 packets
[h264 @ 0x10d62c0] Frame num gap 9 7
27 true 
[h264 @ 0x10740c0] RTP: missed 15 packets
[h264 @ 0x11a0b20] Frame num gap 11 9
28 true 
[h264 @ 0x11a0f80] Frame num gap 13 11
29 true 
30 true 
[h264 @ 0x10740c0] RTP: missed 39 packets
[h264 @ 0x12a2880] out of range intra chroma pred mode at 5 31
[h264 @ 0x12a2880] error while decoding MB 5 31
[h264 @ 0x12a2880] concealing 2364 DC, 2364 AC, 2364 MV errors in I frame
31 true 
[h264 @ 0x10740c0] RTP: missed 32 packets
[h264 @ 0x10d62c0] Frame num gap 2 0
[h264 @ 0x10d62c0] Cannot use next picture in error concealment
[h264 @ 0x10d62c0] concealing 4188 DC, 4188 AC, 4188 MV errors in P frame
32 true 
[h264 @ 0x10740c0] RTP: missed 26 packets
[h264 @ 0x11a0b20] Frame num gap 4 2
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 2726 DC, 2726 AC, 2726 MV errors in P frame
33 true 
[h264 @ 0x11a0f80] Frame num gap 6 4
34 true 
[h264 @ 0x10740c0] RTP: missed 15 packets
[h264 @ 0x11a1840] Cannot use next picture in error concealment
[h264 @ 0x11a1840] concealing 4457 DC, 4457 AC, 4457 MV errors in P frame
35 true 
36 true 
37 true 
38 true 
39 true 
[h264 @ 0x10740c0] RTP: missed 29 packets
[h264 @ 0x11a1840] Cannot use next picture in error concealment
[h264 @ 0x11a1840] concealing 4038 DC, 4038 AC, 4038 MV errors in P frame
40 true 
[h264 @ 0x10740c0] RTP: missed 25 packets
[h264 @ 0x10740c0] RTP: missed 81 packets
[h264 @ 0x12a2880] Frame num gap 14 12
[h264 @ 0x12a2880] out of range intra chroma pred mode at 9 28
[h264 @ 0x12a2880] error while decoding MB 9 28
[h264 @ 0x12a2880] Cannot use next picture in error concealment
[h264 @ 0x12a2880] concealing 2600 DC, 2600 AC, 2600 MV errors in P frame
41 true 
[h264 @ 0x10740c0] RTP: missed 9 packets
[h264 @ 0x10d62c0] Frame num gap 3 1
[h264 @ 0x10d62c0] no picture ooo
[h264 @ 0x10d62c0] Cannot use next picture in error concealment
[h264 @ 0x10d62c0] concealing 2314 DC, 2314 AC, 2314 MV errors in P frame
42 true 
[h264 @ 0x10740c0] RTP: missed 17 packets
[h264 @ 0x11a0b20] no picture ooo
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 234 DC, 234 AC, 234 MV errors in P frame
43 true 
[h264 @ 0x11a0f80] Frame num gap 6 4
[h264 @ 0x11a0f80] no picture ooo
44 true 
[h264 @ 0x11a1840] no picture ooo
45 true 
[h264 @ 0x10740c0] RTP: missed 19 packets
[h264 @ 0x12a2880] no picture ooo
[h264 @ 0x10d62c0] Frame num gap 10 8
[h264 @ 0x10740c0] RTP: missed 15 packets
[h264 @ 0x10d62c0] no picture ooo
[h264 @ 0x10740c0] RTP: missed 23 packets
[h264 @ 0x11a0b20] no picture ooo
[h264 @ 0x10740c0] RTP: missed 1 packets
[h264 @ 0x11a0f80] no picture ooo
[h264 @ 0x11a1840] Frame num gap 14 12
[h264 @ 0x12a2880] Cannot use next picture in error concealment
[h264 @ 0x12a2880] concealing 952 DC, 952 AC, 952 MV errors in P frame
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 4465 DC, 4465 AC, 4465 MV errors in P frame
[h264 @ 0x11a0f80] cbp too large (1781) at 48 33
[h264 @ 0x11a0f80] error while decoding MB 48 33
[h264 @ 0x11a0f80] Cannot use next picture in error concealment
[h264 @ 0x11a0f80] concealing 2161 DC, 2161 AC, 2161 MV errors in P frame
[h264 @ 0x11a1840] Cannot use next picture in error concealment
[h264 @ 0x11a1840] concealing 258 DC, 258 AC, 258 MV errors in P frame
[h264 @ 0x10740c0] RTP: missed 82 packets
[h264 @ 0x10740c0] RTP: missed 18 packets
[h264 @ 0x10d62c0] Frame num gap 2 0
[h264 @ 0x12a2880] concealing 4069 DC, 4069 AC, 4069 MV errors in I frame
[h264 @ 0x10d62c0] Cannot use next picture in error concealment
[h264 @ 0x10d62c0] concealing 458 DC, 458 AC, 458 MV errors in P frame
[h264 @ 0x11a0b20] Frame num gap 4 2
46 true 
47 true 
48 true 
49 true 
50 true 
51 true 
52 true 
53 true 
54 true 
[h264 @ 0x10740c0] RTP: missed 5 packets
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 1277 DC, 1277 AC, 1277 MV errors in P frame
55 true 
[h264 @ 0x10740c0] RTP: missed 53 packets
[h264 @ 0x10740c0] RTP: missed 19 packets
[h264 @ 0x11a0f80] out of range intra chroma pred mode at 78 17
[h264 @ 0x11a0f80] error while decoding MB 78 17
[h264 @ 0x11a0f80] concealing 3411 DC, 3411 AC, 3411 MV errors in I frame
56 true 
[h264 @ 0x10740c0] RTP: missed 18 packets
[h264 @ 0x11a1840] Frame num gap 2 0
[h264 @ 0x11a1840] out of range intra chroma pred mode at 53 55
[h264 @ 0x11a1840] error while decoding MB 53 55
[h264 @ 0x11a1840] Cannot use next picture in error concealment
[h264 @ 0x11a1840] concealing 396 DC, 396 AC, 396 MV errors in P frame
57 true 
[h264 @ 0x10740c0] RTP: missed 17 packets
[h264 @ 0x12a2880] Frame num gap 4 2
[h264 @ 0x12a2880] Cannot use next picture in error concealment
[h264 @ 0x12a2880] concealing 203 DC, 203 AC, 203 MV errors in P frame
58 true 
[h264 @ 0x10740c0] RTP: missed 16 packets
[h264 @ 0x10d62c0] Frame num gap 6 4
59 true 
[h264 @ 0x11a0b20] Frame num gap 8 6
60 true 
[h264 @ 0x10740c0] RTP: missed 11 packets
[h264 @ 0x11a0f80] Cannot use next picture in error concealment
[h264 @ 0x11a0f80] concealing 3147 DC, 3147 AC, 3147 MV errors in P frame
61 true 
[h264 @ 0x10740c0] RTP: missed 16 packets
62 true 
[h264 @ 0x12a2880] Frame num gap 12 10
63 true 
[h264 @ 0x10740c0] RTP: missed 14 packets
[h264 @ 0x10d62c0] Cannot use next picture in error concealment
[h264 @ 0x10d62c0] concealing 4499 DC, 4499 AC, 4499 MV errors in P frame
64 true 
[h264 @ 0x10740c0] RTP: missed 17 packets
[h264 @ 0x10740c0] RTP: missed 75 packets
[h264 @ 0x11a0b20] out of range intra chroma pred mode at 46 58
[h264 @ 0x11a0b20] error while decoding MB 46 58
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 163 DC, 163 AC, 163 MV errors in P frame
65 true 
[h264 @ 0x10740c0] RTP: missed 25 packets
[h264 @ 0x11a0f80] Frame num gap 3 1
[h264 @ 0x11a0f80] no picture ooo
[h264 @ 0x11a0f80] Cannot use next picture in error concealment
[h264 @ 0x11a0f80] concealing 2289 DC, 2289 AC, 2289 MV errors in P frame
66 true 
[h264 @ 0x10740c0] RTP: missed 3 packets
[h264 @ 0x10740c0] RTP: missed 5 packets
[h264 @ 0x11a1840] Frame num gap 5 3
[h264 @ 0x11a1840] no picture ooo
[h264 @ 0x11a1840] Cannot use next picture in error concealment
[h264 @ 0x11a1840] concealing 732 DC, 732 AC, 732 MV errors in P frame
67 true 
[h264 @ 0x10740c0] RTP: missed 11 packets
[h264 @ 0x12a2880] Frame num gap 7 5
[h264 @ 0x12a2880] no picture ooo
[h264 @ 0x12a2880] Cannot use next picture in error concealment
[h264 @ 0x12a2880] concealing 3008 DC, 3008 AC, 3008 MV errors in P frame
68 true 
[h264 @ 0x10740c0] RTP: missed 25 packets
[h264 @ 0x10d62c0] no picture ooo
[h264 @ 0x10d62c0] Cannot use next picture in error concealment
[h264 @ 0x10d62c0] concealing 2631 DC, 2631 AC, 2631 MV errors in P frame
69 true 
[h264 @ 0x10740c0] RTP: missed 21 packets
[h264 @ 0x11a0b20] Frame num gap 10 8
[h264 @ 0x11a0b20] no picture ooo
[h264 @ 0x11a0f80] Frame num gap 12 10
[h264 @ 0x10740c0] RTP: missed 1 packets
[h264 @ 0x11a0f80] no picture ooo
[h264 @ 0x10740c0] RTP: missed 9 packets
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 1495 DC, 1495 AC, 1495 MV errors in P frame
[h264 @ 0x11a1840] no picture ooo
[h264 @ 0x10740c0] RTP: missed 92 packets
[h264 @ 0x10d62c0] concealing 3494 DC, 3494 AC, 3494 MV errors in I frame
[h264 @ 0x12a2880] Cannot use next picture in error concealment
[h264 @ 0x12a2880] concealing 2360 DC, 2360 AC, 2360 MV errors in P frame
[h264 @ 0x11a1840] Cannot use next picture in error concealment
[h264 @ 0x11a1840] concealing 120 DC, 120 AC, 120 MV errors in P frame
[h264 @ 0x10740c0] RTP: missed 2 packets
[h264 @ 0x11a0b20] Frame num gap 3 1
[h264 @ 0x10740c0] RTP: missed 27 packets
[h264 @ 0x11a0f80] Cannot use next picture in error concealment
[h264 @ 0x11a0f80] concealing 2727 DC, 2727 AC, 2727 MV errors in P frame
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 508 DC, 508 AC, 508 MV errors in P frame
[h264 @ 0x11a1840] Frame num gap 6 4
70 true 
71 true 
72 true 
73 true 
74 true 
75 true 
76 true 
77 true 
78 true 
[h264 @ 0x10740c0] RTP: missed 9 packets
[h264 @ 0x10740c0] RTP: missed 71 packets
[h264 @ 0x11a0f80] out of range intra chroma pred mode at 43 13
[h264 @ 0x11a0f80] error while decoding MB 43 13
[h264 @ 0x11a0f80] concealing 3766 DC, 3766 AC, 3766 MV errors in I frame
79 true 
[h264 @ 0x10740c0] RTP: missed 17 packets
[h264 @ 0x11a1840] Frame num gap 3 1
[h264 @ 0x11a1840] Cannot use next picture in error concealment
[h264 @ 0x11a1840] concealing 155 DC, 155 AC, 155 MV errors in P frame
80 true 
[h264 @ 0x10740c0] RTP: missed 16 packets
[h264 @ 0x12a2880] Frame num gap 5 3
[h264 @ 0x12a2880] Cannot use next picture in error concealment
[h264 @ 0x12a2880] concealing 253 DC, 253 AC, 253 MV errors in P frame
81 true 
[h264 @ 0x10d62c0] Frame num gap 7 5
82 true 
[h264 @ 0x10740c0] RTP: missed 15 packets
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 4451 DC, 4451 AC, 4451 MV errors in P frame
83 true 
84 true 
85 true 
86 true 
87 true 
[h264 @ 0x10740c0] RTP: missed 11 packets
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 3366 DC, 3366 AC, 3366 MV errors in P frame
88 true 
[h264 @ 0x10740c0] RTP: missed 33 packets
[h264 @ 0x10740c0] RTP: missed 63 packets
[h264 @ 0x10740c0] RTP: missed 20 packets
[h264 @ 0x11a0f80] P sub_mb_type 32 out of range at 39 32
[h264 @ 0x11a0f80] error while decoding MB 39 32
[h264 @ 0x11a0f80] Cannot use next picture in error concealment
[h264 @ 0x11a0f80] concealing 2250 DC, 2250 AC, 2250 MV errors in P frame
89 true 
[h264 @ 0x10740c0] RTP: missed 17 packets
[h264 @ 0x11a1840] Frame num gap 4 2
[h264 @ 0x11a1840] no picture ooo
[h264 @ 0x11a1840] mb_type 42 in P slice too large at 68 58
[h264 @ 0x11a1840] error while decoding MB 68 58
[h264 @ 0x11a1840] Cannot use next picture in error concealment
[h264 @ 0x11a1840] concealing 141 DC, 141 AC, 141 MV errors in P frame
90 true 
[h264 @ 0x12a2880] Frame num gap 6 4
[h264 @ 0x12a2880] no picture ooo
91 true 
[h264 @ 0x10740c0] RTP: missed 14 packets
[h264 @ 0x10d62c0] no picture ooo
[h264 @ 0x10d62c0] out of range intra chroma pred mode at 24 4
[h264 @ 0x10d62c0] error while decoding MB 24 4
[h264 @ 0x10d62c0] Cannot use next picture in error concealment
[h264 @ 0x10d62c0] concealing 4505 DC, 4505 AC, 4505 MV errors in P frame
92 true 
[h264 @ 0x10740c0] RTP: missed 1 packets
[h264 @ 0x11a0b20] no picture ooo
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 260 DC, 260 AC, 260 MV errors in P frame
93 true 
[h264 @ 0x10740c0] RTP: missed 18 packets
[h264 @ 0x11a0f80] no picture ooo
[h264 @ 0x11a1840] Frame num gap 11 9
[h264 @ 0x11a1840] no picture ooo
[h264 @ 0x12a2880] no picture ooo
[h264 @ 0x10740c0] RTP: missed 10 packets
[h264 @ 0x10740c0] RTP: missed 29 packets
[h264 @ 0x10740c0] RTP: missed 77 packets
[h264 @ 0x10d62c0] no picture ooo
[h264 @ 0x11a0f80] Cannot use next picture in error concealment
[h264 @ 0x11a0f80] concealing 545 DC, 545 AC, 545 MV errors in P frame
[h264 @ 0x10d62c0] Cannot use next picture in error concealment
[h264 @ 0x10d62c0] concealing 2961 DC, 2961 AC, 2961 MV errors in P frame
[h264 @ 0x11a0b20] mb_type 92 in P slice too large at 53 31
[h264 @ 0x11a0b20] error while decoding MB 53 31
[h264 @ 0x11a0b20] Cannot use next picture in error concealment
[h264 @ 0x11a0b20] concealing 2316 DC, 2316 AC, 2316 MV errors in P frame
[h264 @ 0x10740c0] RTP: missed 16 packets
[h264 @ 0x11a0f80] Frame num gap 3 1
[h264 @ 0x11a0f80] no picture ooo
[h264 @ 0x11a1840] Frame num gap 5 3
[h264 @ 0x11a1840] no picture ooo
[h264 @ 0x12a2880] no picture ooo
[h264 @ 0x10d62c0] no picture ooo
94 true 
[h264 @ 0x11a0b20] no picture ooo
[h264 @ 0x11a0f80] no picture ooo
[h264 @ 0x11a1840] no picture ooo
[h264 @ 0x12a2880] no picture ooo
[h264 @ 0x10d62c0] no picture ooo
[h264 @ 0x11a0b20] no picture ooo
95 true 
96 true 
97 true 
98 true 
99 true 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpegTest.pro
Type: application/octet-stream
Size: 757 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131011/80e7fcaa/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: text/x-c++src
Size: 5275 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131011/80e7fcaa/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 37.jpg
Type: image/jpeg
Size: 11884 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131011/80e7fcaa/attachment.jpg>


More information about the Libav-user mailing list