TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

FFmpeg on Mac OS X How-to

12 点作者 garret将近 17 年前

5 条评论

Zev将近 17 年前
I had some problems when compiling faac/faad on my machine (Macbook Pro, Leopard, Xcode 3.1). Could just be my luck, but here's what was wrong / the fixes incase it happened to someone else.<p>On faac, I had errors like<p><pre><code> ../libtool: line 792: X--tag=CC: command not found ../libtool: line 792: X--mode=compile: command not found" </code></pre> After googling around, turns out it was a problem with ltmain.sh - which ./bootstrap creates. It checks to see if the OS is Darwin, and then runs glibtoolize instead of libtoolize (Apple includes glibtoolize it seems, its in my /usr/bin). However glibtoolize isn't generating the correct file for some reason. Not sure why this is. I've got autoconf/automake/libtool installed from a past project so I used those instead of figuring out exactly what was wrong.<p>To get FAAC to compile, I ran "aclocal -I .; autoheader; libtoolize --automake; automake --add-missing; autoconf" manually instead. This one worked properly and was able to install.<p>FAAD was had more wrong then just glibtoolize generating a wrong file. It would generate a configure file, however it wasn't complete. The README here didn't help install for OS X, and the only INSTALL file i could find was for the xmms plugin. So I read the *nix README. Which said to run autoreconf -vif first. That brought up:<p><pre><code> /usr/local/share/automake-1.10/am/depend2.am: am__fastdepCXX does not appear in AM_CONDITIONAL /usr/local/share/automake-1.10/am/depend2.am: The usual way to define `am__fastdepCXX' is to add `AC_PROG_CXX' /usr/local/share/automake-1.10/am/depend2.am: to `configure.in' and run `aclocal' and `autoconf' again. </code></pre> To fix this, open up configure.in and find the only mention of AC_PROG_CXX. Change that line from "dnl AC_PROG_CXX" to just "AC_PROG_CXX" Then rerun "aclocal -I .; autoheader; libtoolize --automake; automake --add-missing; autoconf" instead of relying on ./boostrap. Then it compiled correctly for me.<p>If anyone wants, I could just toss together a quick .pkg that would install faac 1.26 and faad 2.61. lame (3.98) and ffmpeg's (latest svn, 14469) installs were straightforward enough and didn't have issues so those shouldn't need a pkg. Though ffmpeg was missing a ton of libraries. Suppose thats what I get (along with fixing problems like the one above) for not using fink or macports.
kylec将近 17 年前
If people are looking for a simple way to convert audio and video on Mac OS X, I suggest looking into AudialHub and VisualHub by Techspansion (<a href="http://www.techspansion.com/" rel="nofollow">http://www.techspansion.com/</a>)<p>Though it's not free, I've been very impressed with the quality of the video conversions I've done and the simplicity of the user interface.<p>(note: this is not my software, I'm just a fan)
评论 #261273 未加载
uuilly将近 17 年前
Our app uses ffmpeg. It was a total pain in the arse getting it to build on Mac/Win/Linux w/ h.264. I have scripts that build it on each platform. If anyone needs them email me.
评论 #261144 未加载
Oompa将近 17 年前
I hate How-tos like this that resort to fink or Macports.
thomasswift将近 17 年前
this is brilliant, I just tried using macports, which didn't work, after a quick break I found this link, now hopefully this works.