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

Guillaume POIRIER poirierg at gmail.com
Tue Jul 12 17:43:32 CEST 2005


Hi,

On 7/12/05, Robert Swain <robert.swain at gmail.com> wrote:
> On 7/12/05, Guillaume POIRIER <poirierg at gmail.com> wrote:
> > On 7/12/05, Robert Swain <robert.swain at gmail.com> wrote:
> > > Please find the patch attached. (You should be able to apply with 'patch -p0
> > > < mplayer.x264.cqm.1.diff'.) I've added the above usage description to the
> > > English man documentation.
> >
> > This is a quite more advanced encoding setting. I think it also
> > deserves further documentation in the XML doc (at least, show how a
> > matrix is supposed to be formatted, and what are the separators: tabs,
> > spaces, commas ?).
> 
> I was going to suggest we does as has been done in x264 and include an
> example file taken from JM.

Why not. I was thinking of doing something such as:
http://mplayerhq.hu/DOCS/HTML/en/custommatrices.html and maybe give a
link to doom9 forum where, to the best of my knowledge, all the CQM
experiments are taking place.


> > > I know CQMs have been available to XviD in MEncoder for quite a while. Is
> > > there any neat workaround anyone can think of to solve the reserved
> > > character, ':'
> >
> > I'm not sure to see what is the problem here.
> 
> The problem is Windows paths are given as "C:\path\to\mymatrix.cfg".
> As this path contains ':' it causes problems because it thinks
> "\path\to\mymatrix.cfg" is the next x264 option.

Ok. I think there are two solutions available. One is using double or
single quotes when the path is in windows format. Untested, but that
might work.

The other solution is to make use of the recent code Reimar committed
to the subopt parser.

Here is what the doc says:

NOTE: The suboption parser (used for example for -ao pcm suboptions)
supports a special kind of string-escaping in- tended for use with
external GUIs.
It has the following format:
%n%string_of_length_n
EXAMPLE:
mplayer -ao pcm:file=%10%C:test.wav test.avi


Regards,
Guillaume
-- 
A lie gets halfway around the world before the truth has a chance to
get its pants on.
 -- Winston Churchill




More information about the MPlayer-dev-eng mailing list