Skip to content

Instantly share code, notes, and snippets.

@OutOfBrain
Last active July 7, 2017 10:52
Show Gist options
  • Save OutOfBrain/2e94b45142cc0029d2af92c5fb9c9ea1 to your computer and use it in GitHub Desktop.
Save OutOfBrain/2e94b45142cc0029d2af92c5fb9c9ea1 to your computer and use it in GitHub Desktop.
start a stream on raspberry pi and have a script capturing it
# start a stream on raspberry pi
raspivid -o - -t 0 -hf -w 640 -h 360 -fps 25 | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/stream}' :demux=h264
# save raspberry pi camera stream
ffmpeg -i rtsp://@192.168.0.206:8554/stream -an -c:v libx264 output.mp4
# another version that seems to work - but very slow:
raspivid -o - -t 99999 | cvlc -vvv 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