Here is an improved version of
Originally Posted by Janke
that includes instructions how to install ffmpeg and a working command tested on Mac OS X 10.5.8. The version of ffmpeg installed here may not have all the usual encoding options because it has not been linked with the external encoders usually done with precompiled versions of ffmpeg. This basic install will decode AVCHD and encode mjpeg just fine, which is all that is needed here.
1. If you don't already have Xcode installed, then insert Mac OS X Install Disk 1, go to Optional Installs Xcode Tools and install XcodeTools.mpkg.
2. Download the ffmpeg program
3. Open a terminal window and install ffmpeg using the commands
The last three commands take a while and give lots of output. The last command will ask for your password to confirm the install.
$ mkdir ~/work
$ cd ~/work
$ cp ~/Downloads/ffmpeg-0.5.tar.bz2 .
$ tar jxf ffmpeg-0.5.tar.bz2
$ cd ffmpeg-0.5
$ ./configure --prefix=/usr/local --enable-gpl --enable-nonfree
$ sudo make install
4. Check that ffmpeg is installed.
5. Change to the directory where the mts files are and type
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
built on Oct 21 2009 14:54:34, gcc: 4.0.1 (Apple Inc. build 5465)
At least one output file must be specified
Note the bitrate -b 148Mb was too large and -flags +ildct has to be left out in the command from the previous post. Note also if you are transcoding AVCHD from a PAL camcorder use -r 25 instead of -r 30000/1001.
$ ffmpeg -i 00045.mts -r 30000/1001 -acodec pcm_s16le \
-vcodec mjpeg -b 100Mb -f mov -y 00045.mov