I have incron doing:
video1.sh code:Code:/home/user/preso IN_CREATE bash $@/video1.sh $@ $#
Originally the .sh file also included the ffmpeg code:Code:#!/bin/sh fName=$(echo $2 |sed 's/.\{4\}$//') cp $1/$2 $1/newVids/$2
If I run the .sh file by itself(with or without ffmpeg code), it works fine. However, incron runs it it starts to copy the file, but never finishes. Anyone know what I am doing wrong?Code:ffmpeg -i $1/$2 -b:v 800k -pass 1 -ar 44100 -b:a 64000 -f flv $1/newVids/$fName.f4v
Bookmarks