View Full Version : x264 via the cmdline?
WalterK
25th January 2007, 02:49
I have been trying to use x264 via the cmdline.
It was taken from the latest svn , compiled then compiled with mplayer and mencoder.
But i keep getting invalid width and height error even though i set a width and height of 640 x 480.
I think something is wrong with the svn version but i can't be sure.
alec_robertson
25th January 2007, 05:39
Could you post your complete command line, the output messages and some information on the input file you want to encode?
WalterK
25th January 2007, 05:57
ok the source file is already 640 x
480
And this is what i get when i input
mencoder test_dv.avi -ovc x264 -x264encopts bitrate=800 -o test.avi
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
x264 [error]: invalid width x height (0x640)
x264_encoder_open failed.
FATAL: Cannot initialize video driver.
nm
25th January 2007, 16:07
The reason for this problem might be that you have compiled MEncoder with an old version of libx264 that was lurking somewhere in your system. Locate and remove that libx264, install your own fresh one from SVN and rebuild MEncoder.
Someone had a similar problem here: http://www.via.ecp.fr/via/ml/x264-devel/2007-01/msg00012.html
WalterK
26th January 2007, 14:03
Yes thanks for the info nm.
Who knew that i needed two adjustments to get mencoder and x264 to play well together.
Working now.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.