[gst-devel] Help on souphttpsrc
snvd1
lcai at yahoo-inc.com
Sat Jun 20 02:10:04 CEST 2009
I find that for the mp4 stream I use, qtdemux is selected. qtdemux doesn't
seek in push mode, but souphttpsrc is a pushsrc. Is there a solution for
this if I really want to do seeking on mp4 streams.
Thanks for your help,
snv
snvd1 wrote:
>
> Hi Arnout, thanks for help.
>
> I did change seeking by bytes, now the seeking is successful, but playing
> after that freezes. The URL is too long, so I did put in my original post,
> I tested it with wget as you adviced, len is reported, here is the URL:
>
> http://vp.video.google.com:80/videodownload?version=0&secureurl=pwAAALxRpszUgTK_K_xaZ04iy5twIwiMBWR6G-P45DX_bflgErWPVfqlFRpAIRXPH0_f_S-vjr5fsjelV_b5a60KGO9-J5oM9waHrXbIp9TGcWil_918u10kdE07KD02uypssqtNkGBYhLcEBNsiUOVTSQesba0hY6i9lc5MslYTZmYH-KQCUNwMPL-Atkb15uIOeyUgx6uFXC-CGZLBbGzc-v99UGEyk_rCk0JSgNwzOdmX&sigh=5MvtdS0Pg_tizyUqpTRfwhK0Smk&begin=0&len=219000&docid=-3666353226986284383&client=655722610335
>
> You and Tim both mentioned demuxer, I use decodebin, my pipeline looks
> like:
>
> souphttpsrc ! decodebin name=decoder decoder. ! queue ! audioconvert !
> audioresample ! osssink decoder. ! videoscale ! ffmpegcolorspace !
> xvimagesink
>
> Do you see any problem in this pipeline?
>
> Thanks so much for your help
> snv
>
>
>
> Arnout Vandecappelle wrote:
>>
>> 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
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Help-on-souphttpsrc-tp24042332p24120548.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list