Allow specifying the output format

i.e. the output file extension passed to ffmpeg
This commit is contained in:
Ivan Habunek 2019-07-05 12:59:58 +02:00
parent 46d2654cfa
commit cbb0d6cfbd
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
2 changed files with 20 additions and 1 deletions

View File

@ -36,6 +36,18 @@ Download by ID:
twitch-dl download 377220226
```
Specify output format:
```
twitch-dl download --format=avi 377220226
```
Partial download by setting start and end time (hh:mm or hh:mm:ss):
```
twitch-dl download --start=00:10 --end=02:15 377220226
```
# SEE ALSO
youtube-dl(1)

View File

@ -50,7 +50,8 @@ COMMANDS = [
"type": str,
}),
(["-w", "--max_workers"], {
"help": "maximal number of threads for downloading vods concurrently (default 5)",
"help": "maximal number of threads for downloading vods "
"concurrently (default 5)",
"type": int,
"default": 20,
}),
@ -64,6 +65,12 @@ COMMANDS = [
"type": time,
"default": None,
}),
(["-f", "--format"], {
"help": "Video format to convert into, passed to ffmpeg as the "
"target file extension (default: mkv)",
"type": str,
"default": "mkv",
}),
],
),
]