Skip to content
This repository was archived by the owner on Jun 19, 2020. It is now read-only.

GStreamer

Weijian Zeng edited this page Jan 14, 2020 · 1 revision

sample pipelines

input/source pipelines

usb device

v4l2src device=/dev/video0 

UDP

sender

from usb camera as source

v4l2src device=/dev/video0 | video/x-raw, width=320,height=240 ! videoconvert ! video/x-raw,format=I420 ! x264enc tune=zerolatency ! h264parse ! rtph264pay ! udpsink host="192.168.1.10" port="5000" sync=false

from python as frame writer

appsrc ! queue ! videoconvert ! video/x-raw ! x264enc tune=zerolatency ! h264parse ! rtph264pay ! udpsink host="192.168.1.10" port="5000" sync=false

receiver

./gst-launch-1.0 udpsrc port=5000 !  application/x-rtp, encoding-name=H264,payload=96 !  rtph264depay ! h264parse ! avdec_h264 !  autovideosink

RTSP

sender

v4l2src device=/dev/video0 ! video/x-raw, width=320,height=240 ! videoconvert ! video/x-raw,format=I420 ! queue max-size-buffers=1 name=q_enc ! x264enc tune=zerolatency ! rtph264pay name=pay0 pt=96

receiver

./gst-launch-1.0 rtspsrc location=rtsp://192.168.1.29:8554/test latency=50 ! decodebin ! autovideosink

Clone this wiki locally