Page 1 of 1

get problem when deal with increasing ts file[SOLVED]

Posted: 26 Mar 2012 13:23
by freesunshine
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?

Re: get problem when deal with increasing ts file

Posted: 26 Mar 2012 18:56
by nkoriyama
ATM, you can't.

Re: get problem when deal with increasing ts file

Posted: 27 Mar 2012 07:44
by freesunshine
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.