forked from j62/ctbrec
Add quotes around paths in pp script
This commit is contained in:
parent
f98d442096
commit
23c97cd2c0
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue