Pass start/stop down to mpegize script.
This commit is contained in:
@@ -17,10 +17,11 @@ if [ "-$1" == "-start" ]; then
|
|||||||
cd $GIGA_DIR/sm || exit 1
|
cd $GIGA_DIR/sm || exit 1
|
||||||
@LIBEXECDIR@/movie_audio_rec $FPS &
|
@LIBEXECDIR@/movie_audio_rec $FPS &
|
||||||
echo $! > $GIGA_DIR/audio.pid
|
echo $! > $GIGA_DIR/audio.pid
|
||||||
|
@LIBEXECDIR@/mpegize.py start $GIGA_DIR/ $DEST_NAME $FPS $MODE
|
||||||
elif [ "-$1" == "-stop" ]; then
|
elif [ "-$1" == "-stop" ]; then
|
||||||
kill `cat $2/audio.pid`
|
kill `cat $2/audio.pid`
|
||||||
cd $GIGA_DIR
|
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
|
rm -r $GIGA_DIR
|
||||||
echo Message: Rec
|
echo Message: Rec
|
||||||
else
|
else
|
||||||
|
@@ -410,7 +410,9 @@ class Mpegize:
|
|||||||
if len(argv) > 2:
|
if len(argv) > 2:
|
||||||
m.base = argv[2]
|
m.base = argv[2]
|
||||||
mode = argv[1]
|
mode = argv[1]
|
||||||
if mode == "convert":
|
if mode == "start":
|
||||||
|
return
|
||||||
|
if mode == "convert" or mode == "stop":
|
||||||
print("Phase 1: jpegize")
|
print("Phase 1: jpegize")
|
||||||
print("Message: 0%%")
|
print("Message: 0%%")
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
Reference in New Issue
Block a user