Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # Usage: remux-recording recording.ts
- #
- # These paths may be changed.
- #
- PROJECTX_JAR="/usr/local/lib/projectx/ProjectX.jar"
- SOURCE_DIR="/media/Archive/Incoming/DVB Recordings"
- # Change to our working directory
- WORKING_DIR=$SOURCE_DIR"/.projectx"
- cd "$WORKING_DIR"
- # Remux and rename to the same as the input file
- java -jar "$PROJECTX_JAR" -out ./ -tots "../$1"
- rename "s/\[remux\]//g" "" *.ts
- # Remove log file and the original recording
- rm *.txt
- # Move remux to original location
- mv *.ts "$SOURCE_DIR"
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement