获取 javax.media.NoProcessorException
以下是我的音频、视频录制项目的代码。正在创建音频文件,但在创建视频文件“testVideo.mov”时,我收到“javax.media.NoProcessorException:找不到处理器”异常。
ImageDataSource ids = new ImageDataSource(width, height, frameRate);
Processor p;
try
{
UFBScrRecLogs.write("- create processor for the image datasource ...");
p = Manager.createProcessor(ids);
} catch(Exception e){e.printStackTrace();}
当我在 Eclipse 中执行此代码时,它工作正常,但是当我制作应用程序的 Windows 安装程序并在安装后运行此应用程序时,我收到上述错误。
我不明白为什么它在 Eclipse 环境中运行而不是作为 Windows 应用程序运行。
Following is the code from my audio, video recording project. The audio file is getting created but while creating video file "testVideo.mov" I am getting "javax.media.NoProcessorException: Cannot find a Processor" exception.
ImageDataSource ids = new ImageDataSource(width, height, frameRate);
Processor p;
try
{
UFBScrRecLogs.write("- create processor for the image datasource ...");
p = Manager.createProcessor(ids);
} catch(Exception e){e.printStackTrace();}
when I am executing this code in eclipse it is working fine but when I make windows installer of the application and ran this application after installing it then I am getting above error.
I am not getting why it is running in eclipse environment but not as windows application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可能是类路径问题。也许windows环境不提供quicktime处理器。检查 eclipse 构建路径以及 Windows 计算机上的类路径,以了解 java 版本(不同的标准库)和其他库的任何差异。
另外检查应用程序的类路径设置。
Might be a classpath problem. Maybe the windows environment does not provide a quicktime processor. Check the eclipse build path as well as the classpath on the windows machine for any differences in java version (different standard libs) and other libraries.
Plus check the classpath settings of your application.
我找到了解决方案。其实是jmf jar的问题。我以前使用旧的 jmf jar,现在我使用最新的 jmf jar,并且没有出现异常。
I found the solution. Actually it was jmf jar problem. I was using a old jmf jar now I used latest jmf jar and exception is not coming.