[FFmpeg-trac] #4258(avcodec:new): HEVC Decoder Hang in Multi-threaded Slice Type Decoding

FFmpeg trac at avcodec.org
Thu Sep 10 22:31:15 CEST 2015

#4258: HEVC Decoder Hang in Multi-threaded Slice Type Decoding
             Reporter:  jlsantiago0    |                    Owner:
                 Type:  defect         |                   Status:  new
             Priority:  important      |                Component:  avcodec
              Version:  git-master     |               Resolution:
             Keywords:  hevc deadlock  |               Blocked By:
             Blocking:                 |  Reproduced by developer:  0
Analyzed by developer:  0              |

Comment (by jlsantiago0):

 I have a second method to reproduce the issue very quickly. Usually less
 than a minute. This method involves streaming a sufficiently corrupted
 stream to FFMPEG to make it deadlock much faster in the same way. Note,
 the file itself is not really corrupt. It is a network packet capture of
 an HEVC transport stream that i feed to FFMPEG as input. FFMPEG is fooled
 enough to detect it as an HEVC file and then stream it to the decoder. The
 file is located at
 garbage.dat . This file is much smaller <20MB. You can perform the same
 test as above with this file:

 $ while true ; do \
   ffmpeg -re -i ./ffmpeg-issue-4258-test-case2-short-garbage.dat \
      -codec copy -f mpegts udp:// \
 ; done

 Then decode the stream via:

 $ ffmpeg_g -vcodec hevc -threads 12 -thread_type slice \
   -i udp://:12345 -f null /dev/null

Ticket URL: <https://trac.ffmpeg.org/ticket/4258#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list