View Single Post
Old 7th February 2019, 11:23   #1446  |  Link
kanaka
Registered User
 
Join Date: Jan 2019
Posts: 13
Quote:
Originally Posted by TD-Linux View Post
Aha, looks like 601 vs 709 matrix. Although JPEG is normally sRGB primaries, it uses what is basically a full-range 601 matrix. So if your sources are JPEG, a 601 matrix makes the most sense.
Source is png (https://personal.sron.nl/~pault/imag...test_small.png)
and there is commands from encode.ST.sh
Code:
./bins/ffmpeg -r 1 -y -hide_banner -loglevel fatal -i "$1" -vf scale=out_color_matrix=bt709:flags=lanczos+accurate_rnd+bitexact+full_chroma_int+full_chroma_inp,format=yuv420p10le -strict -1 "temp/orig_$filename.y4m"
./bins/aomenc --threads=4 -v --cpu-used=4 --end-usage=q --cq-level=$quality --sharpness=7 --bit-depth=10 --full-still-picture-hdr --color-primaries=bt709 --transfer-characteristics=bt709 --matrix-coefficients=bt709 --ivf -o "encoded/$filename.ivf" "temp/orig_$filename.y4m"
//edit: I had older version of toolkit. New toolkit use yuv420p and works ok.

Last edited by kanaka; 7th February 2019 at 11:34.
kanaka is offline   Reply With Quote