Skip to content

Instantly share code, notes, and snippets.

@shivasiddharth
Created June 21, 2020 13:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shivasiddharth/ae0dbd9960eca68feedf6e09f544adc0 to your computer and use it in GitHub Desktop.
Save shivasiddharth/ae0dbd9960eca68feedf6e09f544adc0 to your computer and use it in GitHub Desktop.
Sample commands to stream Pi webcam video to RTMP sink
# Command for streaming USB Webcam to RTMP sink without audio
/usr/bin/ffmpeg -y -f v4l2 -video_size 640x480 -framerate 25 -i /dev/video0 -vcodec h264_omx -f flv rtmp://localhost/show/stream
# Command for streaming USB Webcam to RTMP sink with audio
/usr/bin/ffmpeg -y -f v4l2 -video_size 640x480 -framerate 25 -i /dev/video0 -vcodec h264_omx -c:a aac -b:a 160k -ar 44100 -f flv rtmp://localhost/show/stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment