Skip to content

Instantly share code, notes, and snippets.

@MetroWind
Created March 17, 2016 02:53
Show Gist options
  • Select an option

  • Save MetroWind/070f8e9b5e5004ced7be to your computer and use it in GitHub Desktop.

Select an option

Save MetroWind/070f8e9b5e5004ced7be to your computer and use it in GitHub Desktop.
Raspberry Pi video streaming
#!/usr/bin/env bash
Width=1296
Height=972
Fps=15
Bitrate=2000 # In Kb/s
BitrateRaw=$((${Bitrate} * 1024))
raspivid -t 0 -w ${Width} -h ${Height} -b ${BitrateRaw} -fps ${Fps} -ih -n -o - | \
cvlc stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment