<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; "><span>Hi all,</span></div><div style="font-family: arial, helvetica, sans-serif; "><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; "><span>i would like to set the following x264 command line options from within my source code:</span></div><div style="font-family: arial, helvetica, sans-serif; "><span><br></span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">x264 --profile baseline </span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --no-mixed-refs </span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --rc-lookahead 1</span></div><div><span
style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --ref 1</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --subme 1</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --trellis 0</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --weightp 1</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --me dia</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --no-deblock</span></div><div><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --no-8x8dct</span></div><div><span
style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;"> --partitions none</span></div><div style="font-family: arial, helvetica, sans-serif; "><span><br></span></div><div><span style="font-family: arial, helvetica, sans-serif; ">I have tried the </span><span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif;">av_opt_set(c->priv_data, "profile", "baseline", 0);</span> <span style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">But i can't set all the above values.</span></div><div><span style="font-size: 10pt; ">For example the call <span style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; ">ret = av_opt_set(c->priv_data, "me", "dia", 0);</span> gives<span style="font-family: arial, helvetica, sans-serif; font-style: italic; "> </span><span style="font-family: arial, helvetica, sans-serif; ">ret = -1414549496</span>
which i don't know what it means or i don't know how to find the error_code</span></div><div style="font-family: arial, helvetica, sans-serif; "><span style="font-size: 10pt; "><br></span></div><div style="font-family: arial, helvetica, sans-serif; "><span style="font-size: 10pt; ">thanks</span></div><div style="font-family: arial, helvetica, sans-serif; "> </div><div style="font-family: arial, helvetica, sans-serif; "><span style="font-weight: bold; color: rgb(91, 91, 91); font-family: 'comic sans ms'; ">Adreas Polychronopoulos</span><br style="font-weight: bold; color: rgb(0, 0, 255); font-family: 'comic sans ms'; "></div></div></body></html>