[~]$ sudo port install ffmpeg
[~]$ cat mpeg2mp4.sh #!/bin/sh DIR=/Volumes/share/Video/SRC_4x3 OUT=~/Movies ls $DIR | grep ".*mpg$" | while read line do /opt/local/bin/ffmpeg -y -i "$DIR/$line" -vcodec libx264 -vpre fastfirstpass \ -vpre ipod320 -s 320x240 "$OUT/${line%.mpg}.mp4" < /dev/null echo $line done
First ffmpeg searches for a file named arg.ffpreset in the directories `$FFMPEG_DATADIR' (if set), and `$HOME/.ffmpeg', and in the datadir defined at configuration time (usually `PREFIX/share/ffmpeg') in that order. For example, if the argument is libx264-max, it will search for the file `libx264-max.ffpreset'.
[~]$ cd /opt/local/share/ffmpeg/ [/opt/local/share/ffmpeg]$ ls libx264-baseline.ffpreset libx264-lossless_medium.ffpreset libx264-default.ffpreset libx264-lossless_slow.ffpreset libx264-fastfirstpass.ffpreset libx264-lossless_slower.ffpreset libx264-hq.ffpreset libx264-lossless_ultrafast.ffpreset libx264-ipod320.ffpreset libx264-main.ffpreset libx264-ipod640.ffpreset libx264-max.ffpreset libx264-lossless_fast.ffpreset libx264-normal.ffpreset libx264-lossless_max.ffpreset libx264-slowfirstpass.ffpreset
(六代目圓生師匠の「寝床」)
[~]$ /usr/local/bin/mediainfo /Users/kagyuu/Movies/エンロン 巨大企業はいかにし て崩壊.mp4 | grep aspect Display aspect ratio : 4:3 [~]$