[gst-devel] Help on souphttpsrc

Arnout Vandecappelle arnout at mind.be
Thu Jun 18 08:32:21 CEST 2009


On Tuesday 16 June 2009 01:39:52 snvd1 wrote:
> I'm creating a video player that can stream video from the internet, and
> performs seeking on the stream. Somebody indicates souphttpsrc is the
> solution but it doesn't work for me, my code looks like the beloow, when I
> call  gst_element_seek_simple(pipeline, GST_FORMAT_TIME,
> GST_SEEK_FLAG_FLUSH, 5*GST_SECOND), it always fails, please please help.

 souphttpsrc only supports seeking in bytes, not in time, so unless there is 
some element in the pipeline (a demuxer, most likely) that knows how to 
convert the time to bytes, soup httpsrc won't help.  How is the stream muxed?

 Also, as Tim indicated, the server must support seeking.  A quick way to test 
this is to wget the URL and see if the size is reported before it starts 
downloading.  If it isn't, seeking almost certainly doesn't work.


>    g_object_set(src, "location", "http://", NULL);

 I do hope there is some real URL here, because this obviously won't work...

 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:  D206 D44B 5155 DF98 550D  3F2A 2213 88AA A1C7 C933




More information about the gstreamer-devel mailing list