1QUVI-DUMP(1)                      quvi Manual                     QUVI-DUMP(1)
2
3
4

NAME

6       quvi-dump - The dull-witted property printer
7

SYNOPSIS

9       quvi dump [OPTIONS] [ARGS]
10

DESCRIPTION

12       This command queries the properties for an URL and prints them to the
13       stdout.
14

DEFAULT BEHAVIOUR

16       The command will attempt to determine if any of the libquvi-scripts(7)
17       accept the input URL before exiting with an error. The script type
18       {playlist,media,...} determines how the command will handle the input
19       URL.
20
21       Playlist URLs
22           The playlist properties (media URLs) are printed in the "rfc2483"
23           format.
24
25       Media URLs
26           The media properties will be printed in the "enum" format.
27
28       Available {subtitles,streams}
29           Printed in the "rfc2483" format.
30
31       The --print-format may be used to change the default behaviour.
32

SUPPORT

34       The support for the media hosts is determined by the current selection
35       of libquvi-scripts(7).
36

CONFIGURATION

38       See quvirc(5) for more information about the groups and the variables
39       that quvi parses.
40

INPUT

42       The command will read stdin by default. The input is expected to
43       contain URLs. The command arguments are expected to be either URLs or
44       file paths. If the input is read from either stdin or a file, the
45       contents are read as RFC2483. The input may contain file URIs.
46

OPTIONS

48   Core
49       -o, --check-mode-offline
50           Do not resolve URL redirections before passing the URL to the
51           libquvi-scripts(7) to determine whether the URL is accepted by any
52           of the scripts.
53
54           config: core.check-mode-offline=<boolean>
55
56       -B, --print-subtitles
57           Query and print the available media subtitles. See also
58           --print-format.
59
60       -S, --print-streams
61           Query and print the available media streams. See also
62           --print-format.
63
64       -l, --subtitle-language PATTERN[,PATTERN,...]
65           Match a subtitle language using a regex PATTERN. The value may be a
66           comma-separated list of regex PATTERNs (left-to-right order) that
67           are matched against the available selection.
68
69           The value may also contain the reserved keyword croak which will
70           cause libquvi(3) to exit with an error when reached.
71
72           Note
73           The first available subtitle language will be chosen if nothing
74           matched the PATTERN
75
76           config: core.subtitle-language=<PATTERN[,PATTERN,...]>
77
78       -s, --stream PATTERN[,PATTERN,...]
79           Match a stream using a regex PATTERN. The value may be a
80           comma-separated list of regex PATTERNs (left-to-right order) that
81           are matched against the available selection.
82
83           The value may contain the following reserved keywords:
84
85           ·    croak - instructs libquvi(3) to exit with an error when
86               reached
87
88           ·    best - instructs libquvi(3) to choose the best quality stream
89
90           The best quality is determined by the libquvi-scripts(7) by
91           comparing the media quality properties, e.g. the video height
92           property, although the actual method may vary depending on the data
93           provided by the media hosting service.
94
95           Note
96           The first available stream is selected if nothing matched
97
98           config: core.stream=<PATTERN[,PATTERN,...]>
99
100       -p, --print-format FORMAT (default: varies)
101           Specify the format in which the properties should be printed. The
102           command uses a different default value for this, depending on the
103           input URL. FORMAT may be one of the following values:
104
105           ·    enum
106
107           ·    json - available only if quvi was built with JsonGLib
108
109           ·    rfc2483
110
111           ·    xml - available only if quvi was built with libxml
112
113           Note
114           The default value varies, see DEFAULT BEHAVIOUR.
115
116           config: core.print-format=<FORMAT>
117
118       -b, --verbosity LEVEL (default: verbose)
119           Specify the verbosity level of the command. LEVEL may be:
120
121           ·    debug - verbose + enable verbose output for libcurl
122               (CURLOPT_VERBOSE)
123
124           ·    verbose - default
125
126           ·    quiet - errors only
127
128           ·    mute - nothing at all
129
130           config: core.verbosity=<LEVEL>
131
132   Dump
133       -q, --query-metainfo
134           Instruct the command to query the HTTP metainfo properties, namely
135           Content-{Length,Type}. This will cause libquvi(3) to send an HTTP
136           HEAD request for each HTTP media stream URL and parse the returned
137           data. When used, the command will include these properties to the
138           printed media properties.
139
140           config: dump.query-metainfo=<boolean>
141
142   Exec
143       -A, --exec-dump-argv
144           Print the argument array used to execute the child program.
145
146           config: exec.dump-argv=<boolean>
147
148       -E, --exec-enable-stderr
149           Do not discard child program’s standard error.
150
151           config: exec.enable-stderr=<boolean>
152
153       -O, --exec-enable-stdout
154           Do not discard child program’s standard output.
155
156           config: exec.enable-stdout=<boolean>
157
158       -e, --exec COMMAND
159           Execute a child program asynchoronously after parsing the media
160           properties. COMMAND may contain any of the following property
161           sequences. Each occurence will be replaced by the command before
162           the COMMAND is executed:
163
164               %s  Media property: start time (ms)
165               %T  Media property: thumbnail URL
166               %d  Media property: duration (ms)
167               %u  Media stream property: URL
168               %I  Media stream property: ID
169               %t  Media property: title
170               %i  Media property: ID
171               %e  File extension[1]
172               %f  Path to the saved media file[2]
173
174               [1]: The file extension is parsed from the HTTP content-type header.
175                    quvi-get(1) replaces this sequence with HTTP media streams only.
176                    quvi-dump(2) replaces it only when --query-metainfo is used with
177                    HTTP media streams.
178
179               [2]: This sequence is unique to quvi-get(1)
180
181           This option may be specified multiple times. In the quvirc(5) file,
182           specify the commands in a comma-separated list.
183
184           config: exec.external=<COMMAND[,COMMAND,...]>
185
186   HTTP
187       -c, --enable-cookies
188           Have libcurl parse the received cookies and use them in the
189           subsequent HTTP requests.
190
191           config: http.enable-cookies=<boolean>
192
193       -u, --user-agent USERAGENT (default: Mozilla/5.0)
194           Identify as USERAGENT to the HTTP server.
195
196           Note
197           libquvi-scripts(7) may override this value
198
199           config: http.user-agent=<USERAGENT>
200

