@oreohq/ytdl-core 4.15.1

Sign up to get free protection for your applications and to get access to all the features.
package/lib/formats.js ADDED
@@ -0,0 +1,564 @@
1
+ /**
2
+ * http://en.wikipedia.org/wiki/YouTube#Quality_and_formats
3
+ */
4
+ module.exports = {
5
+ 5: {
6
+ mimeType: 'video/flv; codecs="Sorenson H.283, mp3"',
7
+ qualityLabel: "240p",
8
+ bitrate: 250000,
9
+ audioBitrate: 64,
10
+ },
11
+
12
+ 6: {
13
+ mimeType: 'video/flv; codecs="Sorenson H.263, mp3"',
14
+ qualityLabel: "270p",
15
+ bitrate: 800000,
16
+ audioBitrate: 64,
17
+ },
18
+
19
+ 13: {
20
+ mimeType: 'video/3gp; codecs="MPEG-4 Visual, aac"',
21
+ qualityLabel: null,
22
+ bitrate: 500000,
23
+ audioBitrate: null,
24
+ },
25
+
26
+ 17: {
27
+ mimeType: 'video/3gp; codecs="MPEG-4 Visual, aac"',
28
+ qualityLabel: "144p",
29
+ bitrate: 50000,
30
+ audioBitrate: 24,
31
+ },
32
+
33
+ 18: {
34
+ mimeType: 'video/mp4; codecs="H.264, aac"',
35
+ qualityLabel: "360p",
36
+ bitrate: 500000,
37
+ audioBitrate: 96,
38
+ },
39
+
40
+ 22: {
41
+ mimeType: 'video/mp4; codecs="H.264, aac"',
42
+ qualityLabel: "720p",
43
+ bitrate: 2000000,
44
+ audioBitrate: 192,
45
+ },
46
+
47
+ 34: {
48
+ mimeType: 'video/flv; codecs="H.264, aac"',
49
+ qualityLabel: "360p",
50
+ bitrate: 500000,
51
+ audioBitrate: 128,
52
+ },
53
+
54
+ 35: {
55
+ mimeType: 'video/flv; codecs="H.264, aac"',
56
+ qualityLabel: "480p",
57
+ bitrate: 800000,
58
+ audioBitrate: 128,
59
+ },
60
+
61
+ 36: {
62
+ mimeType: 'video/3gp; codecs="MPEG-4 Visual, aac"',
63
+ qualityLabel: "240p",
64
+ bitrate: 175000,
65
+ audioBitrate: 32,
66
+ },
67
+
68
+ 37: {
69
+ mimeType: 'video/mp4; codecs="H.264, aac"',
70
+ qualityLabel: "1080p",
71
+ bitrate: 3000000,
72
+ audioBitrate: 192,
73
+ },
74
+
75
+ 38: {
76
+ mimeType: 'video/mp4; codecs="H.264, aac"',
77
+ qualityLabel: "3072p",
78
+ bitrate: 3500000,
79
+ audioBitrate: 192,
80
+ },
81
+
82
+ 43: {
83
+ mimeType: 'video/webm; codecs="VP8, vorbis"',
84
+ qualityLabel: "360p",
85
+ bitrate: 500000,
86
+ audioBitrate: 128,
87
+ },
88
+
89
+ 44: {
90
+ mimeType: 'video/webm; codecs="VP8, vorbis"',
91
+ qualityLabel: "480p",
92
+ bitrate: 1000000,
93
+ audioBitrate: 128,
94
+ },
95
+
96
+ 45: {
97
+ mimeType: 'video/webm; codecs="VP8, vorbis"',
98
+ qualityLabel: "720p",
99
+ bitrate: 2000000,
100
+ audioBitrate: 192,
101
+ },
102
+
103
+ 46: {
104
+ mimeType: 'audio/webm; codecs="vp8, vorbis"',
105
+ qualityLabel: "1080p",
106
+ bitrate: null,
107
+ audioBitrate: 192,
108
+ },
109
+
110
+ 82: {
111
+ mimeType: 'video/mp4; codecs="H.264, aac"',
112
+ qualityLabel: "360p",
113
+ bitrate: 500000,
114
+ audioBitrate: 96,
115
+ },
116
+
117
+ 83: {
118
+ mimeType: 'video/mp4; codecs="H.264, aac"',
119
+ qualityLabel: "240p",
120
+ bitrate: 500000,
121
+ audioBitrate: 96,
122
+ },
123
+
124
+ 84: {
125
+ mimeType: 'video/mp4; codecs="H.264, aac"',
126
+ qualityLabel: "720p",
127
+ bitrate: 2000000,
128
+ audioBitrate: 192,
129
+ },
130
+
131
+ 85: {
132
+ mimeType: 'video/mp4; codecs="H.264, aac"',
133
+ qualityLabel: "1080p",
134
+ bitrate: 3000000,
135
+ audioBitrate: 192,
136
+ },
137
+
138
+ 91: {
139
+ mimeType: 'video/ts; codecs="H.264, aac"',
140
+ qualityLabel: "144p",
141
+ bitrate: 100000,
142
+ audioBitrate: 48,
143
+ },
144
+
145
+ 92: {
146
+ mimeType: 'video/ts; codecs="H.264, aac"',
147
+ qualityLabel: "240p",
148
+ bitrate: 150000,
149
+ audioBitrate: 48,
150
+ },
151
+
152
+ 93: {
153
+ mimeType: 'video/ts; codecs="H.264, aac"',
154
+ qualityLabel: "360p",
155
+ bitrate: 500000,
156
+ audioBitrate: 128,
157
+ },
158
+
159
+ 94: {
160
+ mimeType: 'video/ts; codecs="H.264, aac"',
161
+ qualityLabel: "480p",
162
+ bitrate: 800000,
163
+ audioBitrate: 128,
164
+ },
165
+
166
+ 95: {
167
+ mimeType: 'video/ts; codecs="H.264, aac"',
168
+ qualityLabel: "720p",
169
+ bitrate: 1500000,
170
+ audioBitrate: 256,
171
+ },
172
+
173
+ 96: {
174
+ mimeType: 'video/ts; codecs="H.264, aac"',
175
+ qualityLabel: "1080p",
176
+ bitrate: 2500000,
177
+ audioBitrate: 256,
178
+ },
179
+
180
+ 100: {
181
+ mimeType: 'audio/webm; codecs="VP8, vorbis"',
182
+ qualityLabel: "360p",
183
+ bitrate: null,
184
+ audioBitrate: 128,
185
+ },
186
+
187
+ 101: {
188
+ mimeType: 'audio/webm; codecs="VP8, vorbis"',
189
+ qualityLabel: "360p",
190
+ bitrate: null,
191
+ audioBitrate: 192,
192
+ },
193
+
194
+ 102: {
195
+ mimeType: 'audio/webm; codecs="VP8, vorbis"',
196
+ qualityLabel: "720p",
197
+ bitrate: null,
198
+ audioBitrate: 192,
199
+ },
200
+
201
+ 120: {
202
+ mimeType: 'video/flv; codecs="H.264, aac"',
203
+ qualityLabel: "720p",
204
+ bitrate: 2000000,
205
+ audioBitrate: 128,
206
+ },
207
+
208
+ 127: {
209
+ mimeType: 'audio/ts; codecs="aac"',
210
+ qualityLabel: null,
211
+ bitrate: null,
212
+ audioBitrate: 96,
213
+ },
214
+
215
+ 128: {
216
+ mimeType: 'audio/ts; codecs="aac"',
217
+ qualityLabel: null,
218
+ bitrate: null,
219
+ audioBitrate: 96,
220
+ },
221
+
222
+ 132: {
223
+ mimeType: 'video/ts; codecs="H.264, aac"',
224
+ qualityLabel: "240p",
225
+ bitrate: 150000,
226
+ audioBitrate: 48,
227
+ },
228
+
229
+ 133: {
230
+ mimeType: 'video/mp4; codecs="H.264"',
231
+ qualityLabel: "240p",
232
+ bitrate: 200000,
233
+ audioBitrate: null,
234
+ },
235
+
236
+ 134: {
237
+ mimeType: 'video/mp4; codecs="H.264"',
238
+ qualityLabel: "360p",
239
+ bitrate: 300000,
240
+ audioBitrate: null,
241
+ },
242
+
243
+ 135: {
244
+ mimeType: 'video/mp4; codecs="H.264"',
245
+ qualityLabel: "480p",
246
+ bitrate: 500000,
247
+ audioBitrate: null,
248
+ },
249
+
250
+ 136: {
251
+ mimeType: 'video/mp4; codecs="H.264"',
252
+ qualityLabel: "720p",
253
+ bitrate: 1000000,
254
+ audioBitrate: null,
255
+ },
256
+
257
+ 137: {
258
+ mimeType: 'video/mp4; codecs="H.264"',
259
+ qualityLabel: "1080p",
260
+ bitrate: 2500000,
261
+ audioBitrate: null,
262
+ },
263
+
264
+ 138: {
265
+ mimeType: 'video/mp4; codecs="H.264"',
266
+ qualityLabel: "4320p",
267
+ bitrate: 13500000,
268
+ audioBitrate: null,
269
+ },
270
+
271
+ 139: {
272
+ mimeType: 'audio/mp4; codecs="aac"',
273
+ qualityLabel: null,
274
+ bitrate: null,
275
+ audioBitrate: 48,
276
+ },
277
+
278
+ 140: {
279
+ mimeType: 'audio/m4a; codecs="aac"',
280
+ qualityLabel: null,
281
+ bitrate: null,
282
+ audioBitrate: 128,
283
+ },
284
+
285
+ 141: {
286
+ mimeType: 'audio/mp4; codecs="aac"',
287
+ qualityLabel: null,
288
+ bitrate: null,
289
+ audioBitrate: 256,
290
+ },
291
+
292
+ 151: {
293
+ mimeType: 'video/ts; codecs="H.264, aac"',
294
+ qualityLabel: "720p",
295
+ bitrate: 50000,
296
+ audioBitrate: 24,
297
+ },
298
+
299
+ 160: {
300
+ mimeType: 'video/mp4; codecs="H.264"',
301
+ qualityLabel: "144p",
302
+ bitrate: 100000,
303
+ audioBitrate: null,
304
+ },
305
+
306
+ 171: {
307
+ mimeType: 'audio/webm; codecs="vorbis"',
308
+ qualityLabel: null,
309
+ bitrate: null,
310
+ audioBitrate: 128,
311
+ },
312
+
313
+ 172: {
314
+ mimeType: 'audio/webm; codecs="vorbis"',
315
+ qualityLabel: null,
316
+ bitrate: null,
317
+ audioBitrate: 192,
318
+ },
319
+
320
+ 231: {
321
+ mimeType: 'video/ts; codecs="H.264, aac"',
322
+ qualityLabel: "480p",
323
+ bitrate: 500000,
324
+ audioBitrate: null,
325
+ },
326
+
327
+ 232: {
328
+ mimeType: 'video/ts; codecs="H.264, aac"',
329
+ qualityLabel: "720p",
330
+ bitrate: 800000,
331
+ audioBitrate: null,
332
+ },
333
+
334
+ 242: {
335
+ mimeType: 'video/webm; codecs="VP9"',
336
+ qualityLabel: "240p",
337
+ bitrate: 100000,
338
+ audioBitrate: null,
339
+ },
340
+
341
+ 243: {
342
+ mimeType: 'video/webm; codecs="VP9"',
343
+ qualityLabel: "360p",
344
+ bitrate: 250000,
345
+ audioBitrate: null,
346
+ },
347
+
348
+ 244: {
349
+ mimeType: 'video/webm; codecs="VP9"',
350
+ qualityLabel: "480p",
351
+ bitrate: 500000,
352
+ audioBitrate: null,
353
+ },
354
+
355
+ 247: {
356
+ mimeType: 'video/webm; codecs="VP9"',
357
+ qualityLabel: "720p",
358
+ bitrate: 700000,
359
+ audioBitrate: null,
360
+ },
361
+
362
+ 248: {
363
+ mimeType: 'video/webm; codecs="VP9"',
364
+ qualityLabel: "1080p",
365
+ bitrate: 1500000,
366
+ audioBitrate: null,
367
+ },
368
+
369
+ 249: {
370
+ mimeType: 'audio/webm; codecs="opus"',
371
+ qualityLabel: null,
372
+ bitrate: null,
373
+ audioBitrate: 48,
374
+ },
375
+
376
+ 250: {
377
+ mimeType: 'audio/webm; codecs="opus"',
378
+ qualityLabel: null,
379
+ bitrate: null,
380
+ audioBitrate: 64,
381
+ },
382
+
383
+ 251: {
384
+ mimeType: 'audio/webm; codecs="opus"',
385
+ qualityLabel: null,
386
+ bitrate: null,
387
+ audioBitrate: 160,
388
+ },
389
+
390
+ 264: {
391
+ mimeType: 'video/mp4; codecs="H.264"',
392
+ qualityLabel: "1440p",
393
+ bitrate: 4000000,
394
+ audioBitrate: null,
395
+ },
396
+
397
+ 266: {
398
+ mimeType: 'video/mp4; codecs="H.264"',
399
+ qualityLabel: "2160p",
400
+ bitrate: 12500000,
401
+ audioBitrate: null,
402
+ },
403
+
404
+ 270: {
405
+ mimeType: 'video/mp4; codecs="H.264"',
406
+ qualityLabel: "1080p",
407
+ bitrate: 2500000,
408
+ audioBitrate: null,
409
+ },
410
+
411
+ 271: {
412
+ mimeType: 'video/webm; codecs="VP9"',
413
+ qualityLabel: "1440p",
414
+ bitrate: 9000000,
415
+ audioBitrate: null,
416
+ },
417
+
418
+ 272: {
419
+ mimeType: 'video/webm; codecs="VP9"',
420
+ qualityLabel: "4320p",
421
+ bitrate: 20000000,
422
+ audioBitrate: null,
423
+ },
424
+
425
+ 278: {
426
+ mimeType: 'video/webm; codecs="VP9"',
427
+ qualityLabel: "144p 30fps",
428
+ bitrate: 80000,
429
+ audioBitrate: null,
430
+ },
431
+
432
+ 298: {
433
+ mimeType: 'video/mp4; codecs="H.264"',
434
+ qualityLabel: "720p",
435
+ bitrate: 3000000,
436
+ audioBitrate: null,
437
+ },
438
+
439
+ 299: {
440
+ mimeType: 'video/mp4; codecs="H.264"',
441
+ qualityLabel: "1080p",
442
+ bitrate: 5500000,
443
+ audioBitrate: null,
444
+ },
445
+
446
+ 300: {
447
+ mimeType: 'video/ts; codecs="H.264, aac"',
448
+ qualityLabel: "720p",
449
+ bitrate: 1318000,
450
+ audioBitrate: 48,
451
+ },
452
+
453
+ 301: {
454
+ mimeType: 'video/ts; codecs="H.264, aac"',
455
+ qualityLabel: "1080p",
456
+ bitrate: 3000000,
457
+ audioBitrate: 128,
458
+ },
459
+
460
+ 302: {
461
+ mimeType: 'video/webm; codecs="VP9"',
462
+ qualityLabel: "720p HFR",
463
+ bitrate: 2500000,
464
+ audioBitrate: null,
465
+ },
466
+
467
+ 303: {
468
+ mimeType: 'video/webm; codecs="VP9"',
469
+ qualityLabel: "1080p HFR",
470
+ bitrate: 5000000,
471
+ audioBitrate: null,
472
+ },
473
+
474
+ 308: {
475
+ mimeType: 'video/webm; codecs="VP9"',
476
+ qualityLabel: "1440p HFR",
477
+ bitrate: 10000000,
478
+ audioBitrate: null,
479
+ },
480
+
481
+ 311: {
482
+ mimeType: 'video/webm; codecs="VP9"',
483
+ qualityLabel: "720p",
484
+ bitrate: 1250000,
485
+ audioBitrate: null,
486
+ },
487
+
488
+ 312: {
489
+ mimeType: 'video/mp4; codecs="H.264"',
490
+ qualityLabel: "1080p",
491
+ bitrate: 2500000,
492
+ audioBitrate: null,
493
+ },
494
+
495
+ 313: {
496
+ mimeType: 'video/webm; codecs="VP9"',
497
+ qualityLabel: "2160p",
498
+ bitrate: 13000000,
499
+ audioBitrate: null,
500
+ },
501
+
502
+ 315: {
503
+ mimeType: 'video/webm; codecs="VP9"',
504
+ qualityLabel: "2160p HFR",
505
+ bitrate: 20000000,
506
+ audioBitrate: null,
507
+ },
508
+
509
+ 330: {
510
+ mimeType: 'video/webm; codecs="VP9"',
511
+ qualityLabel: "144p HDR, HFR",
512
+ bitrate: 80000,
513
+ audioBitrate: null,
514
+ },
515
+
516
+ 331: {
517
+ mimeType: 'video/webm; codecs="VP9"',
518
+ qualityLabel: "240p HDR, HFR",
519
+ bitrate: 100000,
520
+ audioBitrate: null,
521
+ },
522
+
523
+ 332: {
524
+ mimeType: 'video/webm; codecs="VP9"',
525
+ qualityLabel: "360p HDR, HFR",
526
+ bitrate: 250000,
527
+ audioBitrate: null,
528
+ },
529
+
530
+ 333: {
531
+ mimeType: 'video/webm; codecs="VP9"',
532
+ qualityLabel: "240p HDR, HFR",
533
+ bitrate: 500000,
534
+ audioBitrate: null,
535
+ },
536
+
537
+ 334: {
538
+ mimeType: 'video/webm; codecs="VP9"',
539
+ qualityLabel: "720p HDR, HFR",
540
+ bitrate: 1000000,
541
+ audioBitrate: null,
542
+ },
543
+
544
+ 335: {
545
+ mimeType: 'video/webm; codecs="VP9"',
546
+ qualityLabel: "1080p HDR, HFR",
547
+ bitrate: 1500000,
548
+ audioBitrate: null,
549
+ },
550
+
551
+ 336: {
552
+ mimeType: 'video/webm; codecs="VP9"',
553
+ qualityLabel: "1440p HDR, HFR",
554
+ bitrate: 5000000,
555
+ audioBitrate: null,
556
+ },
557
+
558
+ 337: {
559
+ mimeType: 'video/webm; codecs="VP9"',
560
+ qualityLabel: "2160p HDR, HFR",
561
+ bitrate: 12000000,
562
+ audioBitrate: null,
563
+ },
564
+ };