diff options
| author | The Hatsune Daishi <nao20010128@gmail.com> | 2021-12-20 15:06:46 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-20 11:36:46 +0530 |
| commit | adbc4ec4bbfbe57842049cf9194384480f534859 (patch) | |
| tree | bb51014a17737fc2c07f14f47308fc9ab74c482e /yt_dlp/options.py | |
| parent | c031b0414c2f2523bdf49e2085469679921f846c (diff) | |
[dash,youtube] Download live from start to end (#888)
* Add option `--live-from-start` to enable downloading live videos from start
* Add key `is_from_start` in formats to identify formats (of live videos) that downloads from start
* [dash] Create protocol `http_dash_segments_generator` that allows a function to be passed instead of fragments
* [fragment] Allow multiple live dash formats to download simultaneously
* [youtube] Implement fragment re-fetching for the live dash formats
* [youtube] Re-extract dash manifest every 5 hours (manifest expires in 6hrs)
* [postprocessor/ffmpeg] Add `FFmpegFixupDuplicateMoovPP` to fixup duplicated moov atoms
Known issue: Ctrl+C doesn't work on Windows when downloading multiple formats
Closes #1521
Authored by: nao20010128nao, pukkandan
Diffstat (limited to 'yt_dlp/options.py')
| -rw-r--r-- | yt_dlp/options.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/options.py b/yt_dlp/options.py index f4293e688..e3d753adf 100644 --- a/yt_dlp/options.py +++ b/yt_dlp/options.py @@ -259,6 +259,14 @@ def parseOpts(overrideArguments=None): action='store_false', dest='extract_flat', help='Extract the videos of a playlist') general.add_option( + '--live-from-start', + action='store_true', dest='live_from_start', + help='Download livestreams from the start. Currently only supported for YouTube') + general.add_option( + '--no-live-from-start', + action='store_false', dest='live_from_start', + help='Download livestreams from the current time (default)') + general.add_option( '--wait-for-video', dest='wait_for_video', metavar='MIN[-MAX]', default=None, help=( |
