{"id":18460627,"url":"https://github.com/bourdakos1/node-red-contrib-ffmpeg","last_synced_at":"2025-04-08T06:31:57.467Z","repository":{"id":44493565,"uuid":"207646887","full_name":"bourdakos1/node-red-contrib-ffmpeg","owner":"bourdakos1","description":"📹 A simple ffmpeg wrapper for streaming video in Node-RED","archived":false,"fork":false,"pushed_at":"2022-02-10T12:02:10.000Z","size":1577,"stargazers_count":9,"open_issues_count":4,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-23T07:25:38.582Z","etag":null,"topics":["flow","node-red","raspberry-pi","tello-drone","video-stream"],"latest_commit_sha":null,"homepage":"https://flows.nodered.org/node/node-red-contrib-ffmpeg","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/bourdakos1.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}},"created_at":"2019-09-10T19:33:03.000Z","updated_at":"2024-12-19T09:56:11.000Z","dependencies_parsed_at":"2022-09-04T04:22:22.564Z","dependency_job_id":null,"html_url":"https://github.com/bourdakos1/node-red-contrib-ffmpeg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourdakos1%2Fnode-red-contrib-ffmpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourdakos1%2Fnode-red-contrib-ffmpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourdakos1%2Fnode-red-contrib-ffmpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bourdakos1%2Fnode-red-contrib-ffmpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bourdakos1","download_url":"https://codeload.github.com/bourdakos1/node-red-contrib-ffmpeg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247792055,"owners_count":20996876,"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":["flow","node-red","raspberry-pi","tello-drone","video-stream"],"created_at":"2024-11-06T08:27:28.257Z","updated_at":"2025-04-08T06:31:56.320Z","avatar_url":"https://github.com/bourdakos1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-red-contrib-ffmpeg\n[![NPM Version](https://img.shields.io/npm/v/node-red-contrib-ffmpeg.svg)](https://npmjs.org/package/node-red-contrib-ffmpeg)\n[![NPM Downloads](https://img.shields.io/npm/dm/node-red-contrib-ffmpeg.svg)](https://npmjs.org/package/node-red-contrib-ffmpeg)\n\nA simple ffmpeg wrapper for streaming video from a [DJI Tello Drone](https://www.ryzerobotics.com/tello) or a [Raspberry Pi](https://www.raspberrypi.org/).\n\n![](images/example.png)\n\n## Installation\n```\n$ npm install node-red-contrib-ffmpeg\n```\n\n\u003e **Note:** This node requires that you have [ffmpeg](https://ffmpeg.org/) installed on your machine.\n\n## Configure your node\nOpen the node's configuration panel to set `Device Type` and the `Stream URL`.\n![](images/configure.png)\n\u003e **Note:** In this example our stream will be accessible at `ws://\u003chost\u003e:\u003cport\u003e/stream`\n\n## Using the stream\nTo render the video stream in the browser, we use a library called [JSMpeg](https://github.com/phoboslab/jsmpeg).\n```html\n\u003chtml\u003e\n  \u003cbody\u003e\n    \u003c!-- import JSMpeg --\u003e\n    \u003cscript src=\"jsmpeg.min.js\"\u003e\u003c/script\u003e\n    \u003c!-- create a canvas tag to render our video stream --\u003e\n    \u003ccanvas id=\"video-canvas\"\u003e\u003c/canvas\u003e\n    \u003cscript\u003e\n      const videoCanvas = document.getElementById('video-canvas')\n      \n      // The stream URL that we set in the previous step.\n      const url = `ws://${window.location.hostname}:${window.location.port}/stream`\n\n      new JSMpeg.Player(url, { canvas: videoCanvas })\n    \u003c/script\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Device specific instructions\nThere are a few minor hardware specific steps depending on your device.\n\n### Tello Drone\nBefore you can use your Tello Drone you **MUST** activate it in the official Tello Drone app.\nOnce your drone is activated, you can connect to it's WiFi Network `TELLO-XXXXXX` and send it commands via UDP.\n\nIn the example flow, to start the video stream, click the `command` command followed by `streamon` command.\n\nCheck out this [blog post](https://dev.to/poojamakes/detecting-objects-with-a-tello-drone-38np) to get started\n\n### Raspberry Pi\nBefore you can stream with a Raspberry Pi, you will need to attach a camera and enable it.\n\nTo enable camera support, run the following command:\n```\nsudo raspi-config\n```\n\nThen use the arrow keys to choose _Interfacing Options_ \u003e _Camera_ and select to enable the camera. Once the camera is enabled, reboot your Raspberry Pi.\n\n\u003e **Note:** For the most up-to-date instructions for Raspberry Pi Camera setup, check out the [official documentation](https://www.raspberrypi.org/documentation/configuration/camera.md).\n\nThe Raspberry Pi will start streaming as soon as you start node red.\n\n## Authors\n- [Nicholas Bourdakos](https://github.com/bourdakos1)\n- [Pooja Mistry ](https://github.com/pmmistry)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourdakos1%2Fnode-red-contrib-ffmpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbourdakos1%2Fnode-red-contrib-ffmpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourdakos1%2Fnode-red-contrib-ffmpeg/lists"}