EXAMPLES

202       ·   Print media properties in XML:
203
204               $ quvi dump -p xml MEDIA_URL
205
206       ·   Execute a child program:
207
208               $ quvi dump -e "totem %u" MEDIA_URL
209
210       ·   Print playlist properties in JSON:
211
212               $ quvi dump -p json PLAYLIST_URL
213
214       ·   Print available subtitles in JSON:
215
216               $ quvi dump -p json -B MEDIA_URL
217
218       ·   Print available media streams:
219
220               $ quvi dump -S MEDIA_URL
221
222       ·   Query media properties for each playlist item:
223
224               $ quvi dump PLAYLIST_URL | quvi dump
225

ENVIRONMENT

227       See quvi(1)
228

EXIT STATUS

230       Either EXIT_SUCCESS or EXIT_FAILURE. The actual value depends on the
231       platform, on POSIX systems they are 0 (success) and 1 (failure).
232

SEE ALSO

234       quvirc(5), libquvi(3)
235

FURTHER RESOURCES

237       Home
238
239           http://quvi.sourceforge.net/
240
241       Development code
242
243           git://repo.or.cz/quvi-tool.git
244
245       gitweb
246
247           http://repo.or.cz/w/quvi-tool.git
248

AUTHORS

250       Toni Gundogdu <legatvs@gmail.com>
251           Author.
252

REPORTING BUGS

254       Report bugs to the quvi-devel mailing list
255       <quvi-devel@lists.sourceforge.net> where the development and the
256       maintenance is primarily done. You do not have to be subscribed to the
257       list to send a message there.
258

LICENSE

260       quvi is Free Software licensed under the GNU Affero GPLv3+
261

QUVI

263       Part of the quvi(1) suite
264
265
266
267quvi 0.9.5                        11/10/2013                      QUVI-DUMP(1)
Impressum