Skip to content

Instantly share code, notes, and snippets.

@V0rt
Created April 14, 2020 22:14
Show Gist options
  • Save V0rt/9dd68b58d1f2261dc784e722ef23aeb8 to your computer and use it in GitHub Desktop.
Save V0rt/9dd68b58d1f2261dc784e722ef23aeb8 to your computer and use it in GitHub Desktop.
gstreamer hints, tips and tricks

Play from Axis Cam

gst-launch-1.0 -v souphttpsrc location=http://192.168.0.90/mjpg/video.mjpg \
	! multipartdemux \
	! queue \
	! jpegdec \
	! videoconvert \
	! autovideosink sync=false

Stream from Axis Cam to fifo

gst-launch-1.0 -v souphttpsrc location=http://192.168.0.90/mjpg/video.mjpg \
	! queue \
	! filesink location=/tmp/out

Read FIFO and play

gst-launch-1.0 -v filesrc location=/tmp/in \
	! multipartdemux \
	! queue \
	! jpegdec \
	! videoconvert \
	! autovideosink sync=false

Play from web cam to a named pipe:

sudo gst-launch -e v4l2src device=/dev/video0 \
	! ffenc_mpeg4 \
	! filesink location=/dev/video_stream

Play with test video to a named pipe

sudo gst-launch -e videotestsrc \
	! video/x-raw-yuv, framerate=20/1, width=640, height=480 \
	! ffenc_mpeg4 \
	! filesink location=/dev/video_stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment