我已经安装了最新的ffmpeg,但似乎找不到视频编解码器。我是否需要完全删除ffmpeg并以不同的方式重新运行./configure才能让ffmpeg找到视频编解码器?
这是我当前的配置:
FFmpeg version git-f61cbc2, Copyright (c) 2000-2011 the FFmpeg developers built on Jan 18 2011 10:59:49 with gcc 4.0.1 (Apple Inc. build 5465) configuration: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64 libavutil 50.36. 0 / 50.36. 0 libavcore 0.16. 1 / 0.16. 1 libavcodec 52.108. 0 / 52.108. 0 libavformat 52.94. 0 / 52.94. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1.74. 0 / 1.74. 0 libswscale 0.12. 0 / 0.12. 0
或者,我可以重新运行make命令来包含库吗?
以下是我的代码转换代码片段:
ffmpeg -i ~/Desktop/watercarts.mov -vcodec libx264 -b 250k -bt 50k -acodec libfaac -ab 56k -ac 2 -s 480x320 ~/Desktop/watercartsipod.mp4
以及错误:
Unknown encoder 'libx264'
提前谢谢你。
发布于 2011-01-20 00:48:01
您需要使用./configure --enable-gpl --enable-libx264进行配置,并且需要最新的x264。
发布于 2011-03-16 11:45:41
在Ubuntu10.10 (maverick)中,这个编解码器是由multiverse仓库中的libavcodec-extra-53包提供的。
发布于 2011-01-20 00:47:21
尝试使用apt-get install进行安装,而不是编译源代码。它将下载所有必要的编解码库(至少在我的gubuntu上)
https://stackoverflow.com/questions/4738047
复制相似问题