Problem:Encoding H.264 using the x264 Command Line Interface

If you have questions about compression/encoding/converting look here.
Locked
MADAJ
Joined: Mon Nov 19, 2007 5:00 pm
Org Profile

Problem:Encoding H.264 using the x264 Command Line Interface

Post by MADAJ » Wed Dec 12, 2007 5:01 pm

hi guys,

I read this topic
http://aflux.deltaanime.net/Zero1/MP4/x264.html

and now i have these files...

Image



avs file

Code: Select all

avisource("video.avi")
converttoyv12()
text file

Code: Select all

@ECHO OFF
x264.exe --bitrate 700 --bframes 3 --ref 8 --subme 7  --b-rdo --8x8dct --weightb --trellis 1 --fps 23.976 --qp 18 --vbv-maxrate --pass 1 --crf --pass 2 --pass 3 --progress --output test.264 video.avs
PAUSE
CLS
EXIT


then what to do to encode and get the final video file?


^___^

Mosc
Joined: Mon Oct 30, 2006 8:13 am
Org Profile

Post by Mosc » Wed Dec 12, 2007 6:17 pm

Rename the extension of your text file from .txt to .bat (or .cmd).

However, your x264 command line has severe problems. Specifying --bitrate, --qp, --pass 1, --crf, --pass 2 and --pass 3 all together is completely nonsensical and just plain wrong. Furthermore, --crf and --vbv-maxrate both need an argument so they won't work correctly the way they are now. Try replacing --bitrate 700 --qp 18 --vbv-maxrate --pass 1 --crf --pass 2 --pass 3 with just --crf 18 and your syntax will be a lot better.

MADAJ
Joined: Mon Nov 19, 2007 5:00 pm
Org Profile

Post by MADAJ » Thu Dec 13, 2007 7:13 pm

thx alooooooooooooooooot !!

but i get some problems!

i have specified the fps to 23.976, but the output is 8!!



and is there a way to specify the file size?

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Post by Qyot27 » Thu Dec 13, 2007 7:39 pm

Maybe it would be easier to just use MeGUI? I've never had framerate issues with that, and it provides intricate tweaking of the settings that other x264 frontends don't. As it stands, the options being used in that commandline in the first post are editable in it as well (as opposed to more specialized options that still require using the CLI, like specialized builds taking advantage of some of Dark Shikari's patches).

Locked

Return to “Conversion / Encoding Help”