I wrote one very similar to this, but instead of logging every played file, it only logs it when you press a hotkey (well, adds it to a playlist file). Basically, you load up a bunch of videos and then hit the hotkey for each one that's "interesting" for later editing and then end up with a playlist file of just those. To log for every file automatically, I think it would need to work as a meta script or playlist script (and possibly modified to work as one of those). Or maybe there is a libvlc function that would get triggered when vlc changes input.
I put it up here
https://github.com/drewkeller/vlc-playlist-creator. There's an option to download it as a zip on the lower right of that page.
You can add a new format easily enough by adding a pattern in the patterns section near the top of the file (example below for what it sounds like you'd want). To get the system date, a new meta item would need to be added in GetMediaInfo() ({system_datetime} below), I imagine lua has a function that gets a system time/date.
Code: Select all
["log"] = {
["header"] = "timestamp,name,title,length_seconds,length,time_seconds,time",
["format"] = "{system_time},{name},{title},{length_seconds},{length},{time_seconds},{time}",
},
The problem I'm having is VLC 2.1 doesn't seem to load the interface scripts, and interface scripts are the only type that accept hotkeys.