
dheianevans at gmail
Apr 18, 2012, 4:16 PM
Post #1 of 2
(378 views)
Permalink
|
|
Transcoding jobs errored out, but they seem to have worked...
|
|
I have one transcoding job that I used in .24, It's a job that uses ffmpeg to take SD shows broadcast on HD channels and shrink them down and trim off the sides, etc. Ran fine in .24. I've run the job twice now in .25 and received an error message in the job queue listing...but the files have been shrunken down and the new name of the file is in the db. Is it just some command line change that would make it give off an error? Here's the error: UserJob_4680 jobqueue.cpp:2438 (DoUserJobThread) JobQueue: User Job '/usr/share/mythtv/usersdtranscode.sh /storage1/video 1231_20120414000000.mpg 1231 20120414000000' failed. Here's the script. It's the rokuencode script...don't have the link right now.: #!/bin/bash #convert mpeg file to mp4 using handbrakecli MYTHDIR=$1 MPGFILE=$2 CHANLID=$3 STRTTIM=$4 # Should try and get these from settings.php, but for now... DATABASEUSER=mythtv DATABASEPASSWORD=************ LOGFILE="/var/log/mythtv/rokuencode.log" mythtranscode --chanid $CHANLID --starttime $STRTTIM --mpeg2 --honorcutlist --outfile $MYTHDIR/$MPGFILE.tmp mv -f $MYTHDIR/$MPGFILE.tmp /$MYTHDIR/$MPGFILE newbname=`echo $MPGFILE | sed 's/\(.*\)\..*/\1/'` newname="$MYTHDIR/$newbname.mp4" echo "Roku Encode $MPGFILE to $newname, details in $LOGFILE" >> $LOGFILE date=`date` echo "$newbname:$date Encoding" >> $LOGFILE /usr/bin/HandBrakeCLI -a 1 --preset='iPhone & iPod Touch' -i $MYTHDIR/$MPGFILE -o $newname date=`date` echo "$newbname:$date Previews" >> $LOGFILE ffmpeg -loglevel quiet -ss 34 -vframes 1 -i $newname -y -f image2 $MYTHDIR/$newbname.mp4.png >> $LOGFILE 2>&1 ffmpeg -loglevel quiet -ss 34 -vframes 1 -i $newname -y -f image2 -s 100x75 $MYTHDIR/$newbname.mp4.64.100x75.png >> $LOGFILE 2>&1 ffmpeg -loglevel quiet -ss 34 -vframes 1 -i $newname -y -f image2 -s 320x240 $MYTHDIR/$newbname.mp4.64.320x240.png >> $LOGFILE 2>&1 date=`date` echo "$newbname:$date Database/remove" >> $LOGFILE # remove the orignal mpg and update the db to point to the mp4 NEWFILESIZE=`du -b "$newname" | cut -f1` echo "UPDATE recorded SET basename='$newbname.mp4',filesize='$NEWFILESIZE',transcoded='1' WHERE basename='$2';" > /tmp/update-database.sql mysql --user=$DATABASEUSER --password=$DATABASEPASSWORD mythconverg < /tmp/update-database.sql rm $MYTHDIR/$MPGFILE echo "Updating Seektable so you can fast forward in Myth" >> $LOGFILE mythcommflag --rebuild --file $newname _______________________________________________ mythtv-users mailing list mythtv-users [at] mythtv http://www.mythtv.org/mailman/listinfo/mythtv-users
|