ffmpeg-mythtv/ffmpeg-cut-list.sh

14 lines
309 B
Bash
Raw Normal View History

#!/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