Setup ytdl option file
This commit is contained in:
18
services/youtube-dl/config/ytdl_options.json
Normal file
18
services/youtube-dl/config/ytdl_options.json
Normal 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"
|
||||||
|
}
|
||||||
@@ -7,19 +7,12 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
UID: ${NASCOMPOSE_UID?}
|
UID: ${NASCOMPOSE_UID?}
|
||||||
GID: ${NASCOMPOSE_GID?}
|
GID: ${NASCOMPOSE_GID?}
|
||||||
YTDL_OPTIONS: >
|
YTDL_OPTIONS_FILE: /etc/ytdl_options.json
|
||||||
{
|
DELETE_FILE_ON_TRASHCAN: true
|
||||||
"writesubtitles": true,
|
|
||||||
"subtitleslangs": ["all", "-live_chat"],
|
|
||||||
"subtitlesformat": "ass/srt/best",
|
|
||||||
"postprocessors": [
|
|
||||||
{ "key": "FFmpegEmbedSubtitle" },
|
|
||||||
{ "key": "FFmpegMetadata" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
networks:
|
networks:
|
||||||
- reverse-proxy
|
- reverse-proxy
|
||||||
volumes:
|
volumes:
|
||||||
|
- ${NASCOMPOSE_SERVICES?}/youtube-dl/config/ytdl_options.json:/etc/ytdl_options.json:ro
|
||||||
- ${NASCOMPOSE_DATA?}/ytdl/:/downloads/
|
- ${NASCOMPOSE_DATA?}/ytdl/:/downloads/
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
Reference in New Issue
Block a user