{"id":13402767,"url":"https://github.com/kyriesent/node-rtsp-stream","last_synced_at":"2025-03-14T08:31:07.781Z","repository":{"id":21406740,"uuid":"24724714","full_name":"kyriesent/node-rtsp-stream","owner":"kyriesent","description":"Stream any RTSP stream and output to websocket for consumption by jsmpeg (https://github.com/phoboslab/jsmpeg). HTML5 streaming video! Requires ffmpeg.","archived":false,"fork":false,"pushed_at":"2024-07-13T14:56:27.000Z","size":34,"stargazers_count":469,"open_issues_count":28,"forks_count":170,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-03-06T07:06:37.137Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kyriesent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-02T15:30:03.000Z","updated_at":"2025-02-25T07:01:45.000Z","dependencies_parsed_at":"2024-10-14T01:15:56.345Z","dependency_job_id":null,"html_url":"https://github.com/kyriesent/node-rtsp-stream","commit_stats":{"total_commits":37,"total_committers":6,"mean_commits":6.166666666666667,"dds":0.5675675675675675,"last_synced_commit":"a3894ed0203265968e6e770b3e792b68fbe8dc47"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyriesent%2Fnode-rtsp-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyriesent%2Fnode-rtsp-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyriesent%2Fnode-rtsp-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kyriesent%2Fnode-rtsp-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kyriesent","download_url":"https://codeload.github.com/kyriesent/node-rtsp-stream/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243363515,"owners_count":20278970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T19:01:20.579Z","updated_at":"2025-03-14T08:31:07.496Z","avatar_url":"https://github.com/kyriesent.png","language":"JavaScript","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\u003chtml\u003e\n\u003cbody\u003e\n\t\u003ccanvas id=\"canvas\"\u003e\u003c/canvas\u003e\n\u003c/body\u003e\n\n\u003cscript type=\"text/javascript\" src=\"jsmpeg.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\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\u003c/script\u003e\n\u003c/html\u003e\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","funding_links":[],"categories":["JavaScript","Video"],"sub_categories":["Docker Custom Builds"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyriesent%2Fnode-rtsp-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkyriesent%2Fnode-rtsp-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkyriesent%2Fnode-rtsp-stream/lists"}