diff --git a/movie.sh.in b/movie.sh.in index 530042f..3afaa1e 100755 --- a/movie.sh.in +++ b/movie.sh.in @@ -17,10 +17,11 @@ if [ "-$1" == "-start" ]; then cd $GIGA_DIR/sm || exit 1 @LIBEXECDIR@/movie_audio_rec $FPS & echo $! > $GIGA_DIR/audio.pid + @LIBEXECDIR@/mpegize.py start $GIGA_DIR/ $DEST_NAME $FPS $MODE elif [ "-$1" == "-stop" ]; then kill `cat $2/audio.pid` cd $GIGA_DIR - @LIBEXECDIR@/mpegize.py convert $GIGA_DIR/ $DEST_NAME $FPS $MODE + @LIBEXECDIR@/mpegize.py stop $GIGA_DIR/ $DEST_NAME $FPS $MODE rm -r $GIGA_DIR echo Message: Rec else diff --git a/mpegize.py b/mpegize.py index 33b3413..22e3053 100755 --- a/mpegize.py +++ b/mpegize.py @@ -410,7 +410,9 @@ class Mpegize: if len(argv) > 2: m.base = argv[2] mode = argv[1] - if mode == "convert": + if mode == "start": + return + if mode == "convert" or mode == "stop": print("Phase 1: jpegize") print("Message: 0%%") sys.stdout.flush()