Opened 3 months ago

Last modified 3 months ago

#9500 open defect

HEVC encoder settings are not set

Reported by: zboubida Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: encoder settings
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 3 months ago.
ffmpeg output log
test.mkv (118.0 KB ) - added by zboubida 3 months ago.
test file

Download all attachments as: .zip

Change History (4)

by zboubida, 3 months ago

Attachment: ffmpeg-20211107-091426.log added

ffmpeg output log

by zboubida, 3 months ago

Attachment: test.mkv added

test file

comment:1 by zboubida, 3 months ago

Description: modified (diff)

comment:2 by mkver, 3 months 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 3 months ago by mkver (previous) (diff)
Note: See TracTickets for help on using tickets.