View Single Post
Old 9th August 2010, 13:01   #11  |  Link
kemuri-_9
Compiling Encoder
 
kemuri-_9's Avatar
 
Join Date: Jan 2007
Posts: 1,348
that error is not even related to crop.

[Edit]
the problem is related to your input colorspace, you obviously some colorspace that is unrecognized by the rest of the filtering system and so it is choosing to convert it to the default i420 one.
but input source has non mod2 widths and this is incompatible with i420, so the error occurs.
[/Edit]

but anyways crop works as intended:
Code:
$ ./x264 -o NUL ../foreman_cif_352x288.yuv --vf crop:1,0,1,0
yuv [info]: 352x288p 0:0 @ 25/1 fps (cfr)
crop [error]: left crop value `1' is not a multiple of 2

$ ./x264 -o NUL ../foreman_cif_352x288.yuv --vf resize:csp=bgr/crop:1,0,1,0/resize:csp=i420                                                                                                                                                 
yuv [info]: 352x288p 0:0 @ 25/1 fps (cfr)
resize [warning]: converting from yuv420p to bgr24
crop [info]: cropping to 350x288
resize [warning]: converting from bgr24 to yuv420p
....
encoded 300 frames, 150.00 fps, 426.35 kb/s
__________________
custom x264 builds & patches | F@H | My Specs

Last edited by kemuri-_9; 9th August 2010 at 13:07.
kemuri-_9 is offline   Reply With Quote