play mjpeg stream with gst-launch-1.0

Tim Müller tim at centricular.com
Tue Nov 24 02:11:53 PST 2015


On Tue, 2015-11-24 at 10:36 +0100, Jezequel, Erwan wrote:

Hi,

> I have an arecont AV2105 IP camera that is supposed to stream rtsp
> and mjpeg.
> 
> I have already raised an issue regarding gstreamer of rtsp support of
> this camera : https://bugzilla.gnome.org/show_bug.cgi?id=753884
> 
> As rtsp doesn't work, I am trying to play the mjpeg stream.
> 
> The only url I have found is http://IP/livevideo that shows the video
> in a web browser.
> 
> I haven't figured out how to play the video in gst-launch-1.0 with
> this url.
> 
> I attach a screenshot of the network tab of chrome's"developper
> tools" that shows what is done by the browser :

It looks like it's not actually an MJPEG stream (which would usually be
JPEG frames in a multipart wrapping), but the browser just re-loads the
image in regular intervals in this case.

I don't think we have an easy way to do this (just repeatedly load data
from the same url over and over again) via gst-launch at the moment,
but you should be able to do it if you write some code. There's also an
identifier that seems to change on each reload, you'd have to check if
that's needed or not.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com




More information about the gstreamer-devel mailing list