Converting VLC time into unix timestamp or boost::ptime
Posted: 24 Apr 2014 15:24
Hi all,
I am using libvlc for parsing audio streams using audio callbacks (libvlc_audio_play_cb in particular) and I would like to keep track of time for later use. When reading the doxygen, I see that current audio samples arrive together with a expected play time stamp (I believe for the first sample given by the callback) which its origin is arbitrary.
Is there any rule to convert VLC time domain (this expected play time stamp) to Unix time stamps ?
Best
I am using libvlc for parsing audio streams using audio callbacks (libvlc_audio_play_cb in particular) and I would like to keep track of time for later use. When reading the doxygen, I see that current audio samples arrive together with a expected play time stamp (I believe for the first sample given by the callback) which its origin is arbitrary.
Is there any rule to convert VLC time domain (this expected play time stamp) to Unix time stamps ?
Best