{"_id":"@3ksy/node-rtsp-stream","name":"@3ksy/node-rtsp-stream","dist-tags":{"latest":"0.0.9"},"versions":{"0.0.9":{"name":"@3ksy/node-rtsp-stream","version":"0.0.9","description":"node-rtsp-stream ================","main":"index.js","scripts":{"prepublish":"npm run test","test":"mocha test/*.js"},"repository":{"type":"git","url":"git+https://github.com/kyriesent/node-rtsp-stream.git"},"author":{"name":"David Jsa","email":"david@jsa.me"},"license":"MIT","devDependencies":{"mocha":"^5.2.0"},"dependencies":{"ws":"^7.0.0"},"bugs":{"url":"https://github.com/kyriesent/node-rtsp-stream/issues"},"homepage":"https://github.com/kyriesent/node-rtsp-stream#readme","_id":"@3ksy/node-rtsp-stream@0.0.9","_nodeVersion":"16.15.1","_npmVersion":"8.12.2","dist":{"integrity":"sha512-fxb6OvF/LEPTcoS+EYKEMq1brcR+ZJVZJONFlO1tNCLAD0+zkV9O1xTDUPAkVWDBG389kkhzH8zm7TcruAbrlg==","shasum":"b14cf57f6ed9423e3003cb19322181072130fe8f","tarball":"https://registry.npmjs.org/@3ksy/node-rtsp-stream/-/node-rtsp-stream-0.0.9.tgz","fileCount":9,"unpackedSize":10583,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICytAQt2fECynVHxSu6IL/+n1oSmQR3Q25F5C+uBr95PAiBiOTFkAyP98/ubaWkjMKKw/BHRwRyOesxb6X5tOCTOHQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNBTQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpgqg//V+WvvvRBEmVm0scx7U2zVYOwtwi8NcdMA4Qcdi8vXBNo0r/e\r\nwGDRcV5OzFbseq5RK0QECE70PMb0qU7Lv6YCnxx9BtMwLCFA/5048Pznrp/Q\r\npG4ElXkFHchJmo/aTa7x7O0wmaTV9ZWavqQwhTdJ/w5HyA9JvReztD17o/0D\r\nj3wfQJw19VTXf4YN3wIMVYU68Nx6YOCplITG6xhkgFQeQM60S6s9ZkhNypf+\r\nF0I/AWulxkZ2NIwl6acdgWHr2NkJp3bWrsjTV/fSNGHIW0S3q3YSBKobAMto\r\nVW4TjpQP/1lJFHjRr6a7Yls/QPNYbKJ4Z2rCCFBekS+zYvB/fi8C2vEdfz1g\r\npZLinCLcYJOjZAxN2mcyN+7U6p4i0u1WMDoI0vuQuX7q8Eboe3b/aAqbo6d4\r\nZLY+CaRnyBmIQNJeItxi6RmAbkv7dbXu1vq4IGwjmp7tNZf4/FO4sL15Hf8j\r\nJG1i9eMXWGAdupOCpCsP49my008M5/ZCMC70vmntgkXMMhaqN4+a+V3F7pSP\r\n3053WTGt+TR6A5PTP4CTP9ivz3xGpVhK004lOMgNGXDx5HI6SpdNSgJn2s10\r\nLtXJbUjrgFDKMlifWE52I7cmgj/aFfHnQ4enRlhSD6c4enCzF/HG4+3NOS2B\r\nWzwxaRDxtb8hrPFKccBKzJBgg6Ft+f1IHZU=\r\n=Uk9z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"3ksy","email":"495230459@qq.com"},"directories":{},"maintainers":[{"name":"3ksy","email":"495230459@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-rtsp-stream_0.0.9_1664357584457_0.9839264902638096"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-28T09:33:04.401Z","0.0.9":"2022-09-28T09:33:04.611Z","modified":"2022-09-28T09:33:04.734Z"},"maintainers":[{"name":"3ksy","email":"495230459@qq.com"}],"description":"node-rtsp-stream ================","homepage":"https://github.com/kyriesent/node-rtsp-stream#readme","repository":{"type":"git","url":"git+https://github.com/kyriesent/node-rtsp-stream.git"},"author":{"name":"David Jsa","email":"david@jsa.me"},"bugs":{"url":"https://github.com/kyriesent/node-rtsp-stream/issues"},"license":"MIT","readme":"node-rtsp-stream\n================\n\nStream any RTSP stream and output to websocket for consumption by [jsmpeg](https://github.com/phoboslab/jsmpeg). HTML5 streaming video! (Requires ffmpeg)\n\nUsage:\n\n```\n$ npm install node-rtsp-stream\n```\n\nOn server:\n```\nStream = require('node-rtsp-stream')\nstream = new Stream({\n  name: 'name',\n  streamUrl: 'rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov',\n  wsPort: 9999,\n  ffmpegOptions: { // options ffmpeg flags\n    '-stats': '', // an option with no neccessary value uses a blank string\n    '-r': 30 // options with required values specify the value after the key\n  }\n})\n    \n```\n\nOn client:\n```\n<html>\n<body>\n\t<canvas id=\"canvas\"></canvas>\n</body>\n\n<script type=\"text/javascript\" src=\"jsmpeg.min.js\"></script>\n<script type=\"text/javascript\">\n\tplayer = new JSMpeg.Player('ws://localhost:9999', {\n\t  canvas: document.getElementById('canvas') // Canvas should be a canvas DOM element\n\t})\t\n</script>\n</html>\n```\n\nFor more information on how to use jsmpeg to stream video, visit https://github.com/phoboslab/jsmpeg\n\nPlease note that framerate from cameras must be greater than or equal to 15fps for mpeg1 encoding, otherwise ffmpeg errors will prevent video encoding to occur. If you have a camera with advanced configuration options, make sure it streams video at a recommended 25fps.\n","readmeFilename":"README.md"}