Page 1 of 1

VLC Extension: Remember last file position

Posted: 13 Feb 2013 22:32
by scientificswede
Hi all, I made a script that makes VLC remember the last play position on every file it plays. The only quirk is you have to activate it each time in the View menu.
http://scientificswede.blogspot.se/2012 ... h-lua.html

Re: VLC Extension: Remember last file position

Posted: 14 Feb 2013 16:27
by mederi
This script works for me on Windows XP, but I had to alter the script a bit to use a different path for "pos.txt" file.

Code: Select all

-- datafile=vlc.misc.userdatadir().."/pos.txt" datafile="D:/films/pos.txt"
There is a problem how VLC handles paths. UTF-8 path does not match ANSI Windos-1250 codepage of my Windows XP. There is one non-English character in the vlc.misc.userdatadir() path causing troubles. VLC should automatically convert all input/output stuff between UTF-8 and native codepage of OS.