我正在尝试使用JME3X-JFX播放flv文件,我使用demo class并可以通过http url方法播放their file。我也可以下载他们的flv并使用flv方法播放它。但我似乎无法播放我自己的flv文件(使用网站后下载,例如。keepvid(尝试了一对)从youtube视频网址(开放许可证)转换)。
它的声音类似于this question,只有黑屏显示,但对我来说,视频声音播放。我尝试使用RichFLV编辑元数据,使其与有效的演示视频的元数据类似。
另外,我尝试播放的视频至少是磁盘文件大小的一半(下载时)。
此外,大多数avis都不会为我播放,因为我得到一个不支持YCbCr_422,我认为可能是mp4的苹果版本。我不需要mp4但我需要至少一种类型才能工作。
回到FLV。 我只是交换了一行:
final Media media = new Media("file:////Users/juliusskye/Desktop/FYPI/simplevoicehud/assets/Video/test.flv");
(这是他们要测试的视频重命名)到
final Media media = new Media("file:////Users/juliusskye/Desktop/FYPI/simplevoicehud/assets/Video/myvideo.flv");
,不同之处在于,工作版本(他们的视频)会调整大小,但我不会。
====== 工作的 =========
Oct 23, 2015 6:04:02 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.0.10
Oct 23, 2015 6:04:02 PM com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory: /Users/juliusskye/Desktop/FYPI/simplevoicehud
Oct 23, 2015 6:04:02 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Lwjgl 2.9.0 context running on thread LWJGL Renderer Thread
Oct 23, 2015 6:04:02 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Adapter: null
Oct 23, 2015 6:04:02 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Driver Version: null
Oct 23, 2015 6:04:02 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Vendor: Intel Inc.
Oct 23, 2015 6:04:02 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: OpenGL Version: 2.1 INTEL-8.24.16
Oct 23, 2015 6:04:02 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Renderer: Intel HD Graphics 3000 OpenGL Engine
Oct 23, 2015 6:04:02 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: GLSL Ver: 1.20
2015-10-23 18:04:03.855 java[45029:ae17] Error loading /Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio: dlopen(/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio: no matching architecture in universal wrapper
2015-10-23 18:04:03.857 java[45029:ae17] Cannot find function pointer NewDigiCoreAudioPlugIn for factory B8A063B5-2F3D-444A-88CB-D0B8F1B22042 in CFBundle/CFPlugIn 0x7fb20bc51a40 </Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin> (bundle, not loaded)
Oct 23, 2015 6:04:03 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Device: OpenAL Soft
Oct 23, 2015 6:04:03 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Vendor: OpenAL Community
Oct 23, 2015 6:04:03 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Renderer: OpenAL Soft
Oct 23, 2015 6:04:03 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Version: 1.1 ALSOFT 1.15.1
Oct 23, 2015 6:04:03 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: AudioRenderer supports 64 channels
Oct 23, 2015 6:04:03 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio effect extension version: 1.0
Oct 23, 2015 6:04:03 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio max auxilary sends: 4
resize : 540 x 540
============ 不工作 ==============
Oct 23, 2015 6:03:02 PM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.0.10
Oct 23, 2015 6:03:03 PM com.jme3.system.Natives extractNativeLibs
INFO: Extraction Directory: /Users/juliusskye/Desktop/FYPI/simplevoicehud
Oct 23, 2015 6:03:03 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Lwjgl 2.9.0 context running on thread LWJGL Renderer Thread
Oct 23, 2015 6:03:03 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Adapter: null
Oct 23, 2015 6:03:03 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Driver Version: null
Oct 23, 2015 6:03:03 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Vendor: Intel Inc.
Oct 23, 2015 6:03:03 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: OpenGL Version: 2.1 INTEL-8.24.16
Oct 23, 2015 6:03:03 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: Renderer: Intel HD Graphics 3000 OpenGL Engine
Oct 23, 2015 6:03:03 PM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: GLSL Ver: 1.20
2015-10-23 18:03:04.350 java[44916:d107] Error loading /Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio: dlopen(/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio, 262): no suitable image found. Did find:
/Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin/Contents/MacOS/Digidesign CoreAudio: no matching architecture in universal wrapper
2015-10-23 18:03:04.352 java[44916:d107] Cannot find function pointer NewDigiCoreAudioPlugIn for factory B8A063B5-2F3D-444A-88CB-D0B8F1B22042 in CFBundle/CFPlugIn 0x7f9d025d6fa0 </Library/Audio/Plug-Ins/HAL/Digidesign CoreAudio.plugin> (bundle, not loaded)
Oct 23, 2015 6:03:04 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Device: OpenAL Soft
Oct 23, 2015 6:03:04 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Vendor: OpenAL Community
Oct 23, 2015 6:03:04 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Renderer: OpenAL Soft
Oct 23, 2015 6:03:04 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio Version: 1.1 ALSOFT 1.15.1
Oct 23, 2015 6:03:04 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: AudioRenderer supports 64 channels
Oct 23, 2015 6:03:04 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio effect extension version: 1.0
Oct 23, 2015 6:03:04 PM com.jme3.audio.lwjgl.LwjglAudioRenderer initInThread
INFO: Audio max auxilary sends: 4
答案 0 :(得分:1)
JavaFX库仅支持使用VP6编解码器编码的flv,其中很少有程序支持转换。
http://forums.macrumors.com/threads/vp6-codec-im-out-of-luck-arent-i.81314/ https://docs.oracle.com/javafx/2/api/javafx/scene/media/package-summary.html
我能够下载Sorenson Squeeze的试用版,允许在Mac上转换为VP6。 encoding.com似乎也提供转换即服务。