FFMPEG升级并安装新的依赖项

发布于 2024-11-23 18:48:57 字数 535 浏览 3 评论 0原文

我正在创建一个需要流式传输视频的网站,并且视频必须与大多数设备(Iphone、Ipad、Android...)兼容。我正在使用 Kaltura HTML5 播放器,但为此我需要将视频转换为 3 种不同的格式:WebM/VP8、OGG/Theora、MP4/h264。以前我使用 FFMPEG 将视频从 avi|wmv|flv|mpg 转换为 FLV。

我发现一篇很好的文章解释了如何创建新安装,但由于我已经安装了 FFMPEG,我想知道是否有选项可以在不安装新安装的情况下升级 FFMPEG(我尝试在 google 上搜索,但是没有结果:( ),并保持与前一个相同的配置?以及如何添加新的依赖项以允许我将视频转换为我上面提到的 3 种不同的格式这是所需的依赖项:orbis。 , x264、faac、theora、vpx。如果您想看一下,这篇文章有很好的解释:http:// paulrouget.com/e/converttohtml5video/

谢谢 布鲁诺·费尔南德斯

I am creating a website that needs to stream videos, and videos must be compatible with most of device(Iphone, Ipad, Android...). I am using Kaltura HTML5 player, but for that i need to convert the videos for 3 diferent formts: WebM/VP8, OGG/Theora, MP4/h264. Previous i was using FFMPEG to convert the videos from avi|wmv|flv|mpg to FLV.

I found a nice article explaining how i can create a new install of this, but as i already have the FFMPEG installed, i would like to know if there are the option to upgrade FFMPEG without a new installation(i tried to search on google but with no results :( ), and keep the same config from the previous one? And also how i can add the new dependencies to allow me to convert the videos to the 3 diferent formats that i mentioned above. This are the dependencies needed: orbis, x264, faac, theora, vpx. This article has a good explanation if you want to have a look: http://paulrouget.com/e/converttohtml5video/

Thanks
Bruno Fernandes

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

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

发布评论

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

评论(2

遇到 2024-11-30 18:48:58

从一个构建到下一个构建维护 ffmpeg 配置的最佳方法是保留 git 签出目录。当您执行 git pull 将结帐升级到最新版本时,您只需说 make 即可使用与以前相同的设置进行构建。

如果您仍然拥有 ffmpeg 源代码树,但尚未从当前 git 存储库中签出,您可以进行一次干净的签出,然后将其放在旧树的顶部如下所示:

$ cd parent/of/old/ffmpeg/tree
$ git clone git://git.videolan.org/ffmpeg.git ffmpeg-temp
$ cd ffmpeg-temp
$ find | cpio -pud ../ffmpeg
$ cd ../ffmpeg
$ make

此时,它应该自动重新配置和构建,除非两个版本之间的差异太大,需要手动干预才能重新配置。

由于缺乏用于构建它的源代码树,我不知道如何简单地恢复用于构建现有 ffmpeg 二进制文件的 configure 选项。

The best way to maintain an ffmpeg configuration from one build to the next is to keep the git checkout directory around. When you do a git pull to upgrade your checkout to the latest, you can simply say make to build with the same settings as before.

If you still have your ffmpeg source tree but it wasn't checked out from the current git repo, you may be able to do a clean checkout, then lay it over the top of the old tree like this:

$ cd parent/of/old/ffmpeg/tree
$ git clone git://git.videolan.org/ffmpeg.git ffmpeg-temp
$ cd ffmpeg-temp
$ find | cpio -pud ../ffmpeg
$ cd ../ffmpeg
$ make

At that point, it should auto-reconfigure and build, unless the difference between the two versions is so large it requires manual intervention to reconfigure.

Lacking the source tree used to build it, I don't know an easy way to recover the configure options you used to build your existing ffmpeg binary.

┈┾☆殇 2024-11-30 18:48:58

对你来说绝对太晚了。但对于将来可能偶然发现这一点的人来说,运行以下命令将为您提供当前配置的详细信息:

ffmpeg -version

这是一个示例输出,其中显示了安装的外部库和配置。

ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov  6 2012 23:14:41 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libaacplus --enable-libass --enable-libfaac --enable-libfdk-aac 
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101

It's definitely too late for you. But for people who might stumble upon this in the future, running the following will give you details of the current configuration:

ffmpeg -version

Here is a sample output, which shows the external libraries and configurations for the install.

ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov  6 2012 23:14:41 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libaacplus --enable-libass --enable-libfaac --enable-libfdk-aac 
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文