Ok, it's fairly impossible to rely on GStreamer on os-x. The problem is that you need to use MacPorts or something as root to install giga-bytes of software related to GStreamer. That's just not likely, too much magic for MacIntosh users.
Sophie btw did deal with multiple layers of codec support and would ask the plugins if they supported OGG or MPEG and work their way down to a solution. It used a weighted decision tree for that, so for example if the Ogg audio was supported by a codec in Quicktime that the user had installed it would take the quicktime logic path, versus the Ogg plugin path..
So if you had an mpeg video it would play nicely on your mac with quicktime, or on windows if quicktime was installed, or fall back to the mpeg player code if supported on linux.
On 2010-08-28, at 3:32 AM, Bert Freudenberg wrote:
On 28.08.2010, at 02:21, Chris Cunnington wrote:
OK, I've pulled the MPEG player from Sophie. It looks worlds better.
http://smalltalktelevision.com/player2.jpg
It's also at http://www.squeaksource.com/MultiMedia.html
It opens with:
MPEGMoviePlayerMorph new openInWorld
Chris
Awesome! :)
IIRC it was rather hard to recode video to an mpeg format this would accept.
And a solution that would not require recoding would be preferable.
On Linux we have John's GStreamer plugin, and he once compiled it on OS X too. Not sure how hard it would be to port to Windows.
The Best Way would be a generic VideoPlugin that would have different implementations for each platform (e.g. QuickTime on Mac, GStreamer on Linux, DirectShow on Windows). That would be quite some development effort, however.
- Bert -
-- =========================================================================== John M. McIntosh johnmci@smalltalkconsulting.com Twitter: squeaker68882 Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com ===========================================================================