Hi,
I copied a postprocessing scipt form the plex forum for transcode dvr-movies but only what I get is error 1.
#!/bin/bash
dvrPostLog=’/volume1/homes/plex/dvrProcessing.log’
echo “=================================” | tee -a dvrPostLog
[ # -ge 1 -a -f “$1” ]
echo “date '+%Y-%m-%d'” | tee -a $dvrPostLog
echo "date '+%H:%M:%S' file ‘$1’ is opened" | tee -a $dvrPostLog
ffmpeg -i “1" -acodec copy -vcodec libx264 -preset superfast "{1%.ts}.mp4”
echo "date '+%H:%M:%S' conversion done. new file saved" | tee -a $dvrPostLog
and the log DVR:Recorder: Postprocessing script ‘/volume1/homes/plex/DVRPost.sh’ exited with error code 1.
the user plex is the owner and the script is executable an runs with admin-users.
What’s wrong?
thanks phiku