Media Player
Testing out the new JMC code. Not a good start. The only codec pack that works well on my Windows XP system is CCCP. What is CCCP ? Exactly ! How can JMC become a success when every single “mainstream” codec doesn't seem to work ?
Maybe my system is all screwed up ? Who knows.




MediaProvider throws “Unsupported media” on everything. MediaProvider.getSupportedContainerTypes() is not living in the real world. JMediaPane doesn't support overlaid graphics. JmediaPlayer is extremely basic.
Beta or 1.0 Preview means feature complete, not "this API is written on stone tablets". And how can you write a video player without knowing where you are in the movie ? getMediaTime() or addNotificationTime ? Maybe I'm overlooking something. I have no JMC documentation, so I'm just working blind.
Maybe this code works better on my Vista system.
Comments
hey jan erik, a way i think you could make overlays work is using scenario: wrapping the media pane in a SGComponent, and then adding new shapes or new swing components. I've tried it with decora effects, and gpu accelerated effects do work on video, which is a nice surprise i guess.
Posted by: lqd | August 7, 2008 11:06 AM
I'm really confused by this framework. I loose hardware acceleration when I create a standalone application. So it runs fast in the IDE, but excruciatingly slow on its own.
Posted by: Jan Erik Paulsen | August 7, 2008 05:53 PM
Just calling JMediaPane.addNotificationTime before JMediaPane.setSource breaks the entire video pipeline. And calling it after throws "the operation is not supported [class com.sun.media.jmc.OperationUnsupportedException]" even when JMediaPane.isNotificationTimeSupported returns true.
Posted by: Jan Erik Paulsen | August 7, 2008 07:14 PM
Working XP code on a vanilla Vista system.
com.sun.media.jmc.MediaException: DirectShowPeer: can't open specified URI
And yeah.. JMC has crashed several times on Vista.
Posted by: Jan Erik Paulsen | August 8, 2008 09:23 PM
Is this the same Scenario/SGComponent ?
Posted by: Jan Erik Paulsen | August 13, 2008 08:02 PM