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.

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

1 Answer 1

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

#EXTM3U
#EXTINF:1000,movie-clip-1.avi
#EXTVLCOPT:start-time=100
#EXTVLCOPT:stop-time=110
movie-clip-1.avi
#EXTINF:500,movie-clip-1.avi
#EXTVLCOPT:start-time=440
#EXTVLCOPT:stop-time=450
movie-clip-2.avi

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

stop-time=$[RANDOM%$length+$x]
start-time=$stop-time-$x

in a bash-script should do it.

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

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.