This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# (C) Karl Mitchell 2017, GPL: https://www.gnu.org/licenses/gpl-3.0.en.html | |
# Best run once daily, e.g. using launchd or cron job, during quiet time | |
# Converts Channels DVR to a Plex & iOS-friendly m4v (h.264) format | |
# Pre-requisites: | |
# HandBrakeCLI (video transcoding application) | |
# Optional pre-requisites: | |
# MP4Box (part of GPAC, use MacPorts or similar) for marking commercials start/end as chapters | |
# Curl and an IFTTT Maker Key for phone statusnotifications. | |
# FFMPeg (a part of channels DVR, but you'll need to point to it) for commercial trimming |