/node-video-demo

Demonstrates chunk streaming with HTML5 video, webm and nodejs.

Primary LanguageHTML

Demo to show transcoding and streaming to a HTML5 video element in chunks.

Depends on:
- ffmpeg (the official one compiled with all the goodies)
- https://github.com/acolwell/mse-tools - mse_webm_remuxer

Install instructions:

# Setup ffmpeg and golang
sudo add-apt-repository ppa:mc3man/trusty-media
sudo add-apt-repository ppa:ubuntu-lxc/lxd-stable
sudo apt-get update
sudo apt-get install nodejs npm ffmpeg libvpx1 golang
# Setup webm remuxer
mkdir $HOME/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
cd $GOPATH
go get github.com/acolwell/mse-tools/mse_webm_remuxer

# Add GO to .bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
echo 'export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc

git clone # Clone this repo.
cd # cd into it's directory.
mkdir videos # Copy videos to view to here
npm install
nodejs index.js