Seeking on a http/ssh/ftp stream

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Seeking on a http/ssh/ftp stream

Tiago Katcipis
I have a multimedia server that provides live playing of stored files, i receive a uri (that can be a SSH, FTP or HTTP), opens it, decode and send it back to the client.

Everything works fine, im using gnomevfs to open the uri, the problem starts when i start to seek through the stream, it seens that gnomevfssrc does not handle seeking. Im aware of the existence of a giosrc element too, but until now i just have tried to work with gnomevfssrc.

i already read something about that but it was old posts (saying that isnt possible), so i wanted to be sure, is giosrc ou gnomevfssrc capable of doing seeking on a http/ssh/ftp stream? I didnt find anything on the documentation and i cant be sure if its not working because im doing something wrong or if it wont work simply because it dont work.

best regards,
Katcipis

--
"it might be a profitable thing to learn Java, but it has no intellectual value whatsoever" Alexander Stepanov

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Seeking on a http/ssh/ftp stream

lrn-2
Tiago Katcipis wrote:

> I have a multimedia server that provides live playing of stored files, i
> receive a uri (that can be a SSH, FTP or HTTP), opens it, decode and send it
> back to the client.
>
> Everything works fine, im using gnomevfs to open the uri, the problem starts
> when i start to seek through the stream, it seens that gnomevfssrc does not
> handle seeking. Im aware of the existence of a giosrc element too, but until
> now i just have tried to work with gnomevfssrc.
>
> i already read something about that but it was old posts (saying that isnt
> possible), so i wanted to be sure, is giosrc ou gnomevfssrc capable of doing
> seeking on a http/ssh/ftp stream? I didnt find anything on the documentation
> and i cant be sure if its not working because im doing something wrong or if
> it wont work simply because it dont work.
>
> best regards,
> Katcipis
>  
Everything boils down to this little macro:
#define GST_GIO_STREAM_IS_SEEKABLE(stream) (G_IS_SEEKABLE (stream) &&
g_seekable_can_seek (G_SEEKABLE (stream)))

Which uses this little function:
http://library.gnome.org/devel/gio/stable/GSeekable.html#g-seekable-can-seek

Which checks G_IS_SEEKABLE() and returns can_seek property of the
G_SEEKABLE_GET_IFACE
So, if you want to know whether you can seek a particular GIOSTREAM or
not, get its sources and grep for "->can_seek".


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Seeking on a http/ssh/ftp stream

Sebastian Dröge-7
Am Donnerstag, den 30.07.2009, 06:10 +0400 schrieb LRN:

> Tiago Katcipis wrote:
> > I have a multimedia server that provides live playing of stored files, i
> > receive a uri (that can be a SSH, FTP or HTTP), opens it, decode and send it
> > back to the client.
> >
> > Everything works fine, im using gnomevfs to open the uri, the problem starts
> > when i start to seek through the stream, it seens that gnomevfssrc does not
> > handle seeking. Im aware of the existence of a giosrc element too, but until
> > now i just have tried to work with gnomevfssrc.
> >
> > i already read something about that but it was old posts (saying that isnt
> > possible), so i wanted to be sure, is giosrc ou gnomevfssrc capable of doing
> > seeking on a http/ssh/ftp stream? I didnt find anything on the documentation
> > and i cant be sure if its not working because im doing something wrong or if
> > it wont work simply because it dont work.
> >
> > best regards,
> > Katcipis
> >  
> Everything boils down to this little macro:
> #define GST_GIO_STREAM_IS_SEEKABLE(stream) (G_IS_SEEKABLE (stream) &&
> g_seekable_can_seek (G_SEEKABLE (stream)))
>
> Which uses this little function:
> http://library.gnome.org/devel/gio/stable/GSeekable.html#g-seekable-can-seek
>
> Which checks G_IS_SEEKABLE() and returns can_seek property of the
> G_SEEKABLE_GET_IFACE
> So, if you want to know whether you can seek a particular GIOSTREAM or
> not, get its sources and grep for "->can_seek".
That and note that giosrc isn't automatically used for HTTP because it
doesn't support icecast, etc. Better use souphttpsrc, which can seek if
the server supports it.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Seeking on a http/ssh/ftp stream

Tiago Katcipis
Thanks for the help guys, if i get it to work fine ill post here.

best regards,
katcipis

2009/7/30 Sebastian Dröge <[hidden email]>
Am Donnerstag, den 30.07.2009, 06:10 +0400 schrieb LRN:
> Tiago Katcipis wrote:
> > I have a multimedia server that provides live playing of stored files, i
> > receive a uri (that can be a SSH, FTP or HTTP), opens it, decode and send it
> > back to the client.
> >
> > Everything works fine, im using gnomevfs to open the uri, the problem starts
> > when i start to seek through the stream, it seens that gnomevfssrc does not
> > handle seeking. Im aware of the existence of a giosrc element too, but until
> > now i just have tried to work with gnomevfssrc.
> >
> > i already read something about that but it was old posts (saying that isnt
> > possible), so i wanted to be sure, is giosrc ou gnomevfssrc capable of doing
> > seeking on a http/ssh/ftp stream? I didnt find anything on the documentation
> > and i cant be sure if its not working because im doing something wrong or if
> > it wont work simply because it dont work.
> >
> > best regards,
> > Katcipis
> >
> Everything boils down to this little macro:
> #define GST_GIO_STREAM_IS_SEEKABLE(stream) (G_IS_SEEKABLE (stream) &&
> g_seekable_can_seek (G_SEEKABLE (stream)))
>
> Which uses this little function:
> http://library.gnome.org/devel/gio/stable/GSeekable.html#g-seekable-can-seek
>
> Which checks G_IS_SEEKABLE() and returns can_seek property of the
> G_SEEKABLE_GET_IFACE
> So, if you want to know whether you can seek a particular GIOSTREAM or
> not, get its sources and grep for "->can_seek".

That and note that giosrc isn't automatically used for HTTP because it
doesn't support icecast, etc. Better use souphttpsrc, which can seek if
the server supports it.



--
"it might be a profitable thing to learn Java, but it has no intellectual value whatsoever" Alexander Stepanov

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel