Fobs4JMF in Windows XP and Netbeans
Looking for a way to play video in java I found a project called Fobs4JMF. It's a PlugIn which allows to use the wide range of formats supported by ffmpeg in your Java applications.
If you want to try that, you have to follow the next steps:
1. Install the latest JMF version
2. Download Fobs4JMF from here.
3. Extract in a folder (For example in C:\). See the screenshot:
2.Include C:\fobs4jmf_0.4.2_win32\fobs4jmf.jar and C:\fobs4jmf_0.4.2_win32\jmf.jar; into your java classpath environment variable (or include it directly in the command line invocation of java): If you have extracted in C:\ drive, then you can add directly this paths
See the screenshot:
Thereafter, follow these steps:
1. Launch JMStudio (java JMStudio).
2. Go to File->Preferences
3. Enter the "Plugins" tab
4. In the "Demultiplexer" tab, add the class "com.omnividea.media.parser.video.Parser" and commit.
5. In the "Codec" tab, add the class "com.omnividea.media.codec.video.NativeDecoder" and commit.
6. In the "Codec" tab, add the class "com.omnividea.media.codec.audio.NativeDecoder" and commit.
7. In the "Codec" tab, add the class "com.omnividea.media.codec.video.JavaDecoder" and commit.
8. Go to the "Packages" tab
9. Include "com.omnividea" in both the Protocol Prefix
and the Context Prefix list. Move both of them up to the first position. Commit both. See screenshot.
After these steps, the jmf plugin is installed in the system and will be used automatically when needed, not only by JMStudio but also by any program that uses the JMF plugin .
If you are using netbeans IDE you have to add fobs4jmf.jar to your classpath project. It should look like that:
Dont' forget to leave a comment.