Skip to content

Instantly share code, notes, and snippets.

@toniher
Created January 11, 2015 20:33
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 toniher/46b12be82fb12c62d065 to your computer and use it in GitHub Desktop.
Save toniher/46b12be82fb12c62d065 to your computer and use it in GitHub Desktop.
rtmp-nginx.sh configuration file
#!/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