【问题标题】:xuggler could not find input codec id (avi, msvideo1)xuggler 找不到输入编解码器 ID (avi, msvideo1)
【发布时间】:2012-02-24 03:23:44
【问题描述】:

我使用 xuggle MediaTool 将不同格式的视频转换为 flv。在大多数情况下它工作正常,但是当我尝试使用msvideo1、indeo3 或cinepark 编码的.avi 文件时,xuggler 在reader.readPacket() 上抛出java.lang.IllegalArgumentException: could not find input codec id。

我检查了,我的 ffmpeg 支持 msvideo 解码:

 > ffmpeg -codecs
 (...)
 D V D  msvideo1        Microsoft Video 1
 D V D  indeo3          Intel Indeo 3
 D V D  cinepak         Cinepak

更重要的是,我能够从命令行转换使用这些编解码器编码的文件(使用 ffmpeg)。

这种行为的原因可能是什么?

【问题讨论】:

    标签: java video ffmpeg video-processing xuggle


    【解决方案1】:

    我想这是过时的 xuggler 版本的问题。当前版本(xuggler 3.4)是在大约 2 年前发布的,xuggler 开发在那段时间取得了进展。 我问的问题在上一个版本here is a ticket related to this problem 之后得到了修复。 我从源代码构建了 xuggler,它解决了这个问题。

    (顺便说一句。由于像素格式问题,我最终迁移到ffmpeg 的执行。)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-05
      • 2012-02-02
      • 2021-03-01
      • 2011-02-26
      • 2011-04-13
      • 1970-01-01
      • 1970-01-01
      • 2014-03-16
      相关资源
      最近更新 更多