Opened 6 years ago

Closed 6 years ago

#3385 closed defect (fixed)

hevc: decoding gives duplicated frame

Reported by: maikmerten Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: hevc
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Summary of the bug:

Decoding HEVC content appears to generate one more frame than actually contained in the HEVC file. For instance, http://media.xiph.org/video/derf/y4m/sign_irene_cif.y4m has 540 frames and when encoding to HEVC (either with x265 or ffmpeg using libx265) 540 frames are reported to have been encoded.

When decoding (either with YUV4MPEG or PNG) I get 541 frames -- the third frame is a copy of the second frame. When analyzing the stream in http://codecvisa.codecian.com/ I can confirm that the second and third frame are actually different, so this appears to be a decoder artifact.

How to reproduce:


encoding:
---------

% ffmpeg -y -v 9 -loglevel 99 -i sign_irene_cif.y4m irene.hevc 2> encode.txt
ffmpeg version N-60615-gcbf09bb Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb 14 2014 15:40:32 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)

<log attached>
<created HEVC file attached>

decoding:
---------

% ffmpeg -v 9 -loglevel 99 -i irene.hevc -f image2 irene%d.png 2> decode.txt
ffmpeg version N-60615-gcbf09bb Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb 14 2014 15:40:32 with gcc 4.8 (Ubuntu/Linaro 4.8.1-10ubuntu9)

<log attached>

Attachments (5)

decode.txt (139.9 KB) - added by maikmerten 6 years ago.
Decoding log
encode.txt (8.1 KB) - added by maikmerten 6 years ago.
Encoding log
irene.hevc (511.7 KB) - added by maikmerten 6 years ago.
HEVC stream
irene2.png (120.8 KB) - added by maikmerten 6 years ago.
Second decoded frame
irene3.png (120.8 KB) - added by maikmerten 6 years ago.
Third decoded frame

Download all attachments as: .zip

Change History (7)

Changed 6 years ago by maikmerten

Decoding log

Changed 6 years ago by maikmerten

Encoding log

Changed 6 years ago by maikmerten

HEVC stream

Changed 6 years ago by maikmerten

Second decoded frame

Changed 6 years ago by maikmerten

Third decoded frame

comment:1 Changed 6 years ago by cehoyos

  • Keywords hevc added
  • Status changed from new to open
  • Version changed from unspecified to git-master

Work-around is to use -vsync 0

comment:2 Changed 6 years ago by michael

  • Reproduced by developer set
  • Resolution set to fixed
  • Status changed from open to closed
Note: See TracTickets for help on using tickets.