On Sat, 2006-12-02 at 19:40 +0100, Hans Meine wrote:
> Nice idea.  However, from a mathematical perspective, one would probably have 
> to weight the different capabilities, anyhow it will be quite difficult to 
> find the right ranks (and/or weights) which result in "sensible" player 
> choices.

I thought of weighting each capability too, but had the idea that rather
than giving capabilities fixed weights, we could weight them based on
the order in which they are requested.

So you open foobar.iso; kaa.metadata sees this is a DVD iso and some of
the titles have interlaced streams (though I don't think kaa.metadata
can do that now), and so it fetches a player with (CAP_VIDEO, CAP_AUDIO,
CAP_DVD_MENUS, CAP_DEINTERLACE, CAP_DYNAMIC_FILTERS) which would weight
the capabilities in that order when coming up with a rank for each
player for that file.

It seems reasonable to also allow a list of required capabilities, and a
list of nice-to-haves, but in practice I wonder if this is really
necessary.

(We probably need a new capability for dynamic deinterlace toggling, in
addition to more general dynamic filters, since mplayer now supports the
former but not the latter.)

> Then one idea could be to transform the "extension list" Dischi originally 
> wrote about into a CAP_FILE_AVI, CAP_FILE_MOV, ...

The same issues that dischi laid out originally still apply though.  We
could enumerate every demuxer and codec supported by a player, but maybe
the installation on the system happens to not be built with support for
that format.  Or maybe a new demuxer or codec has been added to the
player that we just haven't added to the supported list.

Of course, even if we specify the player supports a format and it
happens to not, the worst case is that we needlessly try that player
first before moving on to the second choice.  So it isn't an error, just
undesirable.

But this is also the case if we don't bother with extensions and codecs
at all, and try the players based on the higher level capabilities.
Worst case scenario is a file takes a bit longer to start playing.  This
could be mitigated by caching the player choice (though that obviously
creates new problems).

Jason.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to