I think this is just a beginner question...i´ve searched the message archive for a few pages, but didn´t get a hint on my problem.
I installed JMF and Fobs4JMF on my Windows XP. I did the installation instructions for Fobs4JMF:
* Installed JMF
* Installed Fobs4JMF with the installer
* adapted the classpath (.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1E\lib;C:\Programme\Fobs4JMF\fobs4jmf.jar;C:\Programme\Fobs4JMFjmf.jar)
* copied the fobs4jmf.dll into win/sys32 and java/lib/i386 folder
* copied the *.properties from fobs folder into the jmf folder
Now i´m able to play for example avi files with the JMF JMStudio. So i think all is fine now. If i try to play the same avi file out of a small java application i get a exception like the above.
I think this is not a big problem...just a small thing. i forgot to tell, that i even added fobs4jmf.jar in my build path of my application.
this is the exception:
Fobs4JMF - Native shared library found
18.5First Position: 0, 0 Duration: 18500
Frame Rate: 4
Opening Thread[JMF thread: com.sun.media.ProcessEngine@a9c09e[ com.sun.media.ProcessEngine@a9c09e ] ( configureThread),9,system]
Fobs Java2DRenderer: setInputFormat
Fobs Java2DRenderer: setInputFormat
Video format: FFMPEG_VIDEO, 740x528, FrameRate=4.0, Length=390720 0 extra bytes
Exception in thread "JMF thread: com.sun.media.ProcessEngine@a9c09e[ com.sun.media.ProcessEngine@a9c09e ] ( realizeThread)" java.lang.NullPointerException
at com.omnividea.media.renderer.video.Java2DRenderer.setInputFormat(Java2DRenderer.java:87)
at com.sun.media.SimpleGraphBuilder.verifyInput(SimpleGraphBuilder.java:925)
at com.sun.media.SimpleGraphBuilder.matches(SimpleGraphBuilder.java:900)
at com.sun.media.SimpleGraphBuilder.matches(SimpleGraphBuilder.java:860)
at com.sun.media.SimpleGraphBuilder.verifyTargetPlugins(SimpleGraphBuilder.java:425)
at com.sun.media.ProcessEngine$ProcGraphBuilder.findTarget(ProcessEngine.java:1011)
at com.sun.media.SimpleGraphBuilder.doBuildGraph(SimpleGraphBuilder.java:220)
at com.sun.media.SimpleGraphBuilder.buildGraph(SimpleGraphBuilder.java:168)
at com.sun.media.ProcessEngine$ProcGraphBuilder.buildCustomGraph(ProcessEngine.java:1330)
at com.sun.media.ProcessEngine$ProcGraphBuilder.buildCustomGraph(ProcessEngine.java:1210)
at com.sun.media.ProcessEngine$ProcGraphBuilder.buildGraph(ProcessEngine.java:944)
at com.sun.media.ProcessEngine$ProcTControl.buildTrack(ProcessEngine.java:655)
at com.sun.media.PlaybackEngine.doRealize1(PlaybackEngine.java:326)
at com.sun.media.ProcessEngine.doRealize(ProcessEngine.java:77)
at com.sun.media.RealizeWorkThread.process(BasicController.java:1400)
at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ok, i just did some further debuging. The Application runs, when i am not using my own video effects. In this video effect i only analyse the frames which the input buffer brings me...
...how can i now make use of this effect?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I think this is just a beginner question...i´ve searched the message archive for a few pages, but didn´t get a hint on my problem.
I installed JMF and Fobs4JMF on my Windows XP. I did the installation instructions for Fobs4JMF:
* Installed JMF
* Installed Fobs4JMF with the installer
* adapted the classpath (.;.;C:\PROGRA~1\JMF21~1.1E\lib\sound.jar;C:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1E\lib;C:\Programme\Fobs4JMF\fobs4jmf.jar;C:\Programme\Fobs4JMFjmf.jar)
* copied the fobs4jmf.dll into win/sys32 and java/lib/i386 folder
* copied the *.properties from fobs folder into the jmf folder
Now i´m able to play for example avi files with the JMF JMStudio. So i think all is fine now. If i try to play the same avi file out of a small java application i get a exception like the above.
I think this is not a big problem...just a small thing. i forgot to tell, that i even added fobs4jmf.jar in my build path of my application.
this is the exception:
Fobs4JMF - Native shared library found
18.5First Position: 0, 0 Duration: 18500
Frame Rate: 4
Opening Thread[JMF thread: com.sun.media.ProcessEngine@a9c09e[ com.sun.media.ProcessEngine@a9c09e ] ( configureThread),9,system]
Fobs Java2DRenderer: setInputFormat
Fobs Java2DRenderer: setInputFormat
Video format: FFMPEG_VIDEO, 740x528, FrameRate=4.0, Length=390720 0 extra bytes
Exception in thread "JMF thread: com.sun.media.ProcessEngine@a9c09e[ com.sun.media.ProcessEngine@a9c09e ] ( realizeThread)" java.lang.NullPointerException
at com.omnividea.media.renderer.video.Java2DRenderer.setInputFormat(Java2DRenderer.java:87)
at com.sun.media.SimpleGraphBuilder.verifyInput(SimpleGraphBuilder.java:925)
at com.sun.media.SimpleGraphBuilder.matches(SimpleGraphBuilder.java:900)
at com.sun.media.SimpleGraphBuilder.matches(SimpleGraphBuilder.java:860)
at com.sun.media.SimpleGraphBuilder.verifyTargetPlugins(SimpleGraphBuilder.java:425)
at com.sun.media.ProcessEngine$ProcGraphBuilder.findTarget(ProcessEngine.java:1011)
at com.sun.media.SimpleGraphBuilder.doBuildGraph(SimpleGraphBuilder.java:220)
at com.sun.media.SimpleGraphBuilder.buildGraph(SimpleGraphBuilder.java:168)
at com.sun.media.ProcessEngine$ProcGraphBuilder.buildCustomGraph(ProcessEngine.java:1330)
at com.sun.media.ProcessEngine$ProcGraphBuilder.buildCustomGraph(ProcessEngine.java:1210)
at com.sun.media.ProcessEngine$ProcGraphBuilder.buildGraph(ProcessEngine.java:944)
at com.sun.media.ProcessEngine$ProcTControl.buildTrack(ProcessEngine.java:655)
at com.sun.media.PlaybackEngine.doRealize1(PlaybackEngine.java:326)
at com.sun.media.ProcessEngine.doRealize(ProcessEngine.java:77)
at com.sun.media.RealizeWorkThread.process(BasicController.java:1400)
at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
ok, i just did some further debuging. The Application runs, when i am not using my own video effects. In this video effect i only analyse the frames which the input buffer brings me...
...how can i now make use of this effect?