Hi, Jason Tackaberry wrote: > I just checked in some very initial work on kaa-mplayer.
Nice.
> It's functional, but missing some features, particularly in working
> with filter chains. What sort of features would be needed for using
> kaa.mplayer in Freevo?
We need to add filters. And if I start mplayer with '-vf foo -vf bar',
foo will be droped. That's why Freevo searches the filter chain and
replaces that line with '-vf-add foo,bar'.
Back to the features. It would be great if there would be a similar
interface for xine and mplayer. So no '-vf' stuff visible to the
outside. I could say 'use software scaler' and mplayer and xine do
without me knowing how. And maybe 'use deinterlacer tvtime,lavc'. Xine
would use tvtime, the mplayer plugins knows that tvtime is invalid and
will use lavc. Same for vo. Create o = Mplayer()/Xine() and after that
o.video('xmga', 'xv').
Back to what we need:
Right now we parse
| if line.find('SwScaler:') ==0 and line.find(' -> ') > 0 and \
| [...]
| if line.find('Expand: ') == 0:
| [...]
But this is only needed for the mevas stuff, I guess I don't want to
see that in Freevo at all. And I also need the elapsed time. That's
all (right now).
> kaa.mplayer relies on kaa.display, and creates a X11Window and uses -wid
> to tell MPlayer to draw there. This gives us more flexibility since we
> can manipulate the window ourselves (hide/show will be important for
> CanvasMovie). But MPlayer doesn't preserve the aspect ratio when -wid
> is specified: it fills the entire window. I asked on the mailing list
> if there's a way around this. In practice, we'll be using software
> scaling (needed for vf_osd) anyway, so it probably won't be a problem.
> Still, it'd be nice to know. There's also a question of how dfb/fb will
> be handled.
>
> test/mplayer.py is a simple test app. The code should be pretty
> obvious.
Maybe support low power cpus? They can't use the swscaler. Or should
be say Freevo 2.0 needs at least 1 GHz?
Dischi
--
Ever notice how fast Windows runs? Neither did I...
pgpnTJtgmhTGc.pgp
Description: PGP signature
