Log in

View Full Version : x264 ignores qpfile in command line


Habanero2
27th June 2014, 16:44
hi,

i use x264 to encode some videos. i created a batch file with this command line (2-pass encoding):


x264 --preset slower --pass 1 --bitrate 1320 --stats "01.stats" --tff --sar 12:11 --output NUL "01.avs"
x264 --preset slower --pass 2 --bitrate 1320 --stats "01.stats" --tff --sar 12:11 --qpfile="01.txt" --output "01-new.mkv" "01.avs"


the avs script is very simple

loadplugin("C:\tools\dgindex\dgdecode.dll")
v = mpeg2source("title01_track1_eng.d2v")
a = ffaudiosource("title01.mkv",track=1)
audiodub(v,a)

(i use dgdecode because with ffms2 sometimes i have a wrong frame rate, 25.003 instead of 25.000; source file is interlaced mpeg2)

this is the qpfile:

1900 I
33391 I

i have tried other qpfiles, like K instead of I and with quantizer. allways the same.

when i mux the avc file in mkvmerge and set the split points, mkvmerge can't split the file at the right position, that means the frame isn't an i frame. this is no problem when i encode the same avs script with the same settings and with the same qpfile in megui (the command line above is copied from megui).

any ideas?

habanero

sneaker_ger
27th June 2014, 17:50
Frame type decision happens in the first pass so you already need to supply the qpfile at that point.

Habanero2
28th June 2014, 13:15
works, thx