{"_id":"@decipherindustries/flazhback-hls-tools","_rev":"5-52093e1d24f8c7bf3f3d84225278c4e5","name":"@decipherindustries/flazhback-hls-tools","description":"A set of tools to work with HLS streams","dist-tags":{"latest":"1.0.3"},"versions":{"0.1.1":{"name":"@decipherindustries/flazhback-hls-tools","version":"0.1.1","description":"A set of tools to work with HLS streams","main":"index.js","scripts":{"test":"clear; DEBUG=hls* node test.js","push":"npm publish --access public --scope @decipherindustries ."},"keywords":["hls","m3u8","ts","generate"],"author":{"name":"Fabian Tollenaar","email":"fabian@decipher.industries","url":"https://decipher.industries"},"license":"Apache-2.0","dependencies":{"debug":"^2.6.8","fs-extra":"^3.0.1","m3u8-reader":"^1.1.0","rimraf":"^2.6.1"},"gitHead":"a88f15f385c87bc0391ed1c40331d3d3b119ac20","_id":"@decipherindustries/flazhback-hls-tools@0.1.1","_shasum":"59ce42bd8840e40528617911786a502aee3c4566","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"decikettles","email":"iain@decipher.industries"},"dist":{"shasum":"59ce42bd8840e40528617911786a502aee3c4566","tarball":"https://registry.npmjs.org/@decipherindustries/flazhback-hls-tools/-/flazhback-hls-tools-0.1.1.tgz","integrity":"sha512-7YKnKH1nOq7tWdAXBL8JOV3bXzowUugycahUrDiiPXt/pABo9OH3EXI+sgstX6X5SuI9daSQH3SpwFCAmOaSDQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSPLjkUhhjqMXLhRdZu/SX92jnZUibZjPoYelPOAV3iAiBw7flnjz4tKJ0MWlv8tzi0+eFaS3YRkr1iCsU69cSVvw=="}]},"maintainers":[{"name":"decikettles","email":"iain@decipher.industries"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flazhback-hls-tools-0.1.1.tgz_1509012796636_0.999549348372966"},"directories":{}},"0.1.2":{"name":"@decipherindustries/flazhback-hls-tools","version":"0.1.2","description":"A set of tools to work with HLS streams","main":"index.js","scripts":{"test":"clear; DEBUG=hls* node test.js","push":"npm publish --access public --scope @decipherindustries ."},"keywords":["hls","m3u8","ts","generate"],"author":{"name":"Fabian Tollenaar","email":"fabian@decipher.industries","url":"https://decipher.industries"},"license":"Apache-2.0","dependencies":{"debug":"^2.6.8","fs-extra":"^3.0.1","m3u8-reader":"^1.1.0","rimraf":"^2.6.1"},"gitHead":"427835aa30b1f2d36d67be417a6d2394df1b4d62","_id":"@decipherindustries/flazhback-hls-tools@0.1.2","_shasum":"e3d9654a4e5ef2504ae6a8e91df0e7aed17fa464","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.3","_npmUser":{"name":"decikettles","email":"iain@decipher.industries"},"dist":{"shasum":"e3d9654a4e5ef2504ae6a8e91df0e7aed17fa464","tarball":"https://registry.npmjs.org/@decipherindustries/flazhback-hls-tools/-/flazhback-hls-tools-0.1.2.tgz","integrity":"sha512-z7rW9kqVXtPdKXehjR6PzsMToBiWNq026cZgGAq82LrH0S3Iv7DupnPPwe/QbyNzf99mBq0imZx2AahV0cxcyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/P0TxkXKGU+M9r7lgbKuFK7iyPS/oFG6aAPZBzOW+HwIhAIixJrqmYj5daMKFmiGnxG7U+qEbipMtw5uV/tgmsaBa"}]},"maintainers":[{"name":"decikettles","email":"iain@decipher.industries"},{"name":"fabdrol","email":"fabian@decipher.industries"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flazhback-hls-tools-0.1.2.tgz_1509017964373_0.8965174639597535"},"directories":{}},"1.0.3":{"name":"@decipherindustries/flazhback-hls-tools","version":"1.0.3","description":"A set of tools to work with HLS streams","main":"index.js","scripts":{"test":"clear; DEBUG=hls* node test.js","push":"npm publish --access public --scope @decipherindustries ."},"keywords":["hls","m3u8","ts","generate"],"author":{"name":"Fabian Tollenaar","email":"fabian@decipher.industries","url":"https://decipher.industries"},"license":"Apache-2.0","dependencies":{"debug":"^2.6.8","fs-extra":"^3.0.1","m3u8-reader":"^1.1.0","rimraf":"^2.6.1"},"gitHead":"dee8a2384f391122f1ac3f4d47f22cd4d25228e9","_id":"@decipherindustries/flazhback-hls-tools@1.0.3","_npmVersion":"6.4.1","_nodeVersion":"8.12.0","_npmUser":{"name":"fabdrol","email":"fabian@decipher.industries"},"dist":{"integrity":"sha512-ubhV2fvY/WJlAYeme2ZTB1m+HqjrSIvBxHC581zLsAqxif1uH9VOk4s+86V5n+77hQGXSzGo4rnwex3qrspbow==","shasum":"316b7f2a1bbecf271924c952da3ebf56e304bd2a","tarball":"https://registry.npmjs.org/@decipherindustries/flazhback-hls-tools/-/flazhback-hls-tools-1.0.3.tgz","fileCount":9,"unpackedSize":69704,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+TEKCRA9TVsSAnZWagAAPRQP/2eMriDgTsxetZvW9/PX\nJXViY1RF9FBeylONz7Zmv2yNwcE4zHc7mtfeYyNtoRz3YAxU+dWJFTQZdi+w\ncghizjj2i2caJ84GUz8+OZNDswa9YQCodpT2IvUDEIhEa1exF/5RAv3ti5VC\nSkthHQlUrZasD96olc7ZcUeRw/Ig2wSs1QqIErD0n0XZC8bTlyYQxz8EWDxZ\ncgAImKylbtFNBFbt/uaZt5+GAq7MJF52F9rhCauKEgHHCRBoX+10a5b0AU5D\nC2y0K1jFcCwNYzCt8qtBF96AliqcDlntSuUj+R04ClAFqTqvZBBLntrrFLLt\ntEISiCL1DYMZxM54qF6NgUPftrgPAo5wqFNTxxgbqoHHesy4v8uyHRnMZXBf\n3acYPSYfYEmTXrKclF5uKeceC7x3+hE5FF6My3VAC0M8o/eE8aLXTTW4nk7v\nDiu4F6kRRTxWmoRlEpQ62ujIBy71kpWcxDj9sGYQ2xET8FH/lNG6MiQ+Yqxn\nT7jUg/f1hB9aO3l3L+Nsx3+Z3l6rulfXuCrJQGDpLdBgcJsWeuWJC6t8ZsrH\nafqOOQbNLwoy4LCKXTqlAjz97SKJbsgoqrQUILB2CFkGN7twTE5mimkQk7FG\nJuiDyWHdNZ84yVUDl1tuR01nwp+DBYete+tUJ1q4UBvxO1U0zWMrL3uJpOer\nhS02\r\n=MdMv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkrLvI0uu7NxDHcDD2Jg+DimY161paUs2qM4JLypKo6gIgT8B/dZhoqD0gEJyYYp/Rf5qoHFCSdJ55BS3bl/Rvyww="}]},"maintainers":[{"name":"decikettles","email":"iain@decipher.industries"},{"name":"fabdrol","email":"fabian@decipher.industries"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/flazhback-hls-tools_1.0.3_1559834889239_0.1089314021442711"},"_hasShrinkwrap":false}},"readme":"# HLS-Tools\n\nVarious tools for working with HLS streams. At the moment it only supports generating a new HLS stream based on one or more existing HLS streams.\n\n\n### Installation\n\n```\n% npm install --save flazhback-hls-tools\n```\n\n\n### Usage\n\nThe example below creates a new HLS stream from two other streams - defined by the array in `clips`. `source` references the stream in the `sources` list. `start` and `end` indicate the time codes to select from the respective streams.\n\nThe code assumes that the `.ts` files in the source streams are named `index0.ts`, `index1.ts`, `...`, `indexN.ts` and the HLS index file is named `index.m3u8`.\n\n```\n'use strict'\n\nconst join = require('path').join\nconst HLSTools = require('flazhback-hls-tools')\nconst targetDir = join(__dirname, 'data/streams/stream_id')\n\nconst sources = [\n  join(__dirname, 'data/streams/stream_0'),\n  join(__dirname, 'data/streams/stream_1'),\n]\n\nconst clips = [\n  {\n    source: 0,\n    start: 100, // seconds\n    end: 400, // seconds\n    duration: 300, // seconds\n  },\n  {\n    source: 1,\n    start: 50, // seconds\n    end: 200, // seconds\n    duration: 150, // seconds\n  }\n]\n\nHLSTools\n.generateHlsFromPlaylist(sources, targetDir, clips)\n.then(createdHlsPath => {\n  console.log(createdHlsPath)\n})\n.catch(err => {\n  console.error(err.message)\n})\n```\n","maintainers":[{"name":"decikettles","email":"iain@decipher.industries"},{"name":"fabdrol","email":"fabian@decipher.industries"}],"time":{"modified":"2022-06-12T16:59:22.678Z","created":"2017-10-26T10:13:17.531Z","0.1.1":"2017-10-26T10:13:17.531Z","0.1.2":"2017-10-26T11:39:25.329Z","1.0.3":"2019-06-06T15:28:09.404Z"},"keywords":["hls","m3u8","ts","generate"],"author":{"name":"Fabian Tollenaar","email":"fabian@decipher.industries","url":"https://decipher.industries"},"license":"Apache-2.0","readmeFilename":"README.md"}