Log in

View Full Version : CLI questions


merlinmage
23rd January 2011, 19:58
Hello there,
I wanted to crop and resize my video file (1080p BDMV) with x264's CLI and filtering system, not AviSynth.

So I read through the help file of x264 and "produced" a CLI like this:

--video-filter crop:0,140,0,-140/resize:1920,800,spline

I get this error after indexing with FFMS2:

ffms [info]: 1920x1080p 1:1 @ 24000/1001 fps (vfr)
crop [info]: cropping to 1920x800
resize [error]: invalid sar `spline'

What is the SAR in this case or what is it generally and what is wrong not using it?Since the wiki told me that I have several choices how I can resize the video.

kemuri-_9
23rd January 2011, 20:11
A) your resize should be resize:1920,800,method=spline
B) your resize does nothing as the video is already 1920x800 as a result of the crop.
C) x264cli's crop does not accept negative values like avisynth's

merlinmage
23rd January 2011, 20:18
Okay,

I will change the command line to:

--video-filter crop:0,140,0,140

My resize question was also with the future in mind, because not every video has the same resolution ;)

Thank you for your quick help :)

Moti172
26th September 2011, 20:02
Hi

Does the crop in avisynth has any advantage over crop in x264 ?

Thanks

kemuri-_9
26th September 2011, 23:53
they both work in the same fashion of changing metadata about the frame without actually recopying the frame's data.
(you can tell avisynth crop's to recopy the valid data to a new frame, but this is not the default behavior).

generally the later the crop occurs then the more memory you're using because the frames in the chain are larger, otherwise there's not particularly much difference.