[MPlayer-dev-eng] [PATCH] CQMs in x264

Robert Swain robert.swain at gmail.com
Tue Jul 26 18:55:16 CEST 2005


On 7/26/05, Diego Biurrun <diego at biurrun.de> wrote:
> On Tue, Jul 26, 2005 at 02:34:23PM +0100, Robert Swain wrote:
> > Were you expecting me to answer 'No'? I assume you were. So [] means
> > that the parameter is mandatory?
> 
> No, optional.

The parameters are mandatory. Otherwise an error is incurred. I've
done this because in my opinion if the user wants to use a cqm they
don't want to waste their time encoding a video without it. Otherwise
they wouldn't have specified one of the cqm parameters.

> I still don't quite get what this is all about, but you cannot leave it
> as part of the cqm option descriptions.  If it is a separate thing you
> need to put it somewhere separate.

It is another method of inputting the CQMs. I makes sense to me that
it should come directly after the other CQM option which takes jvt,
flat or a filename. The CQM files contain comma separated lists of
values for the matrices. Rich said that a frontend which has a matrix
editor should not have to save an intermediate file to be able to use
the edited matrix. Consequently I added the possibility of specifying
the matrices, individually, via comma separated lists in the command
line.

An example might be clearer. One of the CQMs in the CQM file might be:

INTRA4X4_LUMA =
 6,12,19,26,
12,19,26,31,
19,26,31,35,
26,31,35,39	

This can be passed to mencoder by:
cqm4iy=6,12,19,26,12,19,26,31,19,26,31,35,26,31,35,39

There shouldn't be any problem using commas for separation as the
recommended option separator is a colon.

Regards,
Robert Swain (superdump)




More information about the MPlayer-dev-eng mailing list