Created
April 4, 2011 12:21
-
-
Save kambara/901547 to your computer and use it in GitHub Desktop.
ViconRevue (SenseCam) で撮った画像をAVI (MS-MPEG4 v2) に変換。要mencoder。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
if [ $# -lt 2 ]; then | |
echo "Usage: $ sensecam-movie.sh /media/76EF-F73A/DATA movie.avi 24" | |
exit 1 | |
fi | |
TMP=/tmp/sensecam-images | |
FPS=24 | |
if [ $# -eq 3 ]; then | |
FPS=$3 | |
fi | |
rm -rf $TMP | |
mkdir $TMP | |
find $1 -name "*.JPG" -print0 | xargs --null -I{} cp {} $TMP | |
mencoder "mf://$TMP/*.JPG" -mf fps=$FPS -ovc lavc -lavcopts vcodec=msmpeg4v2 -o $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
引数で画像ディレクトリ、出力aviファイル名、fpsを指定。
12か24 fpsぐらいが調度良い。デフォルトは24 fpsになってます。