PDA

View Full Version : Question about vc1 and x264


matrix40
8th January 2008, 14:32
Ok so far this is what ive done

Evodemux and gotten the audio to ac3 file
Created a graph using Halli splitter then windows media dmo.
Created a avs script with the calculated frames and 23.976 fps.

I can open it in vdub and can play it in nero showtime

I want to try to convert the video to a smaller file (h264) using x264 via command line. What i want to know is what should my command line look like? I want to crop some pixels off the top and bottom(say about 20 on both)

Im still reading up on x264 but am starting to understand a little more each day

What will give me good quality but wont take over 10 hours?

ps i use the avs file right ie x264.exe avs script

Sorry im at work and can remember the exact directshowsource script i used

mitsubishi
8th January 2008, 17:30
This is an odd choice of forum to post in ;)

x264 just encodes what you give it, so you need to crop in your avs script. Are you not resizing also?

Most movies are 2.35 so you would crop more than 20 pixels, you would add something like this to the script to crop all the black out of an average film:

crop( 2, 136, -2, -136)
That would crop 2 left, 136 top, 2 bottom, 136 right.

If you did want to resize, you would need to take into account the changed AR, so for that crop resizing to 720 would need:

LanczosResize(1280,544)

If you do just want 20 pixels top and bottom and wanted to resize to 720, then I think it would be:
crop( 0, 20, 0, -20)
LanczosResize(1280,688)

What will give me good quality but wont take over 10 hours?


This depends on what you call "good" and how powerful your machine is. You might want to look at MeGUI, even if you want to use command line in the end, you can copy it's command lines, this for example is the crf one it uses:

--crf 18 --ref 3 --mixed-refs --bframes 16 --b-pyramid --bime --weightb --filter -2,-1 --subme 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 25000 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "output.mp4" "input.avs"

Which is a reasonable one. You might also want to add say:

Trim(10000,17200) To the end of your script which will cut down to about 5 minutes, six or so minutes in, so you have a smaller section to run test encodes on.

Dark Shikari
8th January 2008, 17:39
--crf 18 --ref 3 --mixed-refs --bframes 16 --b-pyramid --bime --weightb --filter -2,-1 --subme 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --vbv-maxrate 25000 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "output.mp4" "input.avs"
That commandline is retarded. All those relatively high settings--and then subme 1? 5 should be a minimum considering everything else there. Trellis is a must, too, considering you're already using UMH.

mitsubishi
8th January 2008, 17:50
That commandline is retarded. All those relatively high settings--and then subme 1? 5 should be a minimum considering everything else there. Trellis is a must, too, considering you're already using UMH.
Hmm, you're right, I hadn't noticed, I just copied it out of meGUI. I'm sure it used to --subme 6 --trellis 1. I have custom profiles for myself, so don't know why/when it changed.