ffmpeg没有找到vcodec libx264

Ofe*_*all 11 ffmpeg video-encoding libavcodec

我安装了最新的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'

先感谢您.

cia*_*tek 24

在Ubuntu 10.10(maverick)中,这个编解码器由来自multiverse存储库的libavcodec-extra-53包提供.

  • Ubuntu Precise Pangolin 12.04 LTS和Ubuntu Oneiric Ocelot 11.10代码:sudo apt-get install ffmpeg libavcodec-extra-53 Ubuntu Natty Narwhal 11.04和Ubuntu Lucid Lynx 10.04 LTS代码:sudo apt-get install ffmpeg libavcodec-extra-52 (2认同)

ism*_*ail 6

你需要配置,./configure --enable-gpl --enable-libx264你需要最近的x264.