如何在Java中播放3gp文件?

| 这是一个Java问题。 我尝试使用Fobs4jmf播放3gp。我可以看到视频,但没有声音。 有什么解决办法吗? 我尝试了一个名为xuggler的较新的库,但我只看到如何操作,修改视频,而不是播放视频文件。可以使用它播放视频吗? 这是Fobs4jmf无法播放的音频文件(纯声音文件) http://gonow.no-ip.org/example.3gp 谢谢     
已邀请:
        在您的example.3gp中,它声明其属性如下(使用KMP Player):
C:\\Documents and Settings\\DEVELOPER\\Desktop\\example.3gp
   General
      Complete name : C:\\Documents and Settings\\DEVELOPER\\Desktop\\example.3gp
      Format : MPEG-4
      Format profile : 3GPP Media Release 4
      Codec ID : 3gp4
      File size : 5.23 KiB
      Duration : 3s 460ms
      Overall bit rate : 12.4 Kbps
   Audio #1
      ID : 1
      Format : AMR
      Format/Info : Adaptive Multi-Rate
      Format profile : Narrow band
      Codec ID : samr
      Duration : 3s 460ms
      Bit rate mode : Constant
      Bit rate : 5 200 bps
      Channel(s) : 1 channel
      Sampling rate : 8 000 Hz
      Resolution : 16 bits
      Stream size : 2.20 KiB (42%)
      Title : SoundHandle
      Writing library : 
您可以通过VLCJ使用libVLC / VLC库,该库应该能够打开任何媒体格式和容器。但是,问题在于,由于以下陈述(来自维基百科),libVLC / VLC的GPL版本不支持3GP容器中使用的AMR音频格式:   要将AMR用作音频编解码器,必须使用AMR编译VLC和FFmpeg   支持。这是因为AMR许可证与   VLC许可证。 此外,当引用此消息http://mailman.videolan.org/pipermail/vlc-devel/2011-February/078807.html时,它表示:   在任何情况下,解析AMR都由libavformat和libavcodec从   FFmpeg项目,而不是直接由VideoLAN项目。 通过上面的消息线程,即使它能够通过受限制的版本打开AMR音频格式,也确实存在AMR文件查找问题: http://mailman.videolan.org/pipermail/vlc-devel/2011-February/078814.html     

要回复问题请先登录注册