I seem to be having problems using an MPEG-2 TS stream through a custom DataSource.
At the moment its a simple PullDataSource that creates an InputSourceStream to stream the data through. It works fine on MPEG-1 streams, but when I use it on an MPEG-2 TS stream it creates an exception outside of java.
The same MPEG-2 TS Stream works fine within JMStudio, and works fine if I load it using:
Its only loading the player through a PullDataSource that provides problems.
I have no idea whats wrong. I notice that the FOBS package comes with a custom DataSource class though, maybe thats my problem?
Anyone got any ideas?
Here is the error log:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x650072
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at com.sun.media.amovie.ActiveMovie.openStream(Native Method)
at com.sun.media.amovie.ActiveMovie.<init>(ActiveMovie.java:80)
at com.sun.media.amovie.AMController.createActiveMovie(AMController.java:324)
at com.sun.media.amovie.AMController.doRealize(AMController.java:416)
- locked <02AB1BF8> (a java.lang.Integer)
at com.sun.media.RealizeWorkThread.process(BasicController.java:1400)
at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
Local Time = Mon Aug 23 11:13:16 2004
Elapsed Time = 1
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_03-b02 mixed mode)
#
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
the current implementation of Fobs4Jmf does not allow custom DataSources. This is due to the fact that, to be able to use ffmpeg, I had to use the i/o structures and functions they provide. Only file:// protocol is now supported, though inthe future we are planning to improve this (ffmpeg supports other protocols, as rtp://).
I will be glad to try to help you if you want to explain what you're trying to do with the Custom DataSource. Maybe there's another solution instead.
Cheers!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Unfortunately, i want to get a stream from a custom protocol (the MythTV protocol) and display it, which afaik, would require a custom DataSource.
Im not quite sure how to do it without a custom DataSource, but if you know a way, that'd be great :)
I suppose if RTP is going to be supported i could stream in the data, then restream it out as an rtp stream to myself using local loopback or something, either that or maybe stream it to a file and use it as a ring buffer kind of thing.
Clearly these arent very efficient solutions though :)
Cheers,
Raal
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I seem to be having problems using an MPEG-2 TS stream through a custom DataSource.
At the moment its a simple PullDataSource that creates an InputSourceStream to stream the data through. It works fine on MPEG-1 streams, but when I use it on an MPEG-2 TS stream it creates an exception outside of java.
The same MPEG-2 TS Stream works fine within JMStudio, and works fine if I load it using:
thePlayer = Manager.createRealizedPlayer(new URL("file:///PATH"));
Its only loading the player through a PullDataSource that provides problems.
I have no idea whats wrong. I notice that the FOBS package comes with a custom DataSource class though, maybe thats my problem?
Anyone got any ideas?
Here is the error log:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x650072
Function=[Unknown.]
Library=(N/A)
NOTE: We are unable to locate the function name symbol for the error
just occurred. Please refer to release documentation for possible
reason and solutions.
Current Java thread:
at com.sun.media.amovie.ActiveMovie.openStream(Native Method)
at com.sun.media.amovie.ActiveMovie.<init>(ActiveMovie.java:80)
at com.sun.media.amovie.AMController.createActiveMovie(AMController.java:324)
at com.sun.media.amovie.AMController.doRealize(AMController.java:416)
- locked <02AB1BF8> (a java.lang.Integer)
at com.sun.media.RealizeWorkThread.process(BasicController.java:1400)
at com.sun.media.StateTransitionWorkThread.run(BasicController.java:1339)
Dynamic libraries:
0x00400000 - 0x00406000 C:\Program Files\j2sdk\bin\java.exe
0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78086000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
0x6D340000 - 0x6D46B000 C:\Program Files\j2sdk\jre\bin\client\jvm.dll
0x77D40000 - 0x77DCC000 C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
0x6D1E0000 - 0x6D1E7000 C:\Program Files\j2sdk\jre\bin\hpi.dll
0x6D310000 - 0x6D31E000 C:\Program Files\j2sdk\jre\bin\verify.dll
0x6D220000 - 0x6D239000 C:\Program Files\j2sdk\jre\bin\java.dll
0x6D330000 - 0x6D33D000 C:\Program Files\j2sdk\jre\bin\zip.dll
0x10000000 - 0x10007000 C:\Program Files\IntelliJ-IDEA-4.0\bin\breakgen.dll
0x6D2E0000 - 0x6D2EE000 C:\Program Files\j2sdk\jre\bin\net.dll
0x71AD0000 - 0x71AD8000 C:\WINDOWS\System32\WSOCK32.dll
0x71AB0000 - 0x71AC5000 C:\WINDOWS\System32\WS2_32.dll
0x71AA0000 - 0x71AA8000 C:\WINDOWS\System32\WS2HELP.dll
0x71A50000 - 0x71A8B000 C:\WINDOWS\system32\mswsock.dll
0x71A90000 - 0x71A98000 C:\WINDOWS\System32\wshtcpip.dll
0x6D000000 - 0x6D105000 C:\Program Files\j2sdk\jre\bin\awt.dll
0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV
0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.dll
0x771B0000 - 0x772D1000 C:\WINDOWS\system32\ole32.dll
0x5AD70000 - 0x5ADA4000 C:\WINDOWS\System32\uxtheme.dll
0x6D190000 - 0x6D1E0000 C:\Program Files\j2sdk\jre\bin\fontmanager.dll
0x51000000 - 0x5104D000 C:\WINDOWS\System32\ddraw.dll
0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll
0x5C000000 - 0x5C0C8000 C:\WINDOWS\System32\D3DIM700.DLL
0x0B060000 - 0x0B08E000 C:\Program Files\UltraMon\RTSUltraMonHook.dll
0x0B4F0000 - 0x0B505000 C:\WINDOWS\system32\jmutil.dll
0x0B6A0000 - 0x0B6AD000 C:\WINDOWS\system32\jmam.dll
0x76FD0000 - 0x77048000 C:\WINDOWS\System32\CLBCATQ.DLL
0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.dll
0x77050000 - 0x77115000 C:\WINDOWS\System32\COMRes.dll
0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
0x35500000 - 0x35708000 C:\WINDOWS\System32\quartz.dll
0x72D20000 - 0x72D29000 C:\WINDOWS\System32\wdmaud.drv
0x72D10000 - 0x72D18000 C:\WINDOWS\System32\msacm32.drv
0x77BE0000 - 0x77BF4000 C:\WINDOWS\System32\MSACM32.dll
0x77BD0000 - 0x77BD7000 C:\WINDOWS\System32\midimap.dll
0x0B880000 - 0x0B8A3000 C:\WINDOWS\System32\devenum.dll
0x0B8B0000 - 0x0B972000 C:\WINDOWS\System32\vsfilter.dll
0x763B0000 - 0x763F5000 C:\WINDOWS\system32\comdlg32.dll
0x70A70000 - 0x70AD5000 C:\WINDOWS\system32\SHLWAPI.dll
0x71950000 - 0x71A34000 C:\WINDOWS\WinSxS\X86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\COMCTL32.dll
0x773D0000 - 0x77BC2000 C:\WINDOWS\system32\SHELL32.dll
0x63000000 - 0x63096000 C:\WINDOWS\system32\WININET.dll
0x762C0000 - 0x76348000 C:\WINDOWS\system32\CRYPT32.dll
0x762A0000 - 0x762B0000 C:\WINDOWS\system32\MSASN1.dll
0x77340000 - 0x773CB000 C:\WINDOWS\system32\comctl32.dll
0x0BA50000 - 0x0BA9E000 C:\WINDOWS\System32\RealMediaSplitter.ax
0x0BAA0000 - 0x0BAF4000 C:\WINDOWS\System32\MatroskaSplitter.ax
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
Local Time = Mon Aug 23 11:13:16 2004
Elapsed Time = 1
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_03-b02 mixed mode)
#
Hi,
the current implementation of Fobs4Jmf does not allow custom DataSources. This is due to the fact that, to be able to use ffmpeg, I had to use the i/o structures and functions they provide. Only file:// protocol is now supported, though inthe future we are planning to improve this (ffmpeg supports other protocols, as rtp://).
I will be glad to try to help you if you want to explain what you're trying to do with the Custom DataSource. Maybe there's another solution instead.
Cheers!
Unfortunately, i want to get a stream from a custom protocol (the MythTV protocol) and display it, which afaik, would require a custom DataSource.
Im not quite sure how to do it without a custom DataSource, but if you know a way, that'd be great :)
I suppose if RTP is going to be supported i could stream in the data, then restream it out as an rtp stream to myself using local loopback or something, either that or maybe stream it to a file and use it as a ring buffer kind of thing.
Clearly these arent very efficient solutions though :)
Cheers,
Raal