Pass start/stop down to mpegize script.

This commit is contained in:
Pavel Machek
2024-05-09 21:55:33 +02:00
parent 63a77bb557
commit 1395f823a0
2 changed files with 5 additions and 2 deletions

View File

@@ -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

View File

@@ -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()