Log in

View Full Version : x264 can't parse qpfile for frame 0


Lyris
26th April 2013, 04:54
Anyone know why I'm getting this error? It has to be something blatantly obvious, but I can't see what.

My QPfile:

2669 K -1
12311 K -1
19643 K -1
42491 K -1
55059 K -1
61994 K -1
75684 K -1
94636 K -1
110029 K -1
115954 K -1
123563 K -1
142899 K -1

And the path:

x264.exe --bitrate 35000 --vbv-maxrate 40000 --preset slow --tune film --no-deblock --qpfile "C:\AVC\xxxxxx\xxxxxxx_chapters.txt" --bluray-compat --vbv-bufsize 30000 --level 4.1 --keyint 24 --open-gop --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 --stats "C:\AVI_Intermediates\xxxxxx_restored_framecuts.stats" --pass 1 -o "C:\AVC\xxxxxx\feature_test.avc" "C:\AVI_Intermediates\xxxxxx_restored_framecuts.avs"

Regardless, x264 gives this error: "can't parse qpfile for frame 0". Any ideas?

Lyris
26th April 2013, 04:58
Aha, got it. It was the encoding in the text file (UTF-8) which was originally exported from my nonlinear editing tool and modified to be x264-friendly (or so I thought). Copying and saving the lines into a new file (reported by Notepad++ as "ANSI as UTF-8") and saving it worked.

nevcairiel
26th April 2013, 08:03
Sounds like it got confused by the UTF-8 BOM at the start of the file.

LoRd_MuldeR
26th April 2013, 13:02
Actually you should be fine with plain ASCII (or "Latin-1") encoding this case.

(In fact ASCII/Latin-1 should come out byte-identical to UTF-8 as long as the file only contains ASCII characters anyway - except for UTF-8 BOM)