Skip to content

Instantly share code, notes, and snippets.

@justinglock40
justinglock40 / transcode-plex.sh
Created October 29, 2019 05:30 — forked from karllmitchell/transcode-plex.sh
Scripts for transcoding Channels DVR recordings and adding them to Plex
#!/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