Created
January 11, 2015 20:33
-
-
Save toniher/46b12be82fb12c62d065 to your computer and use it in GitHub Desktop.
rtmp-nginx.sh configuration file
This file contains 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
#!/bin/bash | |
mkdir -p /tmp/hls | |
on_die () { | |
# kill all children | |
pkill -KILL -P $$ | |
} | |
trap 'on_die' TERM | |
gst-launch-1.0 rpicamsrc bitrate=250000 rotation=180 ! video/x-h264,width=640,height=360,framerate=15/1,profile=high ! h264parse ! flvmux ! rtmpsink location='rtmp://localhost/rtmp/live live=1' | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment