[vlc] Re: How get the total time of stream without playing it??
Igor Andruszkiewicz
igor at tmm.pl
Thu Jun 12 13:42:40 CEST 2003
I have stupid idea for a such function.
VLC_Create
VLC_Init(0,"--noaudio --novideo /movie/movie.avi");
VLC_Play(0);
while (position.i_size <= 0)
input_Tell(...,&position);
VLC_Stop( 0 );
VLC_Destroy( 0 );
But here is a problem !!! The static variable !!!
static libvlc_t libvlc;
static vlc_t * p_static_vlc;
Igor
> There is no truly generic way to do this. Some streams vlc can play may even
> last indeffinitly. The best thing for you is probably to have a look at the
> input_OffsetToTime function.
>
> Sigmund
>
> On Thu, Jun 12, 2003 at 12:09:39PM +0200, Igor Andruszkiewicz wrote:
> > Hi
> >
> > How can I get the total time of stream without playing it ?? (I can
> > do it by input_Tell() but stream should be open). Has the VLC function
> > like VLC_GetTotalTime(int i_object, const char * file) ???
> >
> > Thanks for help:)
> >
> >
> > Igor
> >
> > --
> > This is the vlc mailing-list, see http://www.videolan.org/vlc/
> > To unsubscribe, please read http://www.videolan.org/support/lists.html
> > If you are in trouble, please contact <postmaster at videolan.org>
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vlc
mailing list