forked from selsta/hlsdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hlsdl.1
128 lines (118 loc) · 2.11 KB
/
hlsdl.1
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
.TH hlsdl 1 "Nov 25, 2020"
.
.
.
.SH NAME
hlsdl - download VoD HLS (.m3u8) files
.
.
.
.SH SYNOPSIS
.B
hlsdl
[\fIoptions\fP]
.I
url
.
.
.
.SH DESCRIPTION
hlsdl downloads .m3u8 playlists (using fragmented MPEG-2 Transport Streams) to
a .ts video. It supports decryption of both AES-128 and SAMPLE-AES encryption.
It requires the libcurl and libcrypto libraries.
.
.
.
.SH OPTIONS
.TP
.B
-b
Automatically choose the best quality.
.TP
.BI -W " width
Choose largest width lower or equal than this.
.TP
.BI -H " height
Choose largest height lower or equal than this.
.TP
.BI -A " language
Select audio language.
.TP
.B
-v
Verbose more information. Repeating this option increases verbosity each time.
.TP
.BI -o " file
Name of output file ("-" alias for stdout).
.TP
.BI -u " user_agent
Set custom HTTP User-Agent header.
.TP
.BI -h " header
Add a custom HTTP header. This option can be applied multiple times to adds
multiple HTTP header lines.
.TP
.BI -p " url
Set proxy uri.
.TP
.BI -k " old
.sp -1
.TP
.BI -n " new
Replace every occurence of the string \fIold\fP with \fInew\fP in the
AES key uri.
.TP
.B
-f
Overwrite the output file without asking.
.TP
.B
-F
Force ignore detection of DRM.
.TP
.BI -K " key
Use \fIkey\fP in place of the AES key value found from the url.
The key is a string of 32 hexadecimal characters, with no hyphen in between.
.TP
.B
-q
Print less to the console. This option decreases the verbosity level each time
is given. It is the opposite of \fI-v\fP.
.TP
.B
-d
Print the openssl decryption command.
.TP
.B
-t
Print the links to the .ts files.
.TP
.BI -s " seconds
Set live start offset in seconds.
.TP
.BI -i " seconds
Set live stream download duration in seconds.
.TP
.BI -e " seconds
Set refresh delay in seconds.
.TP
.BI -r " number
Set max retries at open.
.TP
.BI -w " number
Set max download segment retries.
.TP
.BI -a " url
Set additional url to the audio media playlist.
.TP
.B
-c
Treat HTTP code 206 as 200 even if request was made without range header.
.TP
.BI -C " file
The file holding cookie data in the old Netscape / Mozilla cookie data format.
.
.
.
.SH SOURCE
https://github.com/selsta/hlsdl