首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

还是那个JAVA有关问题

2013-04-21 
还是那个JAVA问题-最近要被弄崩溃了~~~解决一个问题,接着又一个问题~~还是关于JMF的音频格式转换我的部分

还是那个JAVA问题-
最近要被弄崩溃了~~~
解决一个问题,接着又一个问题~~还是关于JMF的音频格式转换
我的部分代码
   mediaProcessor.setContentDescriptor(new
                  FileTypeDescriptor(FileTypeDescriptor.WAVE));需要转换的文件格式


  TrackControl track[] = mediaProcessor.getTrackControls();
       boolean encodingPossible = false;
         // Go through the tracks and try to program one of them
         // to output ima4 data.
         for (int i = 0; i < track.length; i++) {
             try {
                 track[i].setFormat(new AudioFormat(AudioFormat.IMA4_MS));
                 encodingPossible = true;
             } catch (Exception e) {
                 // cannot convert to ima4
                 track[i].setEnabled(false);
             }
         }一个遍历变格式,只是,

为什么总是出错啊?
Failed to build a graph for the given custom options.
Failed to realize: com.sun.media.ProcessEngine@8e4805
  Cannot build a flow graph with the customized options:
    Unable to transcode format: mpeglayer3, 44100.0 Hz, 16-bit, Stereo, LittleEndian, Signed, 20000.0 frame rate, FrameSize=32768 bits
      to: ima4/ms, Unknown Sample Rate
      outputting to: WAV

帮帮忙吧,快崩溃了,谢谢了~~!




[解决办法]
你这个点 很有点晚。。。。
     不过留个言 看看别人的回答。我也想知道。
[解决办法]
问题了解的不是很清楚

热点排行