らじる★らじるをmp3録音するためrtmpdumpとffmpegをhomebrewでインストール

すでにhomebrewが入っている環境です。
念のためverboseモードで。

mini:~ admin$ brew install -v rtmpdump
==> Downloading http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.4.tar.gz
/usr/bin/curl -f#LA Homebrew 0.9.4 (Ruby 1.8.7-358; Mac OS X 10.7.5) http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.4.tar.gz -C 0 -o /Library/Caches/Homebrew/rtmpdump-2.4.tar.gz.incomplete
######################################################################## 100.0%
tar xf /Library/Caches/Homebrew/rtmpdump-2.4.tar.gz
==> make CC=cc XCFLAGS= XLDFLAGS= MANDIR=/usr/local/Cellar/rtmpdump/2.4/share/man SYS=darwin prefix=/usr/local/Cellar/rtmpdump/2.4 install
make CC=cc XCFLAGS= XLDFLAGS= MANDIR=/usr/local/Cellar/rtmpdump/2.4/share/man SYS=darwin prefix=/usr/local/Cellar/rtmpdump/2.4 install
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpdump.o rtmpdump.c
brew: superenv removed: -Wall -O2
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o rtmp.o rtmp.c
brew: superenv removed: -Wall -O2
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o log.o log.c
brew: superenv removed: -Wall -O2
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o amf.o amf.c
brew: superenv removed: -Wall -O2
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o hashswf.o hashswf.c
brew: superenv removed: -Wall -O2
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL  -O2 -fPIC   -c -o parseurl.o parseurl.c
brew: superenv removed: -Wall -O2
ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
ar: creating archive librtmp.a
cc -dynamiclib -flat_namespace -undefined suppress -fno-common -headerpad_max_install_names  -o librtmp.0.dylib rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz 
ln -sf librtmp.0.dylib librtmp.dylib
cc -Wall  -o rtmpdump rtmpdump.o -Llibrtmp -lrtmp -lssl -lcrypto -lz  
brew: superenv removed: -Wall
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpgw.o rtmpgw.c
brew: superenv removed: -Wall -O2
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o thread.o thread.c
brew: superenv removed: -Wall -O2
cc -Wall  -o rtmpgw rtmpgw.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz  
brew: superenv removed: -Wall
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpsrv.o rtmpsrv.c
brew: superenv removed: -Wall -O2
cc -Wall  -o rtmpsrv rtmpsrv.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz  
brew: superenv removed: -Wall
cc -Wall   -DRTMPDUMP_VERSION=\"v2.4\"   -O2   -c -o rtmpsuck.o rtmpsuck.c
brew: superenv removed: -Wall -O2
cc -Wall  -o rtmpsuck rtmpsuck.o thread.o -lpthread -Llibrtmp -lrtmp -lssl -lcrypto -lz  
brew: superenv removed: -Wall
mkdir -p /usr/local/Cellar/rtmpdump/2.4/bin /usr/local/Cellar/rtmpdump/2.4/sbin /usr/local/Cellar/rtmpdump/2.4/share/man/man1 /usr/local/Cellar/rtmpdump/2.4/share/man/man8
cp rtmpdump /usr/local/Cellar/rtmpdump/2.4/bin
cp rtmpgw rtmpsrv rtmpsuck /usr/local/Cellar/rtmpdump/2.4/sbin
cp rtmpdump.1 /usr/local/Cellar/rtmpdump/2.4/share/man/man1
cp rtmpgw.8 /usr/local/Cellar/rtmpdump/2.4/share/man/man8
sed -e "s;@prefix@;/usr/local/Cellar/rtmpdump/2.4;" -e "s;@libdir@;/usr/local/Cellar/rtmpdump/2.4/lib;" \
		-e "s;@VERSION@;v2.4;" \
		-e "s;@CRYPTO_REQ@;libssl,libcrypto;" \
		-e "s;@PRIVATE_LIBS@;;" librtmp.pc.in > librtmp.pc
