forked from j62/ctbrec
1
0
Fork 0

Add quotes around paths in pp script

This commit is contained in:
0xboobface 2020-02-22 12:28:45 +01:00
parent f98d442096
commit 23c97cd2c0
1 changed files with 4 additions and 4 deletions

View File

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