diff --git a/client/src/main/resources/pp.sh b/client/src/main/resources/pp.sh index b4e829e4..fd26ea0b 100755 --- a/client/src/main/resources/pp.sh +++ b/client/src/main/resources/pp.sh @@ -16,13 +16,13 @@ TIME=$(date --date="@$5" +%d.%m.%Y_%H:%M) MP4=$(echo "$1/$4_$3_$TIME.mp4") # remux ts to mp4 -ffmpeg -i $2 -c:v copy -c:a copy -f mp4 $MP4 +ffmpeg -i "$2" -c:v copy -c:a copy -f mp4 "$MP4" # move mp4 to target directory -mv $MP4 /tmp +mv "$MP4" /tmp # delete the original .ts file -rm $2 +rm "$2" # delete the directory of the recording -rm -r $1 +rm -r "$1"