Giter Club home page Giter Club logo

plex-cuda-transcoder's Introduction

Plex CUDA Transcoder

Applications like Plex will record live TV content as MPEG2 files with a .TS extension. Watch the folder where .TS (MPEG2) videos are recorded and then transcode to H264 using a CUDA enabled video card. There is an optional H265 script provided in the container at /usr/src/app/scripts. Just set the environmental variable SCRIPT to '/usr/src/app/scripts/ffmpeg-h265.sh'

Requirements

Test Docker with Nvidia Card

docker run --rm --gpus all nvidia/cuda:11.4.0-base nvidia-smi

Usage

Docker

docker run \
  --name plex-cuda-transcoder \
  --runtime=nvidia \
  -e PLEX_HOST=192.168.1.100 \
  -e PLEX_LIBRARY_ID=1 \
  -e PLEX_TOKEN=? \
  -v </path/to/tv-shows>:/watch \
  dabauum221/plex-cuda-transcoder

Docker Compose

version: '2.3'

services:

  plex-cuda-transcoder:
    image: dabauum221/plex-cuda-transcoder:latest
    runtime: nvidia
    container_name: plex-cuda-transcoder
    volumes:
      - </path/to/tv-shows>:/watch
    environment:
      - PLEX_HOST=192.168.1.100
      - PLEX_PORT=32400
      - PLEX_LIBRARY_ID=1
      - PLEX_TOKEN=?
    restart: unless-stopped

Paramaters

Parameter Function
-e PLEX_HOST=192.168.1.100 Plex IP address
-e PLEX_PORT=32400 Plex port (32400 is the default)
-e PLEX_LIBRARY_ID=1 The ID of the library where the recordings go (The one that points to the volume configured)
-e PLEX_TOKEN The token used to authenticate to the Plex server, How to find it
-v /watch Location of the Plex recording directory to watch

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.