coral / simple-ffmpeg-encoder

A simple example of how to record from BlackMagic DeckLink with FFmpeg and stream a HLS preview to Video.JS & HLS.JS using Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simple-FFmpeg-encoder

Records video through BlackMagic Decklink devices using FFmpeg, serving fragments with Video.JS & HLS.js

This project uses your capture card to record video onto disk, acting as a MP4 recorder and also serving a live preview to your web browser with the output so you can preview the recording including audio from whatever machine in the same network. It's tested on Windows but should work on Unix if you compile FFmpeg with Decklink support. The Zeranoe FFmpeg builds for Windows support DeckLink.

To test this:

  • Make sure you have installed Node.js
  • Navigate your commandline to the root of the project and do "npm install"
  • Make sure you have FFmpeg installed (and know the path)
  • Edit index.js at line 5, fill in the absolute path to your FFmpeg binary
  • Run: ffmpeg -i test.avi -f decklink -list_devices 1 dummy
  • Use the output name and replace DeckLink Mini Monitor with your capture card, then run: ffmpeg -i test.avi -f decklink -list_formats 1 'DeckLink Mini Monitor'
  • Edit ffmpeg-command and change your card in the beginning to get the right settings
  • Start with node index.js
  • Navigate to http://127.0.0.1:3050 (or your host's IP if you're deploying remote)
  • Watch video, be happy

About

A simple example of how to record from BlackMagic DeckLink with FFmpeg and stream a HLS preview to Video.JS & HLS.JS using Node


Languages

Language:JavaScript 72.2%Language:HTML 26.5%Language:CSS 1.3%