Skip to content

Instantly share code, notes, and snippets.

@phuocphn
Forked from yoganand/webcam_gstreamer
Created September 6, 2018 15:18
Show Gist options
  • Save phuocphn/4302d8e9dae390e9426f89d7e80f9d31 to your computer and use it in GitHub Desktop.
Save phuocphn/4302d8e9dae390e9426f89d7e80f9d31 to your computer and use it in GitHub Desktop.
Gstreamer Pipeline for webcam to rtmpserver
gst-launch-1.0 v4l2src ! "video/x-raw,width=640,height=480,framerate=15/1" ! \
x264enc bitrate=1000 ! video/x-h264,profile=high ! h264parse ! queue ! \
flvmux name=mux pulsesrc ! audioresample ! audio/x-raw,rate=48000 ! \
queue ! voaacenc bitrate=32000 ! queue ! mux. mux. ! rtmpsink location="rtmp://127.0.0.1/mytv/mystream live=1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment