Skip to content

Instantly share code, notes, and snippets.

@furryablack
Created January 14, 2022 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furryablack/7338028599f40e131aad257123e5e265 to your computer and use it in GitHub Desktop.
Save furryablack/7338028599f40e131aad257123e5e265 to your computer and use it in GitHub Desktop.
Smartphone streams video. Turn it into virtial device by gst.
modprobe -r v4l2loopback
modprobe v4l2loopback exclusive_caps=1
ls /dev/video*
gst-launch-1.0 souphttpsrc location="http://admin:admin@192.168.0.100:4201/videofeed" do-timestamp=true is-live=true ! multipartdemux ! jpegdec ! videoconvert ! v4l2sink device="/dev/video0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment