[FFmpeg-trac] #8792(avcodec:new): mpeg2video decode "end mismatch" errors and corrupted image output

FFmpeg trac at avcodec.org
Thu Jul 16 21:52:09 EEST 2020


#8792: mpeg2video decode "end mismatch" errors and corrupted image output
------------------------------------+-----------------------------------
             Reporter:  tmm1        |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Changes (by tmm1):

 * cc: ffmpeg@… (added)


Comment:

 Note that the sample provided is a small ~500kb slice of a much larger
 file, and this issue occurs frequently both in the larger file and in the
 source feed where the file was recorded from.

 For example, in a longer 2 minute sample:

 {{{
 $ ffmpeg -t 120 -i sample.ts -map v -f null -y /dev/null 2>&1 | grep
 concealing | sort | uniq -c | sort -n
   32 [mpeg2video @ 0x7fb2b501c400] concealing 80 DC, 80 AC, 80 MV errors
 in I frame
  194 [mpeg2video @ 0x7fb2b501c400] concealing 80 DC, 80 AC, 80 MV errors
 in P frame
  437 [mpeg2video @ 0x7fb2b501c400] concealing 80 DC, 80 AC, 80 MV errors
 in B frame

 $ ffmpeg -nostats -t 120 -i sample.ts -map v -f null -y /dev/null 2>&1 |
 grep -Eo "end mismatch left=\d+" | sort | uniq -c | sort -n
    1 end mismatch left=41
    1 end mismatch left=42
    1 end mismatch left=49
    1 end mismatch left=51
    1 end mismatch left=54
    1 end mismatch left=56
    1 end mismatch left=58
    1 end mismatch left=61
    1 end mismatch left=63
    8 end mismatch left=13
    8 end mismatch left=15
   10 end mismatch left=12
   11 end mismatch left=14
   12 end mismatch left=8
   13 end mismatch left=10
   13 end mismatch left=11
   17 end mismatch left=9
   24 end mismatch left=21
   25 end mismatch left=19
   25 end mismatch left=20
   25 end mismatch left=30
   29 end mismatch left=18
   30 end mismatch left=16
   31 end mismatch left=22
   32 end mismatch left=31
   34 end mismatch left=23
   36 end mismatch left=27
   38 end mismatch left=25
   38 end mismatch left=29
   42 end mismatch left=28
   47 end mismatch left=24
   52 end mismatch left=26
   54 end mismatch left=17
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8792#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list