Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to write an action file (e.g. a script) that plays some video files?
I need it to be programmable to automatically perform these actions:

  • start from a specific time
  • play up to a specific time
  • going to a specific time
  • changing playing speed
  • pausing
  • going to next video file

Can VLC or Mplayer do this? what's the easiest way of doing this?

share|improve this question
add comment

1 Answer 1

up vote 4 down vote accepted

I would use a playlist in VLC. It supports some special commands like start, stop and pause.
Like this example:

#EXTM3U
#EXTINF:,Video title 1
#EXTVLCOPT:start-time=0
#EXTVLCOPT:stop-time=25
Video_filename1.wmv
vlc://pause:10
#EXTINF:,Video title 1
#EXTVLCOPT:start-time=25
#EXTVLCOPT:stop-time=35
Video_filename1.mp3
#EXTINF:,Another movie
#EXTVLCOPT:start-time=35
#EXTVLCOPT:stop-time=120
Anothermovie.avi

Paste into a m3u-file and play with VLC.
This would play the first 25 secs of Video_filename1.wmv, pause for 10 secs, play 10 secs more and then jump to Anothermovie.avi at 35 secs into the move and the play 2 minutes.

share|improve this answer
    
Thanks,is it possible to pause until i resume by myself? –  4r1y4n Oct 27 '11 at 20:37
2  
Unfortunately no, I don't think so. You can still use the manual controls in VLC or start it with --play-and-stop to make VLC pause after each playlist item. –  micke Oct 27 '11 at 21:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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