mkdir -p /usr/local/Cellar/rtmpdump/2.4/include/librtmp /usr/local/Cellar/rtmpdump/2.4/lib/pkgconfig /usr/local/Cellar/rtmpdump/2.4/share/man/man3
cp amf.h http.h log.h rtmp.h /usr/local/Cellar/rtmpdump/2.4/include/librtmp
cp librtmp.a /usr/local/Cellar/rtmpdump/2.4/lib
cp librtmp.pc /usr/local/Cellar/rtmpdump/2.4/lib/pkgconfig
cp librtmp.3 /usr/local/Cellar/rtmpdump/2.4/share/man/man3
cp librtmp.0.dylib /usr/local/Cellar/rtmpdump/2.4/lib
cd /usr/local/Cellar/rtmpdump/2.4/lib; ln -sf librtmp.0.dylib librtmp.dylib
==> Cleaning
==> Finishing up
ln -s ../Cellar/rtmpdump/2.4/bin/rtmpdump rtmpdump
ln -s ../Cellar/rtmpdump/2.4/sbin/rtmpsuck rtmpsuck
ln -s ../Cellar/rtmpdump/2.4/sbin/rtmpsrv rtmpsrv
ln -s ../Cellar/rtmpdump/2.4/sbin/rtmpgw rtmpgw
ln -s ../Cellar/rtmpdump/2.4/include/librtmp librtmp
ln -s ../../../Cellar/rtmpdump/2.4/share/man/man8/rtmpgw.8 rtmpgw.8
ln -s ../../../Cellar/rtmpdump/2.4/share/man/man3/librtmp.3 librtmp.3
ln -s ../../../Cellar/rtmpdump/2.4/share/man/man1/rtmpdump.1 rtmpdump.1
ln -s ../../Cellar/rtmpdump/2.4/lib/pkgconfig/librtmp.pc librtmp.pc
ln -s ../Cellar/rtmpdump/2.4/lib/librtmp.dylib librtmp.dylib
ln -s ../Cellar/rtmpdump/2.4/lib/librtmp.a librtmp.a
ln -s ../Cellar/rtmpdump/2.4/lib/librtmp.0.dylib librtmp.0.dylib
ln -s ../../Cellar/rtmpdump/2.4 rtmpdump
ln -s ../Cellar/rtmpdump/2.4 rtmpdump
Warning: /usr/local/sbin is not in your PATH
You can amend this by altering your ~/.bashrc file
==> Summary
🍺  /usr/local/Cellar/rtmpdump/2.4: 18 files, 444K, built in 9 seconds

末尾の文字化けはビールの絵文字ですw
あ、パス通せと書いてあるので

PATH=/usr/local/sbin:/usr/local/bin:$PATH

と頭に追加してみた。

ヘルプも見ておく。

mini:~ foo$ rtmpdump --help
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL

rtmpdump: This program dumps the media content streamed over RTMP.

