[HowTo] Autoedit – Fully automated DVR with commercial detection

Thank you so much for your help.

I am actually on RPI 3B+. Decoders List very interesting options:


VFS…D h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
V…D h264_vdpau H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration) (codec h264)
VFS…D hap Vidvox Hap decoder
VFS…D hevc HEVC (High Efficiency Video Coding)

Do you know the right parameters for software decoding? What about HEVC?

Hi, Im thinking about adding this to my Vero4k, Can some one confirm the bellow set up is correct, and what channels its known to work with in UK, also is there any drawbacks to doing this?

On Debian 9 “Stretch”:

# 1) Make temporary directories for sources and building:
mkdir $HOME/sources
# 2) Install ffmpeg standard package and dev libraries
sudo apt-get update
sudo apt-get install ffmpeg libavcodec-dev libavformat-dev libavutil-dev

Install Comskip (OPTIONAL)

(scans a video and marks commercial breaks)

# 7) Install dependencies:
cd $HOME/sources
sudo apt-get install autoconf automake git libargtable2-dev libtool
git clone git://github.com/erikkaashoek/Comskip
cd Comskip
./autogen.sh
./configure
make -j4
sudo make install
cd $HOME
rm -R --interactive=never $HOME/sources/Comskip

Install Autoedit

cd /opt
git clone git://github.com/IfThenERROR/autoedit
chmod +x /opt/autoedit/autoedit
sudo update-alternatives --install /usr/bin/autoedit autoedit /opt/autoedit/autoedit 100
cp /opt/autoedit/comskip.ini $HOME/
nano /opt/autoedit/settings.txt

^^ On the above which is the output folder? I currently record videos to a external drive

Set Cron job (OPTIONAL)

  1. To run all the magic overnight we want to create a schedule. The following runs autoedit every night on 2am. Change the time as you like.
crontab -e

Paste in the last line

0 2 * * * bash -l -c autoedit

Hit Ctrl+o and Ctrl+x to save.

Then add the bellow into the DVR profile in TVHeadend removed the --rename
/usr/bin/autoedit --input “%f” --title “%t” --comskip --transcode mpeg2_mmal h264_omx 2000k --wait

Im happy for the file name and path to stay the same as the original

You set tha in the settings file. If you don’t use the switch --rename, then the files will stay where they are. They’ll still be renamed to ‘show - episode’ format though.

The codecs mpeg2_mmal and h264_omx won’t work on a Vero. You need to switch to software coders here, see posts above.