├── .gitignore
├── README.md
├── dist
└── .gitkeep
├── index.html
├── package.json
├── src
├── convertSegmentToCustomResolution.ts
├── createMasterPlaylist.ts
├── createSegmentsFromOriginalVideo.ts
├── generateEncryptedSegments.ts
├── generateEncryptionKey.ts
├── getVideoInformation.ts
├── mergeSegmentsIntoVideo.ts
├── testEncrypt.ts
└── transcode.ts
├── tmp
└── .gitkeep
├── tsconfig.json
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | dist/*
2 | !dist/.gitkeep
3 | tmp/*
4 | !tmp/.gitkeep
5 | node_modules
6 | video.mkv
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # First
2 |
3 | [x] Check for resolution;
4 | [x] Compress and generate .ts files from original files;
5 | [x] Generate .ts files for each resolution based on original .ts file;
6 | [x] Generate .m3u8 playlist for each resolution;
7 | [x] Generate master .m3u8 playlist;
8 |
9 | # After
10 |
11 | [x] AES-128 encryption;
12 |
13 | # VideoJS
14 |
15 | https://www.npmjs.com/package/videojs-seek-buttons
16 |
--------------------------------------------------------------------------------
/dist/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diego3g/node-ffmpeg-hls-encryption/534a4500ef6264dd263e6322710bde05fe39d399/dist/.gitkeep
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
19 |
20 |
35 |
36 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "transcode-lambda",
3 | "version": "1.0.0",
4 | "main": "index.js",
5 | "license": "MIT",
6 | "scripts": {
7 | "dev": "ts-node src/transcode.ts"
8 | },
9 | "devDependencies": {
10 | "@types/hls-parser": "^0.5.1",
11 | "@types/node": "^14.11.8",
12 | "ts-node": "^9.0.0",
13 | "typescript": "^4.0.3"
14 | },
15 | "dependencies": {
16 | "hls-parser": "^0.6.3"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/convertSegmentToCustomResolution.ts:
--------------------------------------------------------------------------------
1 | import path from "path";
2 | import { execSync } from "child_process";
3 |
4 | const ffmpegPath = '/usr/local/bin/ffmpeg';
5 | const distPath = path.join(__dirname, '..', 'dist');
6 |
7 | // const createSegmentsArgs = [
8 | // `-i ${objectPath}`,
9 | // '-vcodec libx264',
10 | // '-acodec copy',
11 | // '-c:a aac',
12 | // '-ar 48000',
13 | // '-b:a 192k',
14 | // '-c:v h264',
15 | // '-profile:v main',
16 | // '-crf 20',
17 | // '-g 48',
18 | // '-b:v 2500k',
19 | // '-maxrate 4500k',
20 | // '-bufsize 5300k',
21 | // '-sc_threshold 0',
22 | // '-keyint_min 48',
23 | // '-hls_time 4',
24 | // '-f segment',
25 | // '-muxdelay 0',
26 | // '-hls_playlist_type vod',
27 | // `-segment_list ${playlistName} ${segmentPath}`
28 | // ].join(' ');
29 |
30 | export type Resolutions = '1920x1080' | '1280x720' | '640x480';
31 | type Bitrate = {[key in Resolutions]: string}
32 |
33 | const audioBitrate: Bitrate = {
34 | "640x480": '128k',
35 | "1280x720": '128k',
36 | "1920x1080": '192k',
37 | }
38 |
39 | const videoMinBitRate: Bitrate = {
40 | "640x480": '1400k',
41 | "1280x720": '2800k',
42 | "1920x1080": '4000k',
43 | }
44 |
45 | const videoMaxBitRate: Bitrate = {
46 | "640x480": '1498k',
47 | "1280x720": '2996k',
48 | "1920x1080": '4200k',
49 | }
50 |
51 | const videoBufferSize: Bitrate = {
52 | "640x480": '2100k',
53 | "1280x720": '4200k',
54 | "1920x1080": '7500k',
55 | }
56 |
57 | export function convertSegmentToCustomResolution(chunkName: string, resolution: Resolutions) {
58 | const segmentPath = path.join(distPath, 'original', chunkName);
59 | const destinationPath = path.join(distPath, resolution, chunkName);
60 |
61 | const convertSegmentArgs = [
62 | `-i ${segmentPath}`,
63 | `-s ${resolution}`,
64 | '-vcodec libx264',
65 | '-acodec copy',
66 | '-c:a aac',
67 | '-ar 48000',
68 | `-b:a ${audioBitrate[resolution]}`,
69 | '-c:v h264',
70 | '-profile:v main',
71 | '-crf 20',
72 | `-b:v ${videoMinBitRate[resolution]}`,
73 | `-maxrate ${videoMaxBitRate[resolution]}`,
74 | `-bufsize ${videoBufferSize[resolution]}`,
75 | '-sc_threshold 0',
76 | '-keyint_min 48',
77 | '-muxdelay 0',
78 | '-copyts',
79 | destinationPath
80 | ].join(' ');
81 |
82 | console.log(convertSegmentArgs);
83 |
84 | const convertSegment = `${ffmpegPath} ${convertSegmentArgs}`;
85 |
86 | execSync(convertSegment);
87 | }
--------------------------------------------------------------------------------
/src/createMasterPlaylist.ts:
--------------------------------------------------------------------------------
1 | import path from "path";
2 | import fs from "fs";
3 | import HLS from 'hls-parser';
4 |
5 | const distPath = path.join(__dirname, '..', 'dist');
6 |
7 | const { MasterPlaylist, Variant } = HLS.types;
8 |
9 | const resolutions = [
10 | "640x480",
11 | "1280x720",
12 | "1920x1080",
13 | ];
14 |
15 | export async function createMasterPlaylist() {
16 | const variants = resolutions.map((resolution) => {
17 | const playlistPath = path.join(distPath, 'encrypted', resolution, 'playlist.m3u8');
18 | const playlistContent = fs.readFileSync(playlistPath, { encoding: 'utf8' });
19 |
20 | const { segments } = HLS.parse(playlistContent) as HLS.types.MediaPlaylist;
21 | const segment = segments[0];
22 | const segmentPath = path.join(distPath, resolution, segment.uri);
23 | const { size } = fs.statSync(segmentPath);
24 |
25 | const bandwidth = size * 8 / segment.duration;
26 |
27 | const [width, height] = resolution.split('x').map(Number);
28 |
29 | return new Variant({
30 | uri: `${resolution}/playlist.m3u8`,
31 | bandwidth: Math.ceil(bandwidth),
32 | resolution: {
33 | width,
34 | height,
35 | }
36 | });
37 | });
38 |
39 | const masterPlaylist = new MasterPlaylist({
40 | variants,
41 | })
42 |
43 | await fs.promises.writeFile(
44 | path.join(distPath, 'encrypted', 'master.m3u8'),
45 | HLS.stringify(masterPlaylist),
46 | );
47 | }
--------------------------------------------------------------------------------
/src/createSegmentsFromOriginalVideo.ts:
--------------------------------------------------------------------------------
1 | import fs from 'fs';
2 | import path from 'path';
3 | import { execSync } from 'child_process'
4 |
5 | const ffmpegPath = '/usr/local/bin/ffmpeg';
6 | const distPath = path.join(__dirname, '..', 'dist');
7 |
8 | export async function createSegmentsFromOriginalVideo(objectPath: string) {
9 | console.time('Creating segments');
10 |
11 | await fs.promises.mkdir(path.join(distPath, 'original'));
12 |
13 | const segmentPath = path.join(distPath, 'original', 'chunk%05d.ts');
14 | const playlistName = path.join(distPath, 'original', 'playlist.m3u8');
15 |
16 | const createSegmentsArgs = [
17 | `-i ${objectPath}`,
18 | '-vcodec copy',
19 | '-acodec copy',
20 | '-f segment',
21 | '-muxdelay 0',
22 | `-segment_list ${playlistName}`,
23 | segmentPath,
24 | ].join(' ');
25 |
26 | const createSegments = `${ffmpegPath} ${createSegmentsArgs}`;
27 |
28 | execSync(createSegments);
29 |
30 | console.timeEnd('Creating segments');
31 |
32 | const playlistFileContent = await fs.promises.readFile(playlistName);
33 |
34 | const chunkRegex = /chunk[0-9]{5}\.ts/g
35 | const chunksGenerated = ((playlistFileContent.toString() || '').match(chunkRegex) || []).length;
36 |
37 | return chunksGenerated;
38 | };
--------------------------------------------------------------------------------
/src/generateEncryptedSegments.ts:
--------------------------------------------------------------------------------
1 | import fs from 'fs';
2 | import path from 'path';
3 | import { execSync } from 'child_process';
4 | import { Resolutions } from './convertSegmentToCustomResolution';
5 |
6 | const distPath = path.join(__dirname, '..', 'dist');
7 |
8 | export async function generateEncryptedSegments(resolution: Resolutions) {
9 | const encryptedResolutionPath = path.join(distPath, 'encrypted', resolution);
10 |
11 | const inputPath = path.join(distPath, 'merged', `${resolution}.mp4`);
12 | const segmentPath = path.join(encryptedResolutionPath, 'chunk%05d.ts');
13 | const playlistName = path.join(encryptedResolutionPath, 'playlist.m3u8');
14 | const encryptionKeyInfoPath = path.join(encryptedResolutionPath, 'encryption.keyinfo');
15 |
16 | const createSegmentsArgs = [
17 | `-i ${inputPath}`,
18 | '-vcodec copy',
19 | '-acodec copy',
20 | '-muxdelay 0',
21 | '-hls_playlist_type vod',
22 | `-hls_key_info_file ${encryptionKeyInfoPath}`,
23 | `-hls_segment_filename ${segmentPath}`,
24 | playlistName,
25 | ].join(' ');
26 |
27 | execSync(`/usr/local/bin/ffmpeg ${createSegmentsArgs}`);
28 | }
--------------------------------------------------------------------------------
/src/generateEncryptionKey.ts:
--------------------------------------------------------------------------------
1 | import fs from "fs";
2 | import path from "path";
3 | import crypto from "crypto";
4 | import { Resolutions } from "./convertSegmentToCustomResolution";
5 |
6 | // http://localhost:5500/dist/enc.key
7 | // /Users/diegofernandes/www/lambda-transcoding/dist/enc.key
8 | // f192b31edaba4424d3804d8ddbf0b7ce
9 |
10 | const distPath = path.join(__dirname, '..', 'dist');
11 |
12 | export async function generateEncryptionKey(resolution: Resolutions) {
13 | const key = crypto.randomBytes(16).toString('hex');
14 | const iv = crypto.randomBytes(16).toString('hex');
15 |
16 | const encryptionKeyFilePath = path.join(distPath, 'encrypted', resolution, 'encryption.key');
17 |
18 | await fs.promises.writeFile(encryptionKeyFilePath, key);
19 |
20 | const encryptionKeyInfo = [
21 | `http://localhost:5500/dist/encrypted/${resolution}/encryption.key`,
22 | path.resolve(distPath, 'encrypted', resolution, 'encryption.key'),
23 | iv
24 | ].join('\n');
25 |
26 | const keyInfoFilePath = path.join(distPath, 'encrypted', resolution, 'encryption.keyinfo');
27 |
28 | await fs.promises.writeFile(keyInfoFilePath, encryptionKeyInfo);
29 | }
--------------------------------------------------------------------------------
/src/getVideoInformation.ts:
--------------------------------------------------------------------------------
1 | import path from "path";
2 | import { execSync } from "child_process";
3 | import fs from 'fs';
4 |
5 | const tmpPath = path.join(__dirname, "..", 'tmp');
6 | const probeVideoDataPath = path.join(tmpPath, 'probeVideoData.json');
7 |
8 | const ffprobePath = '/usr/local/bin/ffprobe';
9 |
10 | interface VideInformation {
11 | streams: Array<{
12 | width: number;
13 | height: number;
14 | }>;
15 | format: {
16 | duration: string;
17 | size: string;
18 | }
19 | }
20 |
21 | export async function getVideoInformation(objectPath: string): Promise {
22 | const command = `${ffprobePath} -v error -show_entries stream=width,height -show_entries format=size,duration -print_format json -i "${objectPath}" > "${probeVideoDataPath}"`;
23 |
24 | execSync(command);
25 |
26 | const probeData = await fs.promises.readFile(probeVideoDataPath);
27 |
28 | return JSON.parse(probeData.toString());
29 | };
--------------------------------------------------------------------------------
/src/mergeSegmentsIntoVideo.ts:
--------------------------------------------------------------------------------
1 | import fs from 'fs';
2 | import path from 'path';
3 | import { execSync } from 'child_process';
4 |
5 | import { Resolutions } from './convertSegmentToCustomResolution';
6 |
7 | const distPath = path.join(__dirname, '..', 'dist');
8 |
9 | export async function mergeSegmentsIntoVideo(resolution: Resolutions) {
10 | const playlistPath = path.join(distPath, resolution, 'playlist.m3u8');
11 | const joinedVideoPath = path.join(distPath, 'merged', `${resolution}.mp4`);
12 |
13 | const joinSegmentsArgs = [
14 | `-i ${playlistPath}`,
15 | `-codec copy`,
16 | joinedVideoPath
17 | ].join(' ');
18 |
19 | execSync(`/usr/local/bin/ffmpeg ${joinSegmentsArgs}`);
20 | };
--------------------------------------------------------------------------------
/src/testEncrypt.ts:
--------------------------------------------------------------------------------
1 | import { execSync } from 'child_process';
2 | import path from 'path';
3 |
4 | import { Resolutions } from './convertSegmentToCustomResolution';
5 |
6 | const distPath = path.join(__dirname, '..', 'dist');
7 | const joinedVideoPath = path.join(distPath, '1920x1080.mp4');
8 |
9 |
10 |
11 |
12 |
13 | // union();
14 |
15 | generateEncryptedSegments();
16 |
17 | // const encrypt = async () => {
18 | // const keyFile = path.join(__dirname, '..', 'dist', 'enc.key');
19 |
20 | // const files = await fs.promises.readdir(path.join(__dirname, '..', 'dist', 'original'));
21 |
22 | // files.forEach(file => {
23 | // const inPath = path.join(__dirname, '..', 'dist', 'original', file);
24 | // const outPath = path.join(__dirname, '..', 'dist', 'encrypted', file);
25 |
26 | // execSync(`/usr/bin/openssl aes-128-cbc -e -in ${inPath} -out ${outPath} -nosalt -K ${encKey} -iv ${iv}`);
27 | // });
28 |
29 | // const objectPath = path.join(__dirname, '..', 'video.mkv');
30 | // const segmentPath = path.join(__dirname, '..', 'dist', 'encrypted2', 'chunk%05d.ts');
31 | // const playlistName = path.join(__dirname, '..', 'dist', 'encrypted2', 'playlist.m3u8');
32 |
33 | // const createSegmentsArgs = [
34 | // `-i ${objectPath}`,
35 | // // '-vcodec copy',
36 | // // '-acodec copy',
37 | // '-hls_time 4',
38 | // `-hls_key_info_file ${keyFile}`,
39 | // playlistName,
40 | // ].join(' ');
41 |
42 | // const createSegments = `/usr/local/bin/ffmpeg ${createSegmentsArgs}`;
43 |
44 | // execSync(createSegments);
45 |
46 | // execSync(`/usr/bin/openssl aes-128-cbc -e -in ${inPath} -out ${outPath} -nosalt -iv ${iv} -K ${encKey}`);
47 | // }
48 |
49 | // const decrypt = async () => {
50 | // const encryptedFilePath = path.join(__dirname, '..', 'dist', '1920x1080', 'chunk00000_enc.ts');
51 | // const descryptedFilePath = path.join(__dirname, '..', 'dist', 'decrypted.mp4');
52 |
53 | // // Encrypt segment
54 | // execSync(`/usr/local/bin/ffmpeg -i ${encryptedFilePath} -decryption_key ${encKey} ${descryptedFilePath}`);
55 | // }
56 |
57 | // encrypt();
58 |
59 | // decrypt();
--------------------------------------------------------------------------------
/src/transcode.ts:
--------------------------------------------------------------------------------
1 | import path from 'path';
2 | import fs from 'fs';
3 |
4 | import { getVideoInformation } from './getVideoInformation';
5 | import { createSegmentsFromOriginalVideo } from './createSegmentsFromOriginalVideo';
6 | import { convertSegmentToCustomResolution, Resolutions } from './convertSegmentToCustomResolution';
7 | import { createMasterPlaylist } from './createMasterPlaylist';
8 | import { mergeSegmentsIntoVideo } from './mergeSegmentsIntoVideo';
9 | import { generateEncryptedSegments } from './generateEncryptedSegments';
10 | import { generateEncryptionKey } from './generateEncryptionKey';
11 |
12 | const inputPath = path.join(__dirname, '..', 'video.mkv');
13 | const distPath = path.join(__dirname, '..', 'dist');
14 |
15 | const main = async () => {
16 | const info = await getVideoInformation(inputPath);
17 |
18 | const has1080Resolution = info.streams.some(stream => {
19 | return stream.width === 1920 && stream.height === 1080;
20 | });
21 |
22 | if (!has1080Resolution) {
23 | throw new Error('Incorrect video resolution, pease use 1920x1080.');
24 | }
25 |
26 | const numberOfChunks = await createSegmentsFromOriginalVideo(inputPath);
27 |
28 | const resolutions: Resolutions[] = [
29 | '1920x1080',
30 | '1280x720',
31 | '640x480'
32 | ];
33 |
34 | await fs.promises.mkdir(path.join(distPath, 'merged'));
35 |
36 | await Promise.all(resolutions.map(async (resolution) => {
37 | console.time(`${resolution}p`);
38 |
39 | const convertSegmentsPromises = [];
40 |
41 | const destinationPath = path.join(distPath, resolution);
42 |
43 | await fs.promises.mkdir(destinationPath);
44 |
45 | for (let i = 0; i < numberOfChunks; i++) {
46 | const convertSegmentPromise = convertSegmentToCustomResolution(
47 | `chunk${String(i).padStart(5, '0')}.ts`,
48 | resolution
49 | );
50 |
51 | convertSegmentsPromises.push(convertSegmentPromise)
52 | }
53 |
54 | await Promise.all(convertSegmentsPromises);
55 |
56 | await fs.promises.copyFile(
57 | path.join(distPath, 'original', 'playlist.m3u8'),
58 | path.join(destinationPath, 'playlist.m3u8')
59 | );
60 |
61 | await fs.promises.mkdir(path.join(distPath, 'encrypted', resolution), {
62 | recursive: true
63 | });
64 |
65 | await generateEncryptionKey(resolution);
66 |
67 | await mergeSegmentsIntoVideo(resolution);
68 |
69 | await generateEncryptedSegments(resolution);
70 |
71 | console.timeEnd(`${resolution}p`);
72 | }));
73 |
74 | await createMasterPlaylist();
75 | }
76 |
77 | main();
78 |
--------------------------------------------------------------------------------
/tmp/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/diego3g/node-ffmpeg-hls-encryption/534a4500ef6264dd263e6322710bde05fe39d399/tmp/.gitkeep
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | /* Visit https://aka.ms/tsconfig.json to read more about this file */
4 |
5 | /* Basic Options */
6 | // "incremental": true, /* Enable incremental compilation */
7 | "target": "es2017", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
8 | "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
9 | // "lib": [], /* Specify library files to be included in the compilation. */
10 | // "allowJs": true, /* Allow javascript files to be compiled. */
11 | // "checkJs": true, /* Report errors in .js files. */
12 | // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
13 | // "declaration": true, /* Generates corresponding '.d.ts' file. */
14 | // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */
15 | // "sourceMap": true, /* Generates corresponding '.map' file. */
16 | // "outFile": "./", /* Concatenate and emit output to single file. */
17 | // "outDir": "./", /* Redirect output structure to the directory. */
18 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
19 | // "composite": true, /* Enable project compilation */
20 | // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
21 | // "removeComments": true, /* Do not emit comments to output. */
22 | // "noEmit": true, /* Do not emit outputs. */
23 | // "importHelpers": true, /* Import emit helpers from 'tslib'. */
24 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
25 | // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
26 |
27 | /* Strict Type-Checking Options */
28 | "strict": true, /* Enable all strict type-checking options. */
29 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */
30 | // "strictNullChecks": true, /* Enable strict null checks. */
31 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */
32 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */
33 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */
34 | // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */
35 | // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
36 |
37 | /* Additional Checks */
38 | // "noUnusedLocals": true, /* Report errors on unused locals. */
39 | // "noUnusedParameters": true, /* Report errors on unused parameters. */
40 | // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
41 | // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
42 |
43 | /* Module Resolution Options */
44 | // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
45 | // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */
46 | // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
47 | // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
48 | // "typeRoots": [], /* List of folders to include type definitions from. */
49 | // "types": [], /* Type declaration files to be included in compilation. */
50 | // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
51 | "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
52 | // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
53 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
54 |
55 | /* Source Map Options */
56 | // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
57 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
58 | // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
59 | // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
60 |
61 | /* Experimental Options */
62 | // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
63 | // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
64 |
65 | /* Advanced Options */
66 | "skipLibCheck": true, /* Skip type checking of declaration files. */
67 | "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
68 | },
69 | "exclude": [
70 | "dist"
71 | ]
72 | }
73 |
--------------------------------------------------------------------------------
/yarn.lock:
--------------------------------------------------------------------------------
1 | # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2 | # yarn lockfile v1
3 |
4 |
5 | "@types/hls-parser@^0.5.1":
6 | version "0.5.1"
7 | resolved "https://registry.yarnpkg.com/@types/hls-parser/-/hls-parser-0.5.1.tgz#df235b25e5c6485e5a9fd817d723acd04354b57c"
8 | integrity sha512-zR/nrMMTwY2Wf+fmIK5rKWprMInpiWya4FdNGT+Pp7e2IkuGzKTLq/LDPqyMbrCI201FhKZcfd5vOpQ3T1qAfA==
9 | dependencies:
10 | "@types/node" "*"
11 |
12 | "@types/node@*":
13 | version "14.11.11"
14 | resolved "https://registry.yarnpkg.com/@types/node/-/node-14.11.11.tgz#359ea52236b5ccc04a71d4001c8467178a9d3699"
15 | integrity sha512-UcaAZrL8uO5GNS+NLxkYg1RiOMgdLxCXGqs+TTupltXN8rTvUEKTOpqCV3tlcAIZJXzcBQajzmjdrvuPvnuMUw==
16 |
17 | "@types/node@^14.11.8":
18 | version "14.11.8"
19 | resolved "https://registry.yarnpkg.com/@types/node/-/node-14.11.8.tgz#fe2012f2355e4ce08bca44aeb3abbb21cf88d33f"
20 | integrity sha512-KPcKqKm5UKDkaYPTuXSx8wEP7vE9GnuaXIZKijwRYcePpZFDVuy2a57LarFKiORbHOuTOOwYzxVxcUzsh2P2Pw==
21 |
22 | arg@^4.1.0:
23 | version "4.1.3"
24 | resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089"
25 | integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==
26 |
27 | buffer-from@^1.0.0:
28 | version "1.1.1"
29 | resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.1.tgz#32713bc028f75c02fdb710d7c7bcec1f2c6070ef"
30 | integrity sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==
31 |
32 | diff@^4.0.1:
33 | version "4.0.2"
34 | resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d"
35 | integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==
36 |
37 | hls-parser@^0.6.3:
38 | version "0.6.3"
39 | resolved "https://registry.yarnpkg.com/hls-parser/-/hls-parser-0.6.3.tgz#ae4307849e249ddf0e5a6478cf9f8adb3ce02156"
40 | integrity sha512-t6dupGNf/no850PY+vg6Cxt73byvptUXkr3MX69gVIjVPvGy2srqXYXmJOBPRznaoG2sJzmPsbp/ByKk4GLugQ==
41 |
42 | make-error@^1.1.1:
43 | version "1.3.6"
44 | resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2"
45 | integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==
46 |
47 | source-map-support@^0.5.17:
48 | version "0.5.19"
49 | resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61"
50 | integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==
51 | dependencies:
52 | buffer-from "^1.0.0"
53 | source-map "^0.6.0"
54 |
55 | source-map@^0.6.0:
56 | version "0.6.1"
57 | resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263"
58 | integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==
59 |
60 | ts-node@^9.0.0:
61 | version "9.0.0"
62 | resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-9.0.0.tgz#e7699d2a110cc8c0d3b831715e417688683460b3"
63 | integrity sha512-/TqB4SnererCDR/vb4S/QvSZvzQMJN8daAslg7MeaiHvD8rDZsSfXmNeNumyZZzMned72Xoq/isQljYSt8Ynfg==
64 | dependencies:
65 | arg "^4.1.0"
66 | diff "^4.0.1"
67 | make-error "^1.1.1"
68 | source-map-support "^0.5.17"
69 | yn "3.1.1"
70 |
71 | typescript@^4.0.3:
72 | version "4.0.3"
73 | resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.3.tgz#153bbd468ef07725c1df9c77e8b453f8d36abba5"
74 | integrity sha512-tEu6DGxGgRJPb/mVPIZ48e69xCn2yRmCgYmDugAVwmJ6o+0u1RI18eO7E7WBTLYLaEVVOhwQmcdhQHweux/WPg==
75 |
76 | yn@3.1.1:
77 | version "3.1.1"
78 | resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50"
79 | integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==
80 |
--------------------------------------------------------------------------------