Advertisement
Guest User

remux-recording

a guest
Nov 13th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.56 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #
  4. # Usage: remux-recording recording.ts
  5. #
  6. # These paths may be changed.                      
  7. #
  8. PROJECTX_JAR="/usr/local/lib/projectx/ProjectX.jar"
  9. SOURCE_DIR="/media/Archive/Incoming/DVB Recordings"
  10.  
  11. # Change to our working directory
  12. WORKING_DIR=$SOURCE_DIR"/.projectx"
  13. cd "$WORKING_DIR"
  14.  
  15. # Remux and rename to the same as the input file
  16. java -jar "$PROJECTX_JAR" -out ./ -tots "../$1"
  17. rename "s/\[remux\]//g" "" *.ts
  18.  
  19. # Remove log file and the original recording
  20. rm *.txt
  21.  
  22. # Move remux to original location
  23. mv *.ts "$SOURCE_DIR"
  24.  
  25. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement