aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/options.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2016-01-30 12:26:40 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2016-01-30 12:26:40 +0100
commit7d106a65ca30cc3201f147cb96aa98a15a48d6d2 (patch)
tree1ddb967d897220555b61cbd219ff25e644ea1565 /youtube_dl/options.py
parent0179f6a8301e8dee1f435289f89cf1c748a13b16 (diff)
Add --hls-use-mpegts option
When using the mpegts container hls vidoes can be played while being downloaded (useful if you are recording a live stream). VLC and mpv play them file, but QuickTime doesn't.
Diffstat (limited to 'youtube_dl/options.py')
-rw-r--r--youtube_dl/options.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube_dl/options.py b/youtube_dl/options.py
index 433245f00..39fc4306a 100644
--- a/youtube_dl/options.py
+++ b/youtube_dl/options.py
@@ -416,6 +416,11 @@ def parseOpts(overrideArguments=None):
dest='hls_prefer_native', action='store_true',
help='Use the native HLS downloader instead of ffmpeg (experimental)')
downloader.add_option(
+ '--hls-use-mpegts',
+ dest='hls_use_mpegts', action='store_true',
+ help='Use the mpegts container for HLS videos, allowing to play the '
+ 'video while downloading (some players may not be able to play it')
+ downloader.add_option(
'--external-downloader',
dest='external_downloader', metavar='COMMAND',
help='Use the specified external downloader. '