Opened 10 years ago

Closed 10 years ago

#3385 closed defect (fixed)

hevc: decoding gives duplicated frame

Reported by: Maik Merten 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 Maik Merten 10 years ago.
Decoding log
encode.txt (8.1 KB ) - added by Maik Merten 10 years ago.
Encoding log
irene.hevc (511.7 KB ) - added by Maik Merten 10 years ago.
HEVC stream
irene2.png (120.8 KB ) - added by Maik Merten 10 years ago.
Second decoded frame
irene3.png (120.8 KB ) - added by Maik Merten 10 years ago.
Third decoded frame

Download all attachments as: .zip

Change History (7)

by Maik Merten, 10 years ago

Attachment: decode.txt added

Decoding log

by Maik Merten, 10 years ago

Attachment: encode.txt added

Encoding log

by Maik Merten, 10 years ago

Attachment: irene.hevc added

HEVC stream

by Maik Merten, 10 years ago

Attachment: irene2.png added

Second decoded frame

by Maik Merten, 10 years ago

Attachment: irene3.png added

Third decoded frame

comment:1 by Carl Eugen Hoyos, 10 years ago

Keywords: hevc added
Status: newopen
Version: unspecifiedgit-master

Work-around is to use -vsync 0

comment:2 by Michael Niedermayer, 10 years ago

Reproduced by developer: set
Resolution: fixed
Status: openclosed
Note: See TracTickets for help on using tickets.