-
Notifications
You must be signed in to change notification settings - Fork 40
/
ytdlp_config.json
53 lines (41 loc) · 1.73 KB
/
ytdlp_config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
// Stream selection format.
// For example "134+140/mp4+m4a/bestvideo+bestaudio"
// would prefer 360p video + AAC 128kpbs audio to be muxed with ffmpeg,
// otherwise fallback to "best" according to yt-dlp's logic
"format": "mp4+m4a/bestvideo+bestaudio",
// Path to your cookies (this value is replaced by the value
// submitted via the --cookies parameter to livestream_saver)
// "cookiefile": "",
// Pass the PO token to the extractor (avoid IP blocking)
// See this page for more information
// https://github.com/yt-dlp/yt-dlp/wiki/Extractors
// REPLACE PO_TOKEN_VALUE_HERE with your PO token!
"extractor-args": "youtube:player-client=web,default;po_token=web+PO_TOKEN_VALUE_HERE",
// Do not stop on download/postprocessing errors.
// Can be "only_download" to ignore only download errors.
// Default is "only_download" for CLI, but False for API
// "ignoreerrors": "only_download",
"outtmpl": "%(release_date)s [%(uploader)s] %(title)s [%(height)s][%(id)s].%(ext)s",
// Need to test this one, but it's not needed in our case anyway:
// "match_filter": 'is_live',
// "wait_for_video": (60, 120),
"live_from_start": true,
"writethumbnail": true,
"fragment_retries": 50,
// "wait_for_video" = (60, 120),
"postprocessors": [
{
// --embed-thumbnail
"key": "EmbedThumbnail",
// already_have_thumbnail = True prevents the file from being deleted after embedding
"already_have_thumbnail": true
},
{
"key": "FFmpegMetadata",
"add_chapters": false,
"add_metadata": true,
"add_infojson": false
}
]
}