souphttpsrc seek problem

padam skaromana at wp.pl
Tue May 15 00:15:20 PDT 2012


Hi.
I use souphttpsrc to streaming video from the Internet, but i can't handle
with seeking. I have read that demuxer should convert time to bytes, because
(reffering to 
http://comments.gmane.org/gmane.comp.video.gstreamer.devel/25842 THIS 
topic) "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".

my seeking
GstFormat fmt = GST_FORMAT_TIME;

	/*g_assert (gst_element_send_event (pipeline,
		gst_event_new_seek (1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_KEY_UNIT,
GST_SEEK_TYPE_SET,
		1000, GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE)));*/
	gst_element_seek (pipeline, 1.0, GST_FORMAT_TIME, GST_SEEK_FLAG_FLUSH,
		GST_SEEK_TYPE_SET, 30 * GST_SECOND,
                         GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE);

and my pipe
pipeline = gst_parse_launch("souphttpsrc
location=\"http://somewebsite.com/somefile.avi\" do-timestamp=true
is_live=true timeout=5 ! typefind ! avidemux name =\"d\" d. ! queue !
ffdec_msmpeg4v2 ! ffmpegcolorspace ! autovideosink d. ! queue ! mp3parse !
ffdec_mp3 ! wavenc ! wavparse ! audioconvert ! ffaudioresample ! scaletempo
! autoaudiosink", NULL);


I tried to change GST_FORMAT_TIME to GST_FORMAT_BYTES but it doesn't work.
How can i solve that problem? Thanks for any help.

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/souphttpsrc-seek-problem-tp4634029.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list