Opened 10 months ago

Last modified 10 months ago

#10432 new defect

HEVC corruption when using -c copy to .hevc file

Reported by: acedogblast Owned by:
Priority: normal Component: ffmpeg
Version: git-master Keywords: hevc corrupted
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Remuxing hevc video stream file from mkv to .hevc file using stream copy results in a corrupted output. This corrupted output is visible at timestamp 00:00:21 and at 00:01:30. I have also tried using the hevc_mp4toannexb bitstream filter with the same result.

How to reproduce:
Download test clip: https://drive.google.com/file/d/1kTQ1AnJAnzsAtMB0dIn4N96rxbS3JIcc/view?usp=drive_link

% ffmpeg -i mini_test_clip.mkv -map 0:v:0 -c:v copy output.hevc

The output.hevc file can also be tested with a null output using this command:

ffmpeg -i output.hevc -f null -

This result in hevc decoding errors at the above mentioned timestamps. The test clip itself plays fine without corruption.

Here is a pastebin of the errors with decoding the output.hevc file: https://pastebin.com/QXHzX1wb

Attachments (1)

ffmpeg_error.txt (13.6 KB ) - added by acedogblast 10 months ago.
FFmpeg [hevc] errors.

Download all attachments as: .zip

Change History (2)

by acedogblast, 10 months ago

Attachment: ffmpeg_error.txt added

FFmpeg [hevc] errors.

comment:1 by Balling, 10 months ago

I have also tried using the hevc_mp4toannexb bitstream filter with the same result.

Ha? -c copy to hevc uses hevc_mp4toannexb. As for another way to do it (convert to Annex B) is to use hevc_metadata. See #7799. And yes, it does not happen with hevc_metadata, so this is a duplicate I imagine.

Last edited 10 months ago by Balling (previous) (diff)
Note: See TracTickets for help on using tickets.