From: Steinar H. Gunderson Date: Sun, 6 Jun 2021 18:06:22 +0000 (+0200) Subject: Do not give --color-primaries= to aomenc; it causes different rendering from the... X-Git-Url: https://git.sesse.net/?p=pr0n;a=commitdiff_plain;h=2542338bfc131e075eca5829ba96ba5492ddc6f2 Do not give --color-primaries= to aomenc; it causes different rendering from the PNG/JPEG (which presumably assumes BT.709 if nothing else is given). --- diff --git a/perl/Sesse/pr0n/Common.pm b/perl/Sesse/pr0n/Common.pm index c859721..c9511af 100644 --- a/perl/Sesse/pr0n/Common.pm +++ b/perl/Sesse/pr0n/Common.pm @@ -678,7 +678,7 @@ sub make_cache { my $ivf_filename; ($fh, $ivf_filename) = File::Temp::tempfile('tmp.XXXXXXXX', DIR => $dirname, SUFFIX => '.ivf'); close($fh); - system('aomenc', '--quiet', '--cpu-used=0', '--bit-depth=10', '--end-usage=q', '--cq-level=10', '--target-bitrate=0', '--good', '--aq-mode=1', '--color-primaries=bt601', '--matrix-coefficients=bt601', '-o', $ivf_filename, $raw_filename); + system('aomenc', '--quiet', '--cpu-used=0', '--bit-depth=10', '--end-usage=q', '--cq-level=10', '--target-bitrate=0', '--good', '--aq-mode=1', '--matrix-coefficients=bt601', '-o', $ivf_filename, $raw_filename); unlink($raw_filename); system('MP4Box', '-quiet', '-add-image', "$ivf_filename:primary", '-ab', 'avif', '-ab', 'miaf', '-new', $cachename); unlink($ivf_filename);