Setup ytdl option file

This commit is contained in:
Colin Hebert
2023-11-11 11:55:06 +11:00
parent d6c9152492
commit 31de7a84bd
2 changed files with 21 additions and 10 deletions

View File

@@ -0,0 +1,18 @@
{
"writesubtitles": true,
"subtitleslangs": [
"all",
"-live_chat"
],
"subtitlesformat": "ass/srt/best",
"postprocessors": [
{
"key": "FFmpegEmbedSubtitle"
},
{
"key": "FFmpegMetadata"
}
],
"format": "(bv*[vcodec~='^((he|a)vc|h26[45])']+ba) / (bv*+ba/b)",
"merge_output_format": "mkv"
}

View File

@@ -7,19 +7,12 @@ services:
environment:
UID: ${NASCOMPOSE_UID?}
GID: ${NASCOMPOSE_GID?}
YTDL_OPTIONS: >
{
"writesubtitles": true,
"subtitleslangs": ["all", "-live_chat"],
"subtitlesformat": "ass/srt/best",
"postprocessors": [
{ "key": "FFmpegEmbedSubtitle" },
{ "key": "FFmpegMetadata" }
]
}
YTDL_OPTIONS_FILE: /etc/ytdl_options.json
DELETE_FILE_ON_TRASHCAN: true
networks:
- reverse-proxy
volumes:
- ${NASCOMPOSE_SERVICES?}/youtube-dl/config/ytdl_options.json:/etc/ytdl_options.json:ro
- ${NASCOMPOSE_DATA?}/ytdl/:/downloads/
restart: unless-stopped
labels: