Log in

View Full Version : can x264 commandline resize ?


hydra3333
17th March 2012, 02:23
Just wondering - using the X264 commandline, can X264 natively do size conversion of incoming "HD" 1440x1080i(PAL) mpeg2 into "SD" 576i mpeg4 directly ?

I currently use Win7-64home with 32bit Avisynth (TSP's 32bit), with DG's NV for the GPU to do the resize and that .avs is the "input file" to X264 32bit commandline.

I am guessing a speed-up may be possible by bypassing avisynth, using direct input of the "HD" mpeg2 into X264 64bit ... if it can do the resize. :)

Input is TV capture, destination is a WDTVlive player, goal is smaller filesize for disk storage and at reasonable quality for later TV playback.

In a .bat, I do a DGIndexNV first, then other commandlines from my .bat file are:
"C:\software\X264\x264.exe" --thread-input --profile high --level 4.1 --preset fast --interlaced --tff --no-cabac --bitrate %theBitrate% --sar 4:3 --colormatrix bt709 -o "%PARtemp%" "%AVS1%"
"C:\software\ffmpeg\bin\ffmpeg.exe" -i "%parAC3%" -y -ar 48000 -ac 2 -ab 256k -acodec mp2 -vol 1024 "%parMP2%"
"C:\SOFTWARE\MP4box\MP4Box.exe" -add "%PARtemp%" -add "%parMP2%":lang=eng -new "%PARMP2mp4%"

I suppose I could try direct input of .mpeg2 into X264 64bit without a resize and see if that is quicker than the combo above, although the filesize would of course be larger.

Other suggestions welcomed.

LoRd_MuldeR
17th March 2012, 02:28
http://mewiki.project357.com/wiki/X264_Settings#Filtering

hydra3333
17th March 2012, 02:35
Thanks. I hope it resizes interlaced material OK (it doesn't say) 1044x1080i -> 720x576i

So, I add this to my X264 commandline, direct input the mpeg2, and try it ...
resize:width=720,height=576,method=lanczos
"C:\software\X264\x264.exe" --thread-input --profile high --level 4.1 --preset fast --interlaced --tff --no-cabac --bitrate %theBitrate% --sar 4:3 --colormatrix bt709 resize:width=720,height=576,method=lanczos -o "%PARtemp%" "%MPEG2%"

Hmm, I found this from a while ago... does the x264.nl build have yadif built into it ? (I like that site's builds as it is updated regularly)
--video-filter yadif:mode=0,order=tff/resize:width=720,height=576,sar=16:11,method=lanczos --no-interlaced --fps %Fps%

kemuri-_9
17th March 2012, 04:44
Hmm, I found this from a while ago... does the x264.nl build have yadif built into it ? (I like that site's builds as it is updated regularly)

No, because the yadif filter was too much of a reduplication of the equivalent in libavfilter and thus rejected.
No one (including myself) has gotten around to writing support for libavfilter in x264cli yet to have it officially supported.

DiKey
30th March 2012, 22:22
"with DG's NV for the GPU to do the resize and that .avs" - please, can you help me to find GPU resizer?

Asmodian
30th March 2012, 22:57
DGDecNV (http://neuron2.net/dgdecnv/dgdecnv.html) can resize on an Nvidia GPU while it is decoding the source on the Nvidia GPU.

Guest
30th March 2012, 22:57
"with DG's NV for the GPU to do the resize and that .avs" - please, can you help me to find GPU resizer? It's invoked with parameters to DGSource(). Refer to the documentation.

DiKey
4th April 2012, 19:19
Thank you, but I have no ability to buy a license.