binhex Posted October 23, 2021 Share Posted October 23, 2021 Overview: Do you record TV using Tvheadend?, ever had the problem where a recording cannot be fwd/rev/skipped due to bad signal causing corruption?, if so this is the script for you!. This script was inspired by this post, i've enhanced it so it can cope with any container format, it also has an option to specify the location of ffmpeg (optional first parameter). The script will typically process a 60 minute TV recording in around 15-20 seconds on my low end ARM processor, which i think is very acceptable. Download: curl -o '/tmp/recording-fixer.sh' -L 'https://raw.githubusercontent.com/binhex/scripts/master/shell/kodi/tvheadend/recording-fixer.sh' chmod +x '/tmp/recording-fixer.sh' Once downloaded to a safe locaiton that Tvheadend can view then you need to get the script to run during post processing, this is done by going to Tvheadend Web UI/Configuration/Recording then 'Post-processor Command' and enter in the path to the script, suffixing it with %f (file path variable of the recording) If you want to retro repair broken recordings then simply run the script and specify the filepath to the recording, e.g: '/tmp/recording-fixer.sh' '/mnt/user/TV/Live/BBC1/Strictly Come Shooting/Shotguns-are-badass.mkv' Enjoy your fixed up recordings! 🙂 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.