Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm hosting a party, and I want to play random sequences from a collection of movies in the background. I don't want to sit and edit together five hours of footage by hand though. Ideally I would:

Play x minutes from a random point in one random movie, then play x minutes from a random point in another random movie, and so on. Any sensible scheme is fine though.

If you have any suggestions on where to start, either on Linux (preferable) or on Windows, I'd appreciate some ideas. I'm happy to script this in almost any language if needed.

share|improve this question

Make a script that adds your movies in a playlist and play it in VLC. You can add start- and stop-time like this:


The EXTINF-value is the movie length in seconds. VLC will add that for you if you save a playlist of all your movies.

Something like


in a bash-script should do it.

share|improve this answer
Thanks, I'll try this out – YXD Sep 30 '11 at 0:23

Under Windows 7 you could alternatively use this Python script:

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .