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.
This commit is contained in:
Jaime Marquínez Ferrándiz 2016-01-30 12:26:40 +01:00
parent 0179f6a830
commit 7d106a65ca
5 changed files with 13 additions and 2 deletions

View file

@ -415,6 +415,11 @@ def parseOpts(overrideArguments=None):
'--hls-prefer-native',
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',