Skip to content

Instantly share code, notes, and snippets.

@yoganand
yoganand / webcam_gstreamer
Last active September 6, 2018 15:18
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"