Created
June 21, 2020 13:53
-
-
Save shivasiddharth/ae0dbd9960eca68feedf6e09f544adc0 to your computer and use it in GitHub Desktop.
Sample commands to stream Pi webcam video to RTMP sink
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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