[vlc-devel] Possilbe to track the current position/time of the media being played?

Rémi Denis-Courmont remi at remlab.net
Mon Nov 14 21:36:03 CET 2011

Le lundi 14 novembre 2011 22:30:15 Peter Tap, vous avez écrit :
> While playing a media file, if the power goes off for some reason, I need
> to restart VLC somewhere around the position when the power went off.
> 1. Is there already any hook within vlc code to save current time or
> position? If not, which module should such functionality be added?

There is no definite answer to that question. It all depends on when you want 
to fetch and store the current time or current position.

> 2. Is there any command line option to start vlc from a specific time or
> position within a media file?

For most but not all inputs, this works:
# vlc INPUT :start-time=SECONDS

Rémi Denis-Courmont

More information about the vlc-devel mailing list