post-recording

post-recording

Docker app from Chacawaca's Repository

Overview

Watches for .ts files made by Live TV recordings, convert them to a friendly format, extract .srt file, add chapters with comchap or remove them with comcut. Tested with Emby recordings. Nvidia GPU Use Using the Unraid Nvidia Plugin to install a version of Unraid with the Nvidia Drivers installed and add --runtime=nvidia to "extra parameters" (switch on advanced view) and copy your GPU UUID to NVIDIA_VISIBLE_DEVICES --------New Variable added --- verify your old custom.sh--------

docker-post-recording

Watches for .ts files made by Live TV recordings, convert them to a friendly format, extract .srt file, add chapters with comchap or remove them with comcut. Tested with Emby recordings.

Example run

docker run -d \
	--name=post-recording \
	-v /docker/appdata/post-recording:/config:rw \
	-v /home/user/videos:/watch:rw \
	-v /home/user/backup:/backup:rw \
	-e DELETE_TS=1 \
	-e SUBTITLES=0 \
	-e CONVERSION_FORMAT=mkv \
	-e SOURCE_EXT=ts \
	-e POST_PROCESS=comchap \
	-e PUID=99 \
	-e PGID=100 \
	-e UMASK=000 \
	--restart always \
	chacawaca/post-recording

Where:

  • /config: This is where the application stores its configuration, log and any files needing persistency.
  • /watch: This location contains .ts files that need converting. Other files are not processed.
  • /backup: Optional, only used if DELETE_TS is set to 2.
  • DELETE_TS: After converting remove the original .ts recording file. 0 = Yes, 1 = No, 2 = Move to backup directory USE DELETE_TS=1 UNTIL YOU'RE SURE IT WORKS WITH YOUR VIDEO RECORDINGS.
  • SUBTITLES: Extract subtitles to .srt. 0= Yes, 1 = No
  • CONVERSION_FORMAT: Select output extension, your custom.sh need to be valid for this extension.
  • SOURCE_EXT: If you want to convert something else than .ts
  • POST_PROCESS: option are comchap or comcut. default: comchap
  • PUID: ID of the user the application runs as.
  • PGID: ID of the group the application runs as.
  • UMASK: Mask that controls how file permissions are set for newly created files.

Configuration:

  • /scripts/custom.sh need to be configured by you, some example are there to help you configure this for your need.
  • /hooks can be configured to execute custom code
  • /comskip/comskip.ini can be configured too.

Unraid Users

Help with Intel
Intel GPU Use
Edit your go file to include:
modprobe i915, save and reboot, then
add --device=/dev/dri to "extra parameters" (switch on advanced view)

Help with Nvidia
Nvidia GPU Use
Using the Unraid Nvidia Plugin to install a version of Unraid with the Nvidia Drivers installed and
add --runtime=nvidia to "extra parameters" (switch on advanced view) and
copy your GPU UUID to NVIDIA_VISIBLE_DEVICES. (-e NVIDIA_VISIBLE_DEVICES=GPU-XXXXXXXXXXXXXX)

projects used

www.github.com/djaydev/docker-recordings-transcoder
www.github.com/BrettSheleski/comchap
www.github.com/erikkaashoek/Comskip
www.github.com/jlesage/docker-handbrake
www.github.com/ffmpeg/ffmpeg
www.github.com/CCExtractor/ccextractor
www.github.com/linuxserver/docker-baseimage-ubuntu
www.github.com/jrottenberg/ffmpeg

Install post-recording on Unraid in a few clicks.

Find post-recording in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for post-recording Review the template variables and paths Click Install

Download Statistics

122,749
Total Downloads
569
This Month
937
Avg / Month

Total Downloads Over Time

Loading chart...

Related apps

Explore more like this

Explore all

Details

Repository
chacawaca/post-recording
Last Updated2022-01-12
First Seen2020-08-24

Runtime arguments

Network
bridge
Shell
bash
Privileged
false

Template configuration

CONFIG FOLDERPathrw

Configuration folder /config

Target
/config
Default
/mnt/user/appdata/post-recording
WATCH FOLDERPathrw

This location contains .ts files that need converting /watch

Target
/watch
BACKUP FOLDERPathrw

Optional, only used if DELETE_TS is set to 2 /backup

Target
/backup
DELETE_TSVariable

Remove the original .ts recording file. 0 = Yes, 1 = No, 2 = Move to backup directory

Default
1
Value
1
SUBTITLESVariable

Extract subtitles to .srt. 0= Yes, 1 = No

Default
0
Value
0
CONVERSION_FORMATVariable

mkv or mp4

Default
mkv
Value
mkv
SOURCE_EXTVariable

Source file extension, default .ts

Default
ts
Value
ts
POST_PROCESSVariable

comchap or comcut default: comchap

Default
comchap
Value
comchap
NVIDIA_VISIBLE_DEVICESVariable

GPU UUID retrieved from Nvidia plugin settings

PUIDVariable

Container Variable: PUID

Value
99
PGIDVariable

Container Variable: PGID

Value
100
UMASKVariable

Container Variable: UMASK

Value
000