Streaming your RaspberryPi Camera

To start streaming camera video, we simply combine raspivid and ffmpeg by piping one into another.

Prerequisites

  • raspivid
raspivid -t 0 -w 1280 -h 720 -fps 25 -g 75 -fl -o - | ffmpeg -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -i pipe:0 -c:v copy -c:a aac -strict experimental -f flv -f flv rtmp://ip:port/app/stream
  • -t 0: Continuously pull video from the camera

References

Originally published at blog.helveticode.com on July 13, 2016.

The Adventures of Me