[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 129792] can't use -vf expand with mplayer
From:       Lukas Pawelczyk <havner () pld-linux ! org>
Date:       2006-06-28 15:59:10
Message-ID: 20060628155910.8882.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
         
http://bugs.kde.org/show_bug.cgi?id=129792         




------- Additional Comments From havner pld-linux org  2006-06-28 17:59 -------
> This looks not easy parsable, and probably breaks on every mplayer release.
> I don't think it would be wise to add this for this specific case.

There is a lot mplayer releases these days :->> Seriously, i dont think that it would \
change any time soon. There is only need to parse one line:

Opening video filter: [expand w=0 h=-100]

f.e.:
s/.*\[expand\ w=\([-0-9]*\)\ h=\([-0-9]*\)\]/ADD_WIDTH=\1 ADD_HEIGHT=\2/g"

then:

if(ADD_WIDTH<0)
  ID_VIDEO_WIDTH-=ADD_WIDTH;
else if(ID_VIDEO_WIDTH<ADD_WIDTH)
  ID_VIDEO_WIDTH=ADD_WIDTH;

same for HEIGHT. Thats all.

Yes, i can easily make wrapper script for this, thats not the point. I just think \
that this functionality should be included in kmplayer.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic