Right after installing GStreamer it is possible to get MJPEG video from an IP camera. We'll use souphttpsrc element for getting MJPEG stream, jpegdec for decoding and glimagesink for display.
Example:
gst-launch souphttpsrc location=http://admin:1234@192.168.1.150/mjpg/video.mjpg timeout=5 ! jpegdec ! glimagesink force-aspect-ratio=true

Although it is theoretically possible to use autovideosink for auto-selection of video sink, but it doesn't always work and when it does, it chooses dshowvideosink, which is pretty unstable.
0 komentarze:
Post a Comment