果然还是自己编译比较省心...

2013-01-10 17:42:52 +08:00
 alexrezit
用 mencoder 压制视频的时候突然发现不能加载 ass filter, 于是尝试重新安装:

Millennium-Falcon:Desktop Alex$ brew uninstall mplayer
Millennium-Falcon:Desktop Alex$ brew install mplayer

还是不行. 尝试手动编译安装:

Millennium-Falcon:Desktop Alex$ c /Library/Caches/Homebrew/mplayer-1.1.tar.xz .
Millennium-Falcon:Desktop Alex$ tar -xf mplayer-1.1.tar.xz
Millennium-Falcon:Desktop Alex$ d MPlayer-1.1/
Millennium-Falcon:MPlayer-1.1 Alex$ ./configure --prefix=/usr/local/Cellar/mplayer/1.1 --cc=cc --host-cc=cc --disable-cdparanoia --disable-libopenjpeg --disable-x11 --enable-libass
Unknown parameter: --enable-libass

失败. 用 Google 搜索, 无果. 但是发现 Google 自动添加了包含 ffmpeg 的搜索结果, 由此想到可能是 ffmpeg 的问题:

Millennium-Falcon:Desktop Alex$ brew uninstall ffmpeg
Millennium-Falcon:Desktop Alex$ brew install ffmpeg

无效. 尝试手动编译安装:

Millennium-Falcon:Desktop Alex$ c /Library/Caches/Homebrew/ffmpeg-1.0.1.tar.bz2 .
Millennium-Falcon:Desktop Alex$ tar -xf ffmpeg-1.0.1.tar.bz2
Millennium-Falcon:Desktop Alex$ d ffmpeg-1.0.1/
Millennium-Falcon:ffmpeg-1.0.1 Alex$ ./configure --prefix=/usr/local/Cellar/ffmpeg/1.0.1 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libass
Millennium-Falcon:ffmpeg-1.0.1 Alex$ make install

然后尝试压片:

Millennium-Falcon:Desktop Alex$ ffmpeg -i Operation\ Kingfish.mp4 -vf ass=Operation\ Kingfish.ass -vcodec libx264 -preset slower -acodec copy output.mp4

结果:

Unknown encoder 'x264'

干! 你! 妹!

好悲桑啊...

Millennium-Falcon:Desktop Alex$ d ffmpeg-1.0.1/
Millennium-Falcon:ffmpeg-1.0.1 Alex$ ./configure --prefix=/usr/local/Cellar/ffmpeg/1.0.1 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libass --enable-libx264
Millennium-Falcon:ffmpeg-1.0.1 Alex$ make install

T T
2440 次点击
所在节点    分享发现
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/57202

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX