Skip to content

Instantly share code, notes, and snippets.

/stream.sh Secret

Created November 12, 2017 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/69c67e264fb29e2aee85fc47f993e160 to your computer and use it in GitHub Desktop.
Save anonymous/69c67e264fb29e2aee85fc47f993e160 to your computer and use it in GitHub Desktop.
#!/bin/bash
ffmpeg \
-f alsa -ac 2 -i hw:ALSA,0,0 \
-stream_loop -1 -fflags +genpts -i "loop.flv" -vcodec copy -b:v 2500k \
-acodec libmp3lame -ar 44100 -q:a 3 -b:a 128k -bufsize 1024 \
-f flv "rtsp://..."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment