get problem when deal with increasing ts file[SOLVED]

This forum is about all development around libVLC.
freesunshine
Blank Cone
Blank Cone
Posts: 32
Joined: 18 Mar 2012 13:37

get problem when deal with increasing ts file[SOLVED]

Postby freesunshine » 26 Mar 2012 13:23

the VLC can play increasing (still recording) ts file,and can get the current length of the video,and also know how long time the player played.
but when i play a increasing ts file with libvlc, it works ,but can not provide current time in time-change event,it returns 0 both in libvlc_media_player_get_time() and libvlc_media_player_get_length(). is there anything i can do to get the current playing time and the total length?
Last edited by freesunshine on 27 Mar 2012 07:45, edited 1 time in total.

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: get problem when deal with increasing ts file

Postby nkoriyama » 26 Mar 2012 18:56

ATM, you can't.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

freesunshine
Blank Cone
Blank Cone
Posts: 32
Joined: 18 Mar 2012 13:37

Re: get problem when deal with increasing ts file

Postby freesunshine » 27 Mar 2012 07:44

the length of the video can be read from time-changed-event of the libvlc_media_player_t object which recording ;the current playing time can also be read if you open the file few seconds later;
now i open the increasing file by ffmpeg and can easily get the timestamp.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 34 guests