Docker container for monitoring subtitle files and merging them into video
4.0K
Docker container for monitoring subtitle files and merging them into video
Source code on GitHub
*.lang.srt files*.lang.srt filesmkv/mp4 files*.lang.srt files/dataname.eng.srt. If you're using Bazarr to automatically download subtitles, you can set a post-processing script to automatically convert ISO 639-1 to ISO 639-2:
mv "{{subtitles}}" "{{directory}}/{{episode_name}}.{{subtitles_language_code3}}.srt" && echo
&& echo is required because bazarr can't handle scripts ending with quotes)specify environment variables for a webhook (optional):
WEBHOOK_URL - URL for the POST request. For example you can use AppriseWEBHOOK_TEMPLATE - template for the POST request body. Note that all double quotes " should be escaped by a backslash \ and dollar signs $ should be doubled. You can use variables in this template:
$SRT_FILE - full path to the subtitle file$VIDEO_FILE - full path to the video file$LANG - ISO 639-2 language code of the subtitles$RESULT - merge result, returns merge succeeded, merge completed with warnings or merge faileddocker-compose example
mergesrt:
container_name: mergesrt
image: zzeneg/mergesrt
restart: unless-stopped
environment:
WEBHOOK_URL: http://apprise:8000/notify
WEBHOOK_TEMPLATE: '{\"title\":\"*MergeSRT - $$RESULT*\", \"body\":\"$$SRT_FILE\"}'
volumes:
- /media:/data
Content type
Image
Digest
Size
11.5 MB
Last updated
about 5 years ago
docker pull zzeneg/mergesrt