[gst-devel] HTTP video source serves individual JPEG images
Arnout Vandecappelle
arnout at mind.be
Sat Jan 22 21:10:44 CET 2011
On Monday 03 January 2011 11:38:09, Guillermo Rodriguez Garcia wrote:
> I am trying to use gstreamer to stream video (sort of) from a HTTP source
> that serves individual JPEG images. This is not a MJPEG stream -- instead,
> a new HTTP request is required for each frame that is to be retrieved.
You'd need to modify souphttpsrc to support this. We wouldn't want to have
the souphttpsrc element reconnect by default after the video ends, of course,
so it should be indicated with a property.
Implementing this is unfortunately non-trivial, because of the multithread
behaviour of souphttpsrc. In the gst_soup_http_src_got_body_cb() and
gst_soup_http_src_finished_cb(), you need to re-send the message rather than
sending EOS. You can try to set src->read_position to 0 and src->retry to
TRUE, but I'm afraid it won't be that simple...
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 31BB CF53 8660 6F88 345D 54CC A836 5879 20D7 CF43
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110122/000826ca/attachment.htm>
More information about the gstreamer-devel
mailing list