Sign inSign up

teckel12/transcoder

By teckel12

•Updated almost 5 years ago

Docker container to transcode videos to H265 - Designed for Plex, works with QNAP Container Station

Image
1

252

teckel12/transcoder repository overview

⁠Transcoder

Docker container to transcode videos to H265 - Designed for Plex, works with QNAP Container Station

⁠To run

  1. Change the volume to point at your root media folder
  2. docker-compose up -d

⁠To view live transcoding

docker logs transcoder_transcoder_1 && docker attach --no-stdin transcoder_transcoder_1

(CTRL-C is safe to exit with)

⁠Telegram notifications

  1. Create a .env file
  2. Set BOT_KEY and CHAT_ID variables
  3. Recreate the container

⁠Ignoring files

You can ignore files using .transcodeignore, which will make it not transcode any files in that directory or subdirectories.

⁠Re-Transcoding H265 -> H265

By default, the option to re-transcode H265 -> H265 is disabled. You can turn it on by setting environment variable H265_TRANSCODE to true

The other variable H265_MB_H defines how many MB/h is your target. If a file is below that target, it will not attempt to re-transcode the file.

It uses the formula size / duration instead of the reported bit rate by ffmpeg, as it seems it is often incorrect and not representative of the resulting file size.

⁠All Environment Variables

VariableDescriptionDefault
ROOT_PATHThe path of media to transcode (inside the container)/media
BACKUP_DIRThe directory to copy original files for backup (inside ROOT_PATH).backup
BOT_KEYThe Telegram bot key
CHAT_IDThe Telegram chat ID to report to
HOSTThe Host to specify in Telegram messages
CRFThe Constant Rate Factor quality setting. Lower number, better quality16
H265_TRANSCODEWhether to re-transcode H265 contentfalse
H265_MB_HMinimum MB/h to attempt to re-transcode H265 content1000

Tag summary

Content type

Image

Digest

Size

68.7 MB

Last updated

almost 5 years ago

docker pull teckel12/transcoder