Log in

View Full Version : x265 Zones Error


AlucardSama04
30th August 2019, 14:49
Hi! I'm a newbie into x265. I'm trying to encode a movie with x265 but I get:

x265 [error]: invalid argument: zones = 885,7375,crf=15.4/7418,7758,crf=15.5/7840,8833,crf=15.5/13454,14600,crf=15.4/14780,16178,crf=15.5/18976,20296,crf=15.4/20596,25686,crf=15.4/26019,27543,crf=15.4/27544,28812,crf=14.5/29917,31788,crf=14.5/33196,34873,crf=14.4/35129,35257,crf=14.5/35325,35677,crf=14.4/42955,43000,crf=14.4/43421,43550,crf=14.4/43601,43640,crf=14.7/43695,43721,crf=13.5/43759,43801,crf=14.5/47305,47488,crf=14.5/47791,47932,crf=13.5/48093,48162,crf=12/51500,61509,crf=14.5/61510,62023,crf=10.5/62040,62642,crf=14.5/69231,69439,crf=10.5/69641,69712,crf=9/70635,71318,crf=14.4/77908,86900,crf=13.5/87544,87639,crf=13.5/98145,101037,crf=14.4/101038,101270,crf=12.5/101271,102364,crf=14.4/115378,115524,crf=9/115750,116422,crf=14.5/116727,116750,crf=8/116905,117065,crf=14.4/118866,119071,crf=14.4/119703,119869,crf=14.4/120894,121089,crf=14.4/122897,122991,crf=12/125342,125401,crf=12/130023,130158,crf=13/130262,130443,crf=13/130609,131038,crf=13.5/131039,131102,crf=11.5/131120,131257,crf=11.5/131295,131420,crf=13.5/132120,132341,crf=13.5/132450,132539,crf=13.5/137693,137784,crf=12/137819,137858,crf=12/137886,138024,crf=12/138342,138581,crf=12/138700,138782,crf=12.5/138839,138976,crf=12.5/140114,140384,crf=12/140584,140662,crf=12/140726,140974,crf=11/143958,143997,crf=14.5/144183,144258,crf=14.5/144259,144392,crf=12.5/144393,144958,crf=14.5/145522,145731,crf=12.5/145732,145842,crf=11/146456,146477,crf=12.5/146613,147030,crf=12/147064,147135,crf=11/153917,154980,crf=13.5/154981,155089,crf=11/155090,155708,crf=11.5/155825,155932,crf=11.5/156336,158474,crf=13.5/160042,161728,crf=14.5/161730,168190,crf=16


Encoding settings:

vspipe -y split.vpy - | x265 -F 16 --pools "" --hevc-aq --qp-adaptation-range 2 --limit-modes --open-gop --cbqpoffs -4 --crqpoffs -4 --no-rskip --no-tskip --keyint 240 --no-cutree --ref 16 --bframes 16 --bframe-bias 0 --b-pyramid --b-adapt 2 --no-sao --no-sao-non-deblock --aq-mode 3 --aq-strength 0.85 --deblock -2:-2 --ipratio 1.40 --pbratio 1.30 --tu-intra-depth 2 --tu-inter-depth 2 --me 2 --wpp --subme 5 --rc-lookahead 48 --ctu 64 --crf 14 --qcomp 0.70 --b-pyramid --merange 48 --weightp --weightb --rd 6 --psy-rd 1.05 --psy-rdoq 0.50 --rdoq-level 2 --psy-rdoq 2 --sar 1:1 --info --colorprim bt709 --output-depth 8 --transfer bt709 --colormatrix bt709 --zones 885,7375,crf=15.4/7418,7758,crf=15.5/7840,8833,crf=15.5/13454,14600,crf=15.4/14780,16178,crf=15.5/18976,20296,crf=15.4/20596,25686,crf=15.4/26019,27543,crf=15.4/27544,28812,crf=14.5/29917,31788,crf=14.5/33196,34873,crf=14.4/35129,35257,crf=14.5/35325,35677,crf=14.4/42955,43000,crf=14.4/43421,43550,crf=14.4/43601,43640,crf=14.7/43695,43721,crf=13.5/43759,43801,crf=14.5/47305,47488,crf=14.5/47791,47932,crf=13.5/48093,48162,crf=12/51500,61509,crf=14.5/61510,62023,crf=10.5/62040,62642,crf=14.5/69231,69439,crf=10.5/69641,69712,crf=9/70635,71318,crf=14.4/77908,86900,crf=13.5/87544,87639,crf=13.5/98145,101037,crf=14.4/101038,101270,crf=12.5/101271,102364,crf=14.4/115378,115524,crf=9/115750,116422,crf=14.5/116727,116750,crf=8/116905,117065,crf=14.4/118866,119071,crf=14.4/119703,119869,crf=14.4/120894,121089,crf=14.4/122897,122991,crf=12/125342,125401,crf=12/130023,130158,crf=13/130262,130443,crf=13/130609,131038,crf=13.5/131039,131102,crf=11.5/131120,131257,crf=11.5/131295,131420,crf=13.5/132120,132341,crf=13.5/132450,132539,crf=13.5/137693,137784,crf=12/137819,137858,crf=12/137886,138024,crf=12/138342,138581,crf=12/138700,138782,crf=12.5/138839,138976,crf=12.5/140114,140384,crf=12/140584,140662,crf=12/140726,140974,crf=11/143958,143997,crf=14.5/144183,144258,crf=14.5/144259,144392,crf=12.5/144393,144958,crf=14.5/145522,145731,crf=12.5/145732,145842,crf=11/146456,146477,crf=12.5/146613,147030,crf=12/147064,147135,crf=11/153917,154980,crf=13.5/154981,155089,crf=11/155090,155708,crf=11.5/155825,155932,crf=11.5/156336,158474,crf=13.5/160042,161728,crf=14.5/161730,168190,crf=16 --output "split.hevc" --csv-log-level 2 --csv "log.txt" --y4m -


P.S: On x264 zones are working

Selur
30th August 2019, 21:07
at least the documentation (https://x265.readthedocs.io/en/default/cli.html?highlight=zones#cmdoption-zones)

--zones <zone0>/<zone1>/...
Tweak the bitrate of regions of the video. Each zone takes the form:
<start frame>,<end frame>,<option> where <option> is either q=<integer> (force QP) or b=<float> (bitrate multiplier).
If zones overlap, whichever comes later in the list takes precedence. Default none

--zonefile <filename>
Specify a text file which contains the boundaries of the zones where each of zones are configurable. The format of each line is:
<frame number> <options to be configured>
The frame number indicates the beginning of a zone. The options following this is applied until another zone begins. The reconfigurable options can be spcified as –<feature name> <feature value>
doesn't mention 'crf', so my guess it isn't supported, the way you want it.
-> but it seems using '--zonefile' it might be possible to do what you want