Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th October 2017, 19:49   #1  |  Link
BabaG
Registered User
 
Join Date: Dec 2003
Posts: 253
question about x264 rezizing

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 is offline   Reply With Quote
Old 15th October 2017, 20:24   #2  |  Link
BabaG
Registered User
 
Join Date: Dec 2003
Posts: 253
got this over on videohelp.com. thanks to poisondeathray.
Quote:
--vf resize:1920,1080,method=lanczos
BabaG
BabaG is offline   Reply With Quote
Old 15th October 2017, 20:56   #3  |  Link
mariush
Registered User
 
Join Date: Dec 2008
Posts: 589
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
mariush is offline   Reply With Quote
Old 20th October 2017, 19:25   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by mariush View Post
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.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.