Linux 上配置的 ffmpeg 0.5 版本是否支持使用 Theora 编解码器进行编码?

发布于 2024-08-20 22:48:15 字数 757 浏览 5 评论 0原文

我已经配置、编译了 FFmpeg 源代码版本 0.5,版本如下:

FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-memalign-hack
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0

在 Linux 主机上。

当我尝试使用theora编解码器使用此版本编码原始yuv视频时,给出的选项如下:

ffmpeg -f rawvideo -pix_fmt yuv420p -s 352x288 -r 30 -i foreman_352_x280_420.yuv -an -vcodec libtheora theora1.ogg

它给出了错误:未知编码器'libtheora'

但是当我在FFmpeg Windows可执行文件中使用相同的命令时(其版本是 FFmpeg 版本 SVN-r12665)它正确编码为 theora 视频。

  1. Linux 上的 ffmpeg 0.5 版本不支持 theora 编码器吗?
  2. 哪个版本的 Linux 设置支持 theora 编码?

I have configured, compiled a FFmpeg source code version 0.5 with versions as below:

FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-memalign-hack
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0

on a linux host.

When I try to encode a raw yuv video using this version using theora codec by giving options as :

ffmpeg -f rawvideo -pix_fmt yuv420p -s 352x288 -r 30 -i foreman_352_x280_420.yuv -an -vcodec libtheora theora1.ogg

It gives an error: Unknown encoder 'libtheora'

But when i use the same command in a FFmpeg windows executable ( whose version is FFmpeg version SVN-r12665) it encoded to a theora video properly.

  1. Doesnt ffmpeg version 0.5 on linux support theora encoder?
  2. Which version for linux setup,would support theora encoding?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

燃情 2024-08-27 22:48:15

如果使用 --enable-libtheora 构建,则可以。

It does if built with --enable-libtheora.

抠脚大汉 2024-08-27 22:48:15

尝试用 target 选项替换 -vcodec

try replacing -vcodec with target option

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文