Opened 2 years ago

Closed 2 years ago

Last modified 19 months ago

#9500 closed defect (fixed)

HEVC encoder settings are not set

Reported by: zboubida Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: libx265
Cc: zboubida Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by zboubida)

Summary of the bug:
Using a git build on both Linux and Windows (N-59465-g4f8494fe5a-static), when encoding a HEVC video to HEVC, the encoder settings are not set in the encoded file (instead, the original values are copied).
Release 4.4.1 does not exhibit this behaviour.

How to reproduce:
The test.mkv video is HEVC encoded with preset=slow and crf=18. out.mkv will use preset fast and crf=22.
(Using mediainfo here to display the encoder settings)

% ffmpeg -i test.mkv -c:v libx265 -preset fast -x265-params crf=22 out.mkv
ffmpeg version N-59465-g4f8494fe5a-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2021 the FFmpeg developers
[ffmpeg output attached]
% mediainfo --Output='Video;%Encoded_Library_Settings%' test.mkv >test.txt
% mediainfo --Output='Video;%Encoded_Library_Settings%' out.mkv >out.txt
% diff test.txt out.txt && echo $?
0
% mediainfo --Output='Video;%Encoded_Library_Settings%' out.mkv | grep -Eo 'crf=[0-9]+'
crf=18

Same happens in 10bit HEVC. When transcoding from AVC to HEVC, it seems that the encoder settings are added properly.

Attachments (2)

ffmpeg-20211107-091426.log (21.2 KB ) - added by zboubida 2 years ago.
ffmpeg output log
test.mkv (118.0 KB ) - added by zboubida 2 years ago.
test file

Download all attachments as: .zip

Change History (7)

by zboubida, 2 years ago

Attachment: ffmpeg-20211107-091426.log added

ffmpeg output log

by zboubida, 2 years ago

Attachment: test.mkv added

test file

comment:1 by zboubida, 2 years ago

Description: modified (diff)

comment:2 by mkver, 2 years ago

Reproduced by developer: set
Status: newopen

It even forwards an x264 SEI into the first HEVC bitstream if the frames fed to the decoder had them.

Last edited 2 years ago by mkver (previous) (diff)

comment:3 by zboubida, 2 years ago

I've just tried with release 5.0 and it seems to be working properly. I can't reproduce the bug anymore so I guess it has been fixed already.

comment:5 by Carl Eugen Hoyos, 19 months ago

Component: undeterminedavcodec
Keywords: libx265 added; encoder settings removed
Note: See TracTickets for help on using tickets.