ffmpeg-mythtv/ffmpeg-cut-list.sh
Leo Butler 763f589be1 scripts to remove cut or skip lists
Uses the concat muxer
2020-07-27 17:33:47 -05:00

14 lines
309 B
Bash
Executable File

#!/bin/bash
chanid=$1
starttime=$2
skip_or_cutlist=${3:-"cutlist"}
logdir="/mnt/lvraid5/ffmpeg-cut-list.d"
logfile="$logdir/user-job-${chanid}-${starttime}.log"
if ! test -d $logdir; then
mkdir -p $logdir;
fi
ionice -c 3 ffmpeg-cut-list0.sh $chanid $starttime $skip_or_cutlist 2>> $logfile >> $logfile