--help|-h               Prints this help screen.
--rtmp|-r url           URL (e.g. rtmp://host[:port]/path)
--host|-n hostname      Overrides the hostname in the rtmp url
--port|-c port          Overrides the port in the rtmp url
--socks|-S host:port    Use the specified SOCKS proxy
--protocol|-l num       Overrides the protocol in the rtmp url (0 - RTMP, 2 - RTMPE)
--playpath|-y path      Overrides the playpath parsed from rtmp url
--playlist|-Y           Set playlist before playing
--swfUrl|-s url         URL to player swf file
--tcUrl|-t url          URL to played stream (default: "rtmp://host[:port]/app")
--pageUrl|-p url        Web URL of played programme
--app|-a app            Name of target app on server
--swfhash|-w hexstring  SHA256 hash of the decompressed SWF file (32 bytes)
--swfsize|-x num        Size of the decompressed SWF file, required for SWFVerification
--swfVfy|-W url         URL to player swf file, compute hash/size automatically
--swfAge|-X days        Number of days to use cached SWF hash before refreshing
--auth|-u string        Authentication string to be appended to the connect string
--conn|-C type:data     Arbitrary AMF data to be appended to the connect string
                        B:boolean(0|1), S:string, N:number, O:object-flag(0|1),
                        Z:(null), NB:name:boolean, NS:name:string, NN:name:number
--flashVer|-f string    Flash version string (default: "MAC 10,0,32,18")
--live|-v               Save a live stream, no --resume (seeking) of live streams possible
--subscribe|-d string   Stream name to subscribe to (otherwise defaults to playpath if live is specifed)
--flv|-o string         FLV output file name, if the file name is - print stream to stdout
--resume|-e             Resume a partial RTMP download
--timeout|-m num        Timeout connection num seconds (default: 30)
--start|-A num          Start at num seconds into stream (not valid when using --live)
--stop|-B num           Stop at num seconds into stream
--token|-T key          Key for SecureToken response
--hashes|-#             Display progress with hashes, not with the byte counter
--buffer|-b             Buffer time in milliseconds (default: 36000000)
--skip|-k num           Skip num keyframes when looking for last keyframe to resume from. Useful if resume fails (default: 0)

--quiet|-q              Suppresses all command output.
--verbose|-V            Verbose command output.
--debug|-z              Debug level command output.
If you don't pass parameters for swfUrl, pageUrl, or auth these properties will not be included in the connect packet.

どうやらrtmpdumpにはmp3への変換機能が無いようです(分かってなかった)。
ので続いてffmpegのインストール。

mini:~ admin$ brew install ffmpeg
==> Installing ffmpeg dependency: pkg-config
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pkg-config-
######################################################################## 100.0%
==> Pouring pkg-config-0.28.lion.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.28: 10 files, 636K
==> Installing ffmpeg dependency: yasm
==> Downloading http://tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/yasm/1.2.0
==> make install
🍺  /usr/local/Cellar/yasm/1.2.0: 44 files, 3.4M, built in 22 seconds
==> Installing ffmpeg dependency: x264
==> Downloading http://download.videolan.org/pub/videolan/x264/snapshots/x264-sn
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/x264/r2197.4 --enable-shared
==> make install
==> Caveats
Because libx264 has a rapidly-changing API, formulae that link against
it should be reinstalled each time you upgrade x264. Examples include:
   avidemux, ffmbc, ffmpeg, gst-plugins-ugly
==> Summary
🍺  /usr/local/Cellar/x264/r2197.4: 8 files, 1.8M, built in 23 seconds
==> Installing ffmpeg dependency: faac
==> Downloading http://downloads.sourceforge.net/project/faac/faac-src/faac-1.28
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/faac/1.28
==> make install
🍺  /usr/local/Cellar/faac/1.28: 13 files, 764K, built in 16 seconds
==> Installing ffmpeg dependency: lame
==> Downloading http://downloads.sourceforge.net/sourceforge/lame/lame-3.99.5.ta
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/lame/3.99.5 --enable-nasm
==> make install
🍺  /usr/local/Cellar/lame/3.99.5: 25 files, 2.1M, built in 19 seconds
==> Installing ffmpeg dependency: xvid
==> Downloading http://fossies.org/unix/privat/xvidcore-1.3.2.tar.gz
######################################################################## 100.0%
==> ./configure --disable-assembly --prefix=/usr/local/Cellar/xvid/1.3.2
==> make
==> make install
🍺  /usr/local/Cellar/xvid/1.3.2: 9 files, 1.3M, built in 17 seconds
==> Installing ffmpeg
==> Downloading http://ffmpeg.org/releases/ffmpeg-1.2.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/1.2 --enable-shared --enable-p
==> make install
🍺  /usr/local/Cellar/ffmpeg/1.2: 147 files, 26M, built in 2.6 minutes

依存性があるyasm、x264、faac、lamexvidなども入りました。
んで、エンコーダとしてlameがあれば良いんですよね?(拙い知識)

mini:~ admin$ lame --help
LAME 64bits version 3.99.5 (http://lame.sf.net)

usage: lame [options] <infile> [outfile]

    <infile> and/or <outfile> can be "-", which means stdin/stdout.

RECOMMENDED:
    lame -V2 input.wav output.mp3

OPTIONS:
    -b bitrate      set the bitrate, default 128 kbps
    -h              higher quality, but a little slower.  Recommended.
    -f              fast mode (lower quality)
    -V n            quality setting for VBR.  default n=4
                    0=high quality,bigger files. 9=smaller files
    --preset type   type must be "medium", "standard", "extreme", "insane",
                    or a value for an average desired bitrate and depending
                    on the value specified, appropriate quality settings will
                    be used.
                    "--preset help" gives more info on these

    --help id3      ID3 tagging related options

    --longhelp      full list of options

    --license       print License information

んでffmpegのヘルプも見ておく。

mini:~ admin$ ffmpeg --help
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr  5 2013 01:34:37 with Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Getting help:
    -h      -- print basic options
    -h long -- print more options
    -h full -- print all options (including all format and codec specific options, very long)
    See man ffmpeg for detailed description of the options.

Print help / information / capabilities:
-L                  show license
-h topic            show help
-? topic            show help
-help topic         show help
--help topic        show help
-version            show version
-formats            show available formats
-codecs             show available codecs
-decoders           show available decoders
-encoders           show available encoders
-bsfs               show available bit stream filters
-protocols          show available protocols
-filters            show available filters
-pix_fmts           show available pixel formats
-layouts            show standard channel layouts
-sample_fmts        show available audio sample formats

Global options (affect whole program instead of just one file:
-loglevel loglevel  set libav* logging level
-v loglevel         set libav* logging level
-report             generate a report
-max_alloc bytes    set maximum size of a single allocated block
-y                  overwrite output files
-n                  do not overwrite output files
-stats              print progress report during encoding
-bits_per_raw_sample number  set the number of bits per raw sample
-vol volume         change audio volume (256=normal)

Per-file main options:
-f fmt              force format
-c codec            codec name
-codec codec        codec name
-pre preset         preset name
-map_metadata outfile[,metadata]:infile[,metadata]  set metadata information of outfile from infile
-t duration         record or transcode "duration" seconds of audio/video
-to time_stop       record or transcode stop time
-fs limit_size      set the limit file size in bytes
-ss time_off        set the start time offset
-timestamp time     set the recording timestamp ('now' to set the current time)
-metadata string=string  add metadata
-target type        specify target file type ("vcd", "svcd", "dvd", "dv", "dv50", "pal-vcd", "ntsc-svcd", ...)
-frames number      set the number of frames to record
-filter filter_graph  set stream filtergraph
-reinit_filter      reinit filtergraph on input parameter changes

Video options:
-vframes number     set the number of video frames to record
-r rate             set frame rate (Hz value, fraction or abbreviation)
-s size             set frame size (WxH or abbreviation)
-aspect aspect      set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
-bits_per_raw_sample number  set the number of bits per raw sample
-vn                 disable video
-vcodec codec       force video codec ('copy' to copy stream)
-timecode hh:mm:ss[:;.]ff  set initial TimeCode value.
-pass n             select the pass number (1 to 3)
-vf filter_graph    set video filters
-b bitrate          video bitrate (please use -b:v)
-dn                 disable data

Audio options:
-aframes number     set the number of audio frames to record
-aq quality         set audio quality (codec-specific)
-ar rate            set audio sampling rate (in Hz)
-ac channels        set number of audio channels
-an                 disable audio
-acodec codec       force audio codec ('copy' to copy stream)
-vol volume         change audio volume (256=normal)
-af filter_graph    set audio filters

Subtitle options:
-s size             set frame size (WxH or abbreviation)
-sn                 disable subtitle
-scodec codec       force subtitle codec ('copy' to copy stream)
-stag fourcc/tag    force subtitle tag/fourcc
-fix_sub_duration   fix subtitles duration
-spre preset        set the subtitle options to the indicated preset

ffmpeg -encodersで利用可能なエンコーダが表示される、とあるので念のため見てみます。

mini:~ admin$ ffmpeg -encoders
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on Apr  5 2013 01:34:37 with Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Encoders:
 V..... = Video
 A..... = Audio
 S..... = Subtitle
 .F.... = Frame-level multithreading
 ..S... = Slice-level multithreading
 ...X.. = Codec is experimental
 ....B. = Supports draw_horiz_band
 .....D = Supports direct rendering method 1
 ------
 V..... a64multi             Multicolor charset for Commodore 64 (codec a64_multi)
 V..... a64multi5            Multicolor charset for Commodore 64, extended with 5th color (colram) (codec a64_multi5)
 V..... amv                  AMV Video
 V..... asv1                 ASUS V1
 V..... asv2                 ASUS V2
 V..... avrp                 Avid 1:1 10-bit RGB Packer
 V..X.. avui                 Avid Meridien Uncompressed
 V..... ayuv                 Uncompressed packed MS 4:4:4:4
 V..... bmp                  BMP (Windows and OS/2 bitmap)
 V..... cljr                 Cirrus Logic AccuPak
 V.S... dnxhd                VC3/DNxHD
 V..... dpx                  DPX image
 V.S... dvvideo              DV (Digital Video)
 V.S... ffv1                 FFmpeg video codec #1
 V..... ffvhuff              Huffyuv FFmpeg variant
 V..... flashsv              Flash Screen Video
 V..... flashsv2             Flash Screen Video Version 2
 V..... flv                  FLV / Sorenson Spark / Sorenson H.263 (Flash Video) (codec flv1)
 V..... gif                  GIF (Graphics Interchange Format)
 V..... h261                 H.261
 V..... h263                 H.263 / H.263-1996
 V.S... h263p                H.263+ / H.263-1998 / H.263 version 2
 V..... libx264              libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
 V..... libx264rgb           libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)
 V..... huffyuv              Huffyuv / HuffYUV
 V..X.. j2k                  JPEG 2000 (codec jpeg2000)
 V..... jpegls               JPEG-LS
 V..... ljpeg                Lossless JPEG
 VFS... mjpeg                MJPEG (Motion JPEG)
 V.S... mpeg1video           MPEG-1 video
 V.S... mpeg2video           MPEG-2 video
 V.S... mpeg4                MPEG-4 part 2
 V..... libxvid              libxvidcore MPEG-4 part 2 (codec mpeg4)
 V..... msmpeg4v2            MPEG-4 part 2 Microsoft variant version 2
 V..... msmpeg4              MPEG-4 part 2 Microsoft variant version 3 (codec msmpeg4v3)
 V..... msvideo1             Microsoft Video-1
 V..... pam                  PAM (Portable AnyMap) image
 V..... pbm                  PBM (Portable BitMap) image
 V..... pcx                  PC Paintbrush PCX image
 V..... pgm                  PGM (Portable GrayMap) image
 V..... pgmyuv               PGMYUV (Portable GrayMap YUV) image
 VF.... png                  PNG (Portable Network Graphics) image
 V..... ppm                  PPM (Portable PixelMap) image
 VF.... prores               Apple ProRes
 VF.... prores_anatoliy      Apple ProRes (codec prores)
 V.S... prores_kostya        Apple ProRes (iCodec Pro) (codec prores)
 V..... qtrle                QuickTime Animation (RLE) video
 V..... r10k                 AJA Kona 10-bit RGB Codec
 V..... r210                 Uncompressed RGB 10-bit
 V..... rawvideo             raw video
 V..... roqvideo             id RoQ video (codec roq)
 V..... rv10                 RealVideo 1.0
 V..... rv20                 RealVideo 2.0
 V..... sgi                  SGI image
 V..... snow                 Snow
 V..... sunrast              Sun Rasterfile image
 V..... svq1                 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
 V..... targa                Truevision Targa image
 V..... tiff                 TIFF image
 V..... utvideo              Ut Video
 V..... v210                 Uncompressed 4:2:2 10-bit
 V..... v308                 Uncompressed packed 4:4:4
 V..... v408                 Uncompressed packed QT 4:4:4:4
 V..... v410                 Uncompressed 4:4:4 10-bit
 V..... wmv1                 Windows Media Video 7
 V..... wmv2                 Windows Media Video 8
 V..... xbm                  XBM (X BitMap) image
 V..... xface                X-face image
 V..... xwd                  XWD (X Window Dump) image
 V..... y41p                 Uncompressed YUV 4:1:1 12-bit
 V..... yuv4                 Uncompressed packed 4:2:0
 V..... zlib                 LCL (LossLess Codec Library) ZLIB
 V..... zmbv                 Zip Motion Blocks Video
 A..X.. aac                  AAC (Advanced Audio Coding)
 A..... libfaac              libfaac AAC (Advanced Audio Coding) (codec aac)
 A..... ac3                  ATSC A/52A (AC-3)
 A..... ac3_fixed            ATSC A/52A (AC-3) (codec ac3)
 A..... adpcm_adx            SEGA CRI ADX ADPCM
 A..... g722                 G.722 ADPCM (codec adpcm_g722)
 A..... g726                 G.726 ADPCM (codec adpcm_g726)
 A..... adpcm_ima_qt         ADPCM IMA QuickTime
 A..... adpcm_ima_wav        ADPCM IMA WAV
 A..... adpcm_ms             ADPCM Microsoft
 A..... adpcm_swf            ADPCM Shockwave Flash
 A..... adpcm_yamaha         ADPCM Yamaha
 A..... alac                 ALAC (Apple Lossless Audio Codec)
 A..... comfortnoise         RFC 3389 comfort noise generator
 A..X.. dca                  DCA (DTS Coherent Acoustics) (codec dts)
 A..... eac3                 ATSC A/52 E-AC-3
 A..... flac                 FLAC (Free Lossless Audio Codec)
 A..... g723_1               G.723.1
 A..... mp2                  MP2 (MPEG audio layer 2)
 A..... libmp3lame           libmp3lame MP3 (MPEG audio layer 3) (codec mp3)
 A..... nellymoser           Nellymoser Asao
 A..... pcm_alaw             PCM A-law / G.711 A-law
 A..... pcm_f32be            PCM 32-bit floating point big-endian
 A..... pcm_f32le            PCM 32-bit floating point little-endian
 A..... pcm_f64be            PCM 64-bit floating point big-endian
 A..... pcm_f64le            PCM 64-bit floating point little-endian
 A..... pcm_mulaw            PCM mu-law / G.711 mu-law
 A..... pcm_s16be            PCM signed 16-bit big-endian
 A..... pcm_s16be_planar     PCM signed 16-bit big-endian planar
 A..... pcm_s16le            PCM signed 16-bit little-endian
 A..... pcm_s16le_planar     PCM signed 16-bit little-endian planar
 A..... pcm_s24be            PCM signed 24-bit big-endian
 A..... pcm_s24daud          PCM D-Cinema audio signed 24-bit
 A..... pcm_s24le            PCM signed 24-bit little-endian
 A..... pcm_s24le_planar     PCM signed 24-bit little-endian planar
 A..... pcm_s32be            PCM signed 32-bit big-endian
 A..... pcm_s32le            PCM signed 32-bit little-endian
 A..... pcm_s32le_planar     PCM signed 32-bit little-endian planar
 A..... pcm_s8               PCM signed 8-bit
 A..... pcm_s8_planar        PCM signed 8-bit planar
 A..... pcm_u16be            PCM unsigned 16-bit big-endian
 A..... pcm_u16le            PCM unsigned 16-bit little-endian
 A..... pcm_u24be            PCM unsigned 24-bit big-endian
 A..... pcm_u24le            PCM unsigned 24-bit little-endian
 A..... pcm_u32be            PCM unsigned 32-bit big-endian
 A..... pcm_u32le            PCM unsigned 32-bit little-endian
 A..... pcm_u8               PCM unsigned 8-bit
 A..... real_144             RealAudio 1.0 (14.4K) (codec ra_144)
 A..... roq_dpcm             id RoQ DPCM
 A..X.. sonic                Sonic
 A..X.. sonicls              Sonic lossless
 A..X.. vorbis               Vorbis
 A..... wmav1                Windows Media Audio 1
 A..... wmav2                Windows Media Audio 2
 S..... dvbsub               DVB subtitles (codec dvb_subtitle)
 S..... dvdsub               DVD subtitles (codec dvd_subtitle)
 S..... mov_text             3GPP Timed Text subtitle
 S..... srt                  SubRip subtitle with embedded timing
 S..... ass                  SSA (SubStation Alpha) subtitle (codec ssa)
 S..... subrip               SubRip subtitle
 S..... xsub                 DivX subtitles (XSUB)

mp3エンコーダはlibmp3lameで使えますよ、ってことですね。
あとは

Ruby↑↓shell

を参考にするつもり(というか大半そのまんま)。