PDA

View Full Version : x264 can't open stats file


gizmo27
16th August 2008, 21:34
Hi

I use x264 cli with dos commande line

I put that F:\x264-CLI_r928\x264.exe --progress --thread-input -B 1378 -p 1 --stats "statsfile.pass" -A "p8x8,b8x8" -b 2 --direct auto --subme 5
--me "hex" -o NUL F:\niagara.avs

and when x264 launch he says : "x264 [error]: ratecontrol_init: can't open stats file
x264 [error]: x264_encoder_open_failed"

Why ?

DeeGee
16th August 2008, 21:46
Do you have write priviledge to f:\x264-cli_r928 directory?

gizmo27
17th August 2008, 11:58
Ever if I give "Full control" to my user, it gives that.

In fact, I'm working on GKMod.

And I managed to launch x264 cmd.

If I write the command manually, no problem.

But if I do it "automatically" passing by GKMod, it gives that.

I ask the x264 cli developpers if you can deblock something in the x264 source code to make it work with GKMod, please ?

gizmo27
17th August 2008, 14:59
The bug contains a file named "762c_appcompat.txt" which contains this :<?xml version="1.0" encoding="UTF-16"?>
<DATABASE>
<EXE NAME="x264.928.modified.01.exe" FILTER="GRABMI_FILTER_PRIVACY">
<MATCHING_FILE NAME="x264.928.modified.01.exe" SIZE="997394" CHECKSUM="0x2FB148A9" MODULE_TYPE="WIN32" PE_CHECKSUM="0xFBC3F" LINKER_VERSION="0x10000" LINK_DATE="07/31/2008 07:18:27" UPTO_LINK_DATE="07/31/2008 07:18:27" />
<MATCHING_FILE NAME="x264.exe" SIZE="984594" CHECKSUM="0xC1E14973" MODULE_TYPE="WIN32" PE_CHECKSUM="0xF57CF" LINKER_VERSION="0x10000" LINK_DATE="07/31/2008 07:03:27" UPTO_LINK_DATE="07/31/2008 07:03:27" />
</EXE>
<EXE NAME="kernel32.dll" FILTER="GRABMI_FILTER_THISFILEONLY">
<MATCHING_FILE NAME="kernel32.dll" SIZE="1048576" CHECKSUM="0x4A5F47F4" BIN_FILE_VERSION="5.1.2600.2180" BIN_PRODUCT_VERSION="5.1.2600.2180" PRODUCT_VERSION="5.1.2600.2180" FILE_DESCRIPTION="DLL du client API BASE Windows NT" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Système d'exploitation Microsoft® Windows®" FILE_VERSION="5.1.2600.2180 (xpsp_sp2_rtm.040803-2158)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. Tous droits réservés." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x109C7D" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.2180" UPTO_BIN_PRODUCT_VERSION="5.1.2600.2180" LINK_DATE="08/19/2004 23:09:14" UPTO_LINK_DATE="08/19/2004 23:09:14" VER_LANGUAGE="Français (France) [0x40c]" />
</EXE>
</DATABASE>

Sharktooth
17th August 2008, 15:05
use the vanilla x264 and try again (not a modified/patched build).
also x264 devs wont make anything to x264 to make it work with a gui.
it's the GUI that should work with x264...

talen9
17th August 2008, 15:07
I doubt very much it is an x264 bug ...

Can you simply try to specify an absolute path for your statsfile? Like this:

F:\x264-CLI_r928\x264.exe --progress --thread-input -B 1378 -p 1 --stats "F:\statsfile.pass"
-A "p8x8,b8x8" -b 2 --direct auto --subme 5 --me "hex" -o NUL F:\niagara.avs

PS: are you on Xp? Vista?

gizmo27
17th August 2008, 20:04
@talen9

I've got xp and .net framework 2.0 already installed.

And about "F:\statsfile.pass" I've already tried but it doesn't work.

talen9
17th August 2008, 20:23
This same command line works, if you run it manually from a command prompt?

This is the first question you have to ask yourself, when you're debugging the way a frontend works ...

gizmo27
17th August 2008, 20:31
Yes it works when I run manually but I don't understand where it's wrong.

talen9
17th August 2008, 20:33
Well, I think it's clear that the string you're quoting here is not exactly the same as the one your frontend is generating ...

EDIT: maybe there's an issue with the double quotes? Since the first double-quote in the command line is right before the name of the statsfile ...

gizmo27
18th August 2008, 17:58
Ok thanks a lot.

I'm happy to tell you that GKMod now works with the last x264 cli version (patched or not) !

You can download it here (http://gordianknot.free.fr/gordian_knot_tests/GKMod18082008.zip)

And this is the source code (http://gordianknot.free.fr/gordian_knot_tests/GKMod18082008_src.zip)

I hope this time that somebody will be interested by this...