[MPlayer-users] Feature request - control PlayRes from commandline

Evgeniy Stepanov eugeni.stepanov at gmail.com
Sat Jan 5 16:40:00 CET 2008


On Sunday 30 December 2007 02:10:19 Anton Khirnov wrote:
> Hi,
>
> I encounter quite a lot of mkv files with ass subs, that have
> incorrectly set PlayResX and PlayResY. It is very annoying to have to
> manually extract all the subs and correct them so it would be nice to
> have a commandline option (maybe a suboption of ass-force-styles) that
> would control it.
> I'm attaching a simple hack, that seems to work for me, but i'm no
> programmer so don't take too seriously :)
>
> Cheers
> Anton Khirnov
>
> Index: libass/ass.c
> ===================================================================
> --- libass/ass.c        (revision 25540)
> +++ libass/ass.c        (working copy)
> @@ -337,6 +337,11 @@
>                 *eq = '\0';
>                 token = eq + 1;
>
> +               if(!strcasecmp(*fs, "PlayResX"))
> +                       track->PlayResX = atoi(token);
> +               if(!strcasecmp(*fs, "PlayResY"))
> +                       track->PlayResY = atoi(token);
> +
>                 dt = strrchr(*fs, '.');
>                 if (dt) {
>                         *dt = '\0';

Applied, with two more parameters (Timer and WrapStyle).



More information about the MPlayer-users mailing list