I need to automate vlc player and need to get current timestamp for that. Is there any way to do that?

  • @duDE command line, creating text file, getting it from builtin http server, etc. Not API. – vasili111 Jan 14 '16 at 11:10
  • @duDE Any way that is usable for AutoHotkey. – vasili111 Jan 14 '16 at 11:13
  • AutoHotkey means you're using Windows, yes? – user1686 Jan 14 '16 at 11:43
  • 1
    @grawity Yes. I use windows 8.1 – vasili111 Jan 14 '16 at 12:10

Try this:

% vlc --sub-filter "marq{marquee=\$t (\$P%%),color=16776960}:marq{marquee=%H:%M:%S,position=6}" somevideo.avi
% vlc --sub-filter 'marq{marquee=$t ($P%%),color=16776960}:marq{marquee=%H:%M:%S,position=6}' somevideo.avi

This command line will show the stream's title ($t) and current position ($P) in the upper left corner and the current time in the upper right corner.

| improve this answer | |
  • This prints the current time of the day, and not the timestamp of the particular scene/frame. – Shailen Apr 22 '19 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.