]> git.sesse.net Git - pr0n/commitdiff
Do not give --color-primaries= to aomenc; it causes different rendering from the...
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 6 Jun 2021 18:06:22 +0000 (20:06 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 6 Jun 2021 18:06:22 +0000 (20:06 +0200)
perl/Sesse/pr0n/Common.pm

index c85972191ae6835c377bd43166ff8a8bbfe1340a..c9511af8dbc594b21490ddd715d246554d9e5526 100644 (file)
@@ -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);