Skip to content

Instantly share code, notes, and snippets.

@faisalthaheem
Last active April 11, 2022 22:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faisalthaheem/3f90811d94813cc555b08ba4d5013adf to your computer and use it in GitHub Desktop.
Save faisalthaheem/3f90811d94813cc555b08ba4d5013adf to your computer and use it in GitHub Desktop.
GST RTSP pipelines collection
#from rtsp server android app
'rtspsrc location=rtsp://192.168.1.193:5554/camera latency=0 ! rtph264depay ! avdec_h264 ! videorate max-rate=1 ! decodebin ! videoconvert ! video/x-raw, format=BGR ! queue max-size-buffers=10 ! jpegenc quality=25 ! jpegparse ! appsink name=sink'
#big buck bunny
'rtspsrc location=rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov latency=0 ! rtph264depay ! avdec_h264 ! videorate max-rate=15 ! decodebin ! queue max-size-buffers=10 ! jpegenc quality=25 ! jpegparse ! appsink name=sink'
# example of mjpeg stream from a typical axis camera or esp32
# souphttpsrc location=http://x.y.z.a:8090/mjpg/video.mjpg?timestamp=1564650227443 ! multipartdemux single-stream=true ! image/jpeg,width=320,height=240,framerate=3/1 ! appsink name=sink
#Example of an RTSP source
# rtspsrc location=rtsp://x.y.z.a:5554/camera latency=0 ! rtph264depay ! avdec_h264 ! videorate max-rate=1 ! decodebin ! videoconvert ! video/x-raw, format=BGR ! queue max-size-buffers=1 ! avenc_bmp ! appsink name=sink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment