PDA

View Full Version : Req.: Specs and example for x264 qpfile


LigH
9th January 2007, 08:48
In only a few rare sources, I read that x264 supports now the option "--qpfile filename" to specify frames with type and quantizer. If I am not wrong, the required syntax for the file should be:

Frame(int) Type(char) Quant(int)

where Type may be:
- I = IDR (key) frame
- i = (generic) I frame
- P = P frame
- B = referenced B frame
- b = basic B frame

But a member in the german doom9/Gleitz board tried to use this kind of file to ensure that he would be able to encode several sequels of a TV series as one, and split them afterwards - and failed (according to the frame type display in VirtualDubMod) with a file content like:

6753 I 20
12764 I 20
19648 I 20

Any clue where the mistake might be? If VDM is unreliable here - which tool can report frametypes more reliably?

akupenguin
9th January 2007, 08:53
qpfile must contain an entry for every frame in the movie. I implemented it in order to facilitate my ratecontrol experiments, and never considered that people might want to leave some frames on auto.

Consider your feature request to have been made, and consider the response to be: sometime, if I get around to it.

LigH
9th January 2007, 09:00
It was just a try to use it like the "zone" parameter in XviD - not only setting a different quality for a range, but especially enforcing a few certain frames being keyframes.

Many thanks in advance for your efforts! :D