Log in

View Full Version : question about x264 rezizing


BabaG
15th October 2017, 19:49
i have some video at 2048x1152 that i need to resize to 1920x1080. i'd like to fold the resizing in with other parameters i'm feeding x264 so i can do it all at once. i thought i'd use lanczos as the method but would be happy to be corrected if that's not the best method for this. what is the cli command for this? should i use fittobox? what is the syntax to do this resize?

thanks,
BabaG

BabaG
15th October 2017, 20:24
got this over on videohelp.com. thanks to poisondeathray.
--vf resize:1920,1080,method=lanczos

BabaG

mariush
15th October 2017, 20:56
from x264.exe --fullhelp

Filtering:

--vf, --video-filter <filter0>/<filter1>/... Apply video filtering to the input file

Filter options may be specified in <filter>:<option>=<value> format.

Available filters:
crop:left,top,right,bottom
removes pixels from the edges of the frame
resize:[width,height][,sar][,fittobox][,csp][,method]
resizes frames based on the given criteria:
- resolution only: resizes and adapts sar to avoid stretching
- sar only: sets the sar and resizes to avoid stretching
- resolution and sar: resizes to given resolution and sets the sar
- fittobox: resizes the video based on the desired constraints
- width, height, both
- fittobox and sar: same as above except with specified sar
- csp: convert to the given csp. syntax: [name][:depth]
- valid csp names [keep current]: i420, yv12, nv12, nv21, i422, yv16, nv16, yuyv, uyvy, i444, yv24, bgr, bgra, rgb
- depth: 8 or 16 bits per pixel [keep current]
note: not all depths are supported by all csps.
- method: use resizer method ["bicubic"]
- fastbilinear, bilinear, bicubic, experimental, point,
- area, bicublin, gauss, sinc, lanczos, spline
select_every:step,offset1[,...]
apply a selection pattern to input frames
step: the number of frames in the pattern
offsets: the offset into the step to select a frame
see: http://avisynth.nl/index.php/Select#SelectEvery

benwaggoner
20th October 2017, 19:25
from x264.exe --fullhelp

- method: use resizer method ["bicubic"]
- fastbilinear, bilinear, bicubic, experimental, point,
- area, bicublin, gauss, sinc, lanczos, spline[/B]


Say, does anyone know of any actual documentation for what the different resize methods actually do? Some of them are obvious by the name, at least in general class. But even those often have a variety of different implementations and parameters. I have no clue what "experimental" does.

20 years ago, I remember Spline being the best one for downscaling in Media Cleaner Pro. Made a huge difference when making 192x144 web video from our 720x480 captures. Nostalgia.