[FFmpeg-devel] Frame Loss

Richard Haywood richard
Thu Feb 7 09:28:51 CET 2008

I know this is probably the wrong place to ask, but I wondered if you
might be able to help or at least point me in the right direction.
I have managed to stream using ffmpeg to ffmpeg a h.264 video using RTP.
I am trying to see what would happen when RTP packets are lost, but to
be able to do this I need to have the same number of frames in both
the sent file and the received file.  When there is no loss this works
fine, however when there is even one packet lost then the received
file can be shorter.
When I run ./ffmpeg -y -v 2 -i test.sdp -vcodec libx264 -f avi
outsingleloss.avi I get the output below - however it does not say
when a frame has been dropped, but on manually reviewing the video a
loss occurs at frame 971.  Finding one loss manually is fine, however
if there were a way to get the output from FFMPEG that would be much
better as if there are two losses then I have to play a guessing game
as to where they occurred.
Many Thanks

[libx264 @ 0x84d0a10]frame= 951 QP=30 NAL=2 Slice:P Poc:6   I:384
P:12   SKIP:0    size=3442 bytes SSIM Y:0.96972
[libx264 @ 0x84d0a10]frame= 952 QP=27 NAL=2 Slice:P Poc:8   I:22
P:194  SKIP:180  size=841 bytes SSIM Y:0.97065
[libx264 @ 0x84d0a10]frame= 953 QP=27 NAL=2 Slice:P Poc:10  I:18
P:198  SKIP:180  size=1052 bytes SSIM Y:0.97155
[libx264 @ 0x84d0a10]frame= 954 QP=27 NAL=2 Slice:P Poc:12  I:19
P:187  SKIP:190  size=985 bytes SSIM Y:0.97087
[libx264 @ 0x84d0a10]frame= 955 QP=27 NAL=2 Slice:P Poc:14  I:32
P:173  SKIP:191  size=979 bytes SSIM Y:0.97104
[libx264 @ 0x84d0a10]frame= 956 QP=28 NAL=2 Slice:P Poc:16  I:55
P:178  SKIP:163  size=956 bytes SSIM Y:0.96871
[libx264 @ 0x84d0a10]frame= 957 QP=28 NAL=2 Slice:P Poc:18  I:31
P:173  SKIP:192  size=1025 bytes SSIM Y:0.96792
[libx264 @ 0x84d0a10]frame= 958 QP=28 NAL=2 Slice:P Poc:20  I:34
P:166  SKIP:196  size=1052 bytes SSIM Y:0.96694
[libx264 @ 0x84d0a10]frame= 959 QP=28 NAL=2 Slice:P Poc:22  I:58
P:184  SKIP:154  size=1150 bytes SSIM Y:0.96653
[libx264 @ 0x84d0a10]frame= 960 QP=25 NAL=3 Slice:I Poc:0   I:396  P:0
   SKIP:0    size=4254 bytes SSIM Y:0.98070
[libx264 @ 0x84d0a10]frame= 961 QP=28 NAL=2 Slice:P Poc:2   I:26
P:193  SKIP:177  size=1027 bytes SSIM Y:0.97519
frame=  962 fps= 27 q=28.0 size=    1182kB time=38.5 bitrate=
251.6kbits/s dup=0 drop=0    ^M[libx264 @ 0x84d0a10]frame= 962 QP=29
NAL=2 Slice:P Poc:4   I:39   P:192  SKIP:165  size=1005 bytes SSIM
[libx264 @ 0x84d0a10]frame= 963 QP=29 NAL=2 Slice:P Poc:6   I:50
P:176  SKIP:170  size=946 bytes SSIM Y:0.96869
[libx264 @ 0x84d0a10]frame= 964 QP=28 NAL=2 Slice:P Poc:8   I:39
P:202  SKIP:155  size=1159 bytes SSIM Y:0.96912
[libx264 @ 0x84d0a10]frame= 965 QP=28 NAL=2 Slice:P Poc:10  I:49
P:185  SKIP:162  size=1094 bytes SSIM Y:0.97039
[libx264 @ 0x84d0a10]frame= 966 QP=28 NAL=2 Slice:P Poc:12  I:65
P:192  SKIP:139  size=1088 bytes SSIM Y:0.96978
[libx264 @ 0x84d0a10]frame= 967 QP=28 NAL=2 Slice:P Poc:14  I:43
P:214  SKIP:139  size=1023 bytes SSIM Y:0.96906
[libx264 @ 0x84d0a10]frame= 968 QP=28 NAL=2 Slice:P Poc:16  I:44
P:209  SKIP:143  size=1010 bytes SSIM Y:0.96944
[libx264 @ 0x84d0a10]frame= 969 QP=27 NAL=2 Slice:P Poc:18  I:62
P:205  SKIP:129  size=1189 bytes SSIM Y:0.97142
[libx264 @ 0x84d0a10]frame= 970 QP=29 NAL=2 Slice:P Poc:20  I:65
P:178  SKIP:153  size=1116 bytes SSIM Y:0.96556
[libx264 @ 0x84d0a10]frame= 971 QP=29 NAL=2 Slice:P Poc:22  I:49
P:189  SKIP:158  size=1263 bytes SSIM Y:0.96398
[libx264 @ 0x84d0a10]frame= 972 QP=26 NAL=3 Slice:I Poc:0   I:396  P:0
   SKIP:0    size=3511 bytes SSIM Y:0.97676
[libx264 @ 0x84d0a10]frame= 973 QP=31 NAL=2 Slice:P Poc:2   I:132
P:167  SKIP:97   size=1569 bytes SSIM Y:0.95573
frame=  974 fps= 27 q=31.0 size=    1198kB time=39.0 bitrate=
251.8kbits/s dup=0 drop=0    ^M[libx264 @ 0x84d0a10]frame= 974 QP=28
NAL=2 Slice:P Poc:4   I:41   P:205  SKIP:150  size=1400 bytes SSIM
[libx264 @ 0x84d0a10]frame= 975 QP=28 NAL=2 Slice:P Poc:6   I:48
P:188  SKIP:160  size=1103 bytes SSIM Y:0.96414
[libx264 @ 0x84d0a10]frame= 976 QP=28 NAL=2 Slice:P Poc:8   I:68
P:181  SKIP:147  size=1029 bytes SSIM Y:0.96645
[libx264 @ 0x84d0a10]frame= 977 QP=29 NAL=2 Slice:P Poc:10  I:66
P:175  SKIP:155  size=1138 bytes SSIM Y:0.96217
[libx264 @ 0x84d0a10]frame= 978 QP=28 NAL=2 Slice:P Poc:12  I:38
P:212  SKIP:146  size=1207 bytes SSIM Y:0.96357
[libx264 @ 0x84d0a10]frame= 979 QP=28 NAL=2 Slice:P Poc:14  I:28
P:205  SKIP:163  size=1062 bytes SSIM Y:0.96354
[libx264 @ 0x84d0a10]frame= 980 QP=28 NAL=2 Slice:P Poc:16  I:73
P:186  SKIP:137  size=1181 bytes SSIM Y:0.96596
[libx264 @ 0x84d0a10]frame= 981 QP=28 NAL=2 Slice:P Poc:18  I:58
P:195  SKIP:143  size=1032 bytes SSIM Y:0.96346
[libx264 @ 0x84d0a10]frame= 982 QP=27 NAL=2 Slice:P Poc:20  I:32
P:236  SKIP:128  size=1091 bytes SSIM Y:0.96533
[libx264 @ 0x84d0a10]frame= 983 QP=28 NAL=2 Slice:P Poc:22  I:30
P:207  SKIP:159  size=969 bytes SSIM Y:0.96321
[libx264 @ 0x84d0a10]frame= 984 QP=26 NAL=3 Slice:I Poc:0   I:396  P:0
   SKIP:0    size=4086 bytes SSIM Y:0.97487
[libx264 @ 0x84d0a10]frame= 985 QP=28 NAL=2 Slice:P Poc:2   I:40
P:189  SKIP:167  size=923 bytes SSIM Y:0.97039

More information about the ffmpeg-devel mailing list