***Scroll to bottom of article to see updated code with audio & video trancoding.***
The Raspberry Pi is not bad at hardware H264 encoding. It processed a 5.81GB 720P 60fps Mpeg Transport Stream that was an 1hr, 2min, 27seconds long and converted to H264 1280 x 720 60fps in 1hr, 38min, 57seconds with a resulting file size of 293MB.
The quality is a bit less than I’m used to with Handbrake and this is video only (still need to find out how to add audio to gstreamer transcoding). However for the quality it’s at it is an impressive speed for something the size of a credit card that consumes 5V1A of power and costs only $35.
Here’s how I was able to get the Raspberry Pi to get this far.
Tvheadend Post Processing with Commercial Removal, Transcoding, & Plex/Kodi Naming Convention
Bash Script is located here:
This is my first whack at a Post Processing script for the TVHeadend DVR software.
It has it’s faults but it does work. I have future ambitions of creating a script complete with commercial removal and .nfo file generation for the Plex Media Server and Kodi (XBMC) to pick up.
So without further ado here’s a script that takes recording from TVHeadend and transcodes it to an h264/AAC mp4 file using the “Normal” preset in Handbrake(CLI).
FYI: Rochester, NY QAM Tuning List (results may vary, likely by node):
Who doesn’t want to automatically skip commercials (aside from the advertisers)?