Jump to content

Automated Commercial Removal from TV Recordings


Recommended Posts

Posted

Universal closed caption support is coming: 

 

  • Like 2
  • 3 years later...
Posted
On 11/5/2017 at 11:56 AM, warrentc3 said:

 

I really could use some help on this from someone with more cshell experience.  

 

EDIT.... after fighting with this to get it just right for longer than I care to admit...

#!/bin/csh
set path = ($path /usr/local/bin)
set w1 = `jot -r 1 2 15`
set filename = `printf "%s " $1:t:r:r` 
set grab = `printf "%s " $1:h` 
set a = `echo "$filename".ts` 
set b = `echo "$grab/$filename"_cut.ts` 
set c = `echo "$grab/$filename".mp4` 
sleep $w1 

while (1) if ( ! -e "$b" ) then 
echo "Running Comcut"
comcut --ffmpeg=/usr/bin/ffmpeg --comskip=/usr/bin/comskip --lockfile=/tmp/comchap.lock --comskip-ini=/media/Comskip/comskip.ini "$1" "$b" 
echo "Comcut complete" 
else
echo "Comcut already done" 
endif 
break 
end 

while (1) if ( ! `pgrep HandBrakeCLI` ) then 
break 
endif 
echo "HandBrakeCLI is still running. Will try again in a minute." 
sleep 60 
end 

HandBrakeCLI --input "$b" --output "$c" --preset-import-file /media/comchap/hb-dvr.json

rm $b
mv "$1" "/media/PlexDVR/.plexignore/$a"

 new ignore features are coming:

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...