Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

An easy install of the ffmpeg command line tool UNIX
I always wanted to use the ffmpeg command line tool (the one ffmpegX is the GUI of) in Terminal, but I didn't find it in Fink, and I didn't want to compile it from an experimental source. Well, there is a working binary of ffmpeg bundled with ffmpegX. To get it, simply follow these steps:
  1. Get ffmpegX from the above URL. It's a pretty useful tool, because the ffmpeg synatx isn't quite easy to handle.
  2. Control-click on the ffmpegX application, choose Show Package Contents from the pop-up menu, and navigate into Resources.
  3. Copy ffmpeg to /usr/local/bin.
  4. Execute the following in Terminal (as admin):
    sudo chown root:wheel /usr/local/bin/ffmpeg
    sudo chmod 755 /usr/local/bin/ffmpeg
Now you have a working version of ffmpeg in the Terminal.

[robg adds: There may be other ways to get the binary as well, but this one seems quite simple.]
  • Currently 3.20 / 5
  You rated: 3 / 5 (10 votes cast)

An easy install of the ffmpeg command line tool | 10 comments | Create New Account
Click here to return to the 'An easy install of the ffmpeg command line tool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Available in fink unstable
Authored by: caek on Dec 22, '06 10:20:58AM
ffmpeg is available from Fink, but you'll have to enable unstable.

[ Reply to This | # ]
Best ffmepg .m4v settings?
Authored by: Bob O on Dec 22, '06 10:28:53AM

Thanks for the Mac ffmepg install procedure. I'd love to know the best ffmpeg settings to convert a MPEG2 file (.mpg) from my PVR (BeyondTV) to a .m4v (MPEG4) that can be shared in iTunes. Does anyone know the setting Apple uses?

[ Reply to This | # ]
Best ffmepg .m4v settings?
Authored by: chally on Dec 22, '06 02:34:12PM

Don't know about that, but I'll bet VisualHub or iSquint will do it. It handled my ReplayTV MPEG2 files just fine (and they're funky, but it figured it out.)

[ Reply to This | # ]
Best ffmepg .m4v settings?
Authored by: merlyn on Dec 22, '06 03:26:53PM

VisualHub is a great interface to ffmpeg... much cleaner than ffmpegX, and far more sane than the craziness of trying to do it at the commandline.

Also, VisualHub includes a "publish to Tivo" plugin. Yeay, finally I can get video content on to my tivo! Yeay. Between that, and the recently produced "Tivodecode", I now have two-way video with my tivo.

[ Reply to This | # ]
Best ffmepg .m4v settings?
Authored by: Anonymous on Dec 22, '06 09:33:59PM

I have a Miglia TVMini HD, and I've found that the MPEG2 streams often have dropped packets. Last I checked, ffmpeg does not handle MPEG-TS properly, so it is not really useful for transcoding your PVR data to MPEG4 format; unless the tele signal is nearly flawless, the audio and video will not sync. I've found that the Mencoder features of MPlayer do (since October, I think) handle "TS" transport streams properly now, resulting in an efficient, fast, transcode to MPEG4.

[ Reply to This | # ]
Add to $PATH
Authored by: bricoleur on Dec 24, '06 01:27:48PM

Another way to go about it may be to add the path to the executable to your $PATH environment variable, or symlink to /usr/local/bin/ and just leave the application binary in place.

[ Reply to This | # ]
m4v settings
Authored by: barryjaylevine on Dec 26, '06 08:15:28AM

This might be obvious but why not use ffmpegX? The standard settings for 640x iPod use are great. If you use the 320x setting, set Qmin to 3 and Qmax to 28. Also set ME function to Multi-Hexagon or Exhaustive (the latter if you don't mind the extra time it will take). You'll end up with about as good an H264 video as is possible without using two-pass.

Two things in this world aren't overrated: Macintosh and Lemon Meringue Pie.

[ Reply to This | # ]
An easy install of the ffmpeg command line tool
Authored by: kloguy on Dec 27, '06 09:18:00PM

ffmpeg is avaiable on darwinports.

[ Reply to This | # ]
An easy install of the ffmpeg command line tool
Authored by: errolflynn on Mar 04, '10 02:42:41AM

thanks Rob. but I have a problem. In leopard there seems to be no /usr/local/bin, just lib and share.
can I put it in lib?

[ Reply to This | # ]
An easy install of the ffmpeg command line tool
Authored by: tjavailable on May 10, '11 01:21:19AM
Thanks for this article. What I would like to add here is that some functions of FFmpeg and its commands Changing the Frame Rate: Syntax: ffmpeg -i inputfile -r 5 outputfile. Extracting Audio From The Video: Syntax: ffmpeg -i input.avi -vn -ar 44100 -ac 2 -ab 192 -f mp3 audio.mp3 The -vn option holds the key to this command. This option is used when we want to disable the video recording Converting Images To Videos: Suppose you have a collection of images named as say image1.jpg,image2.jpg and you want to view them in the video format.You can do this by running this command on the shell. Syntax: ffmpeg -f image2 -i image%d.jpg output.mpg. To know more visit:

[ Reply to This | # ]