还是那个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
帮帮忙吧,快崩溃了,谢谢了~~!
------解决方案--------------------你这个点 很有点晚。。。。
不过留个言 看看别人的回答。我也想知道。
------解决方案--------------------问题了解的不是很清楚