Playlist Random Clips

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
geocentricdesign
New Cone
New Cone
Posts: 4
Joined: 29 Mar 2010 21:55

Playlist Random Clips

Postby geocentricdesign » 29 Mar 2010 22:55

I'm trying to find a script or get help writing a script that will play random parts of movies in 5 minute clips on rotation. I presently have the command line opening a playlist in full screen on startup. Can I do the random clips directly in the command line? Or so I need to extend VLC to do so? I can't find any good beginner documentation or examples of LUA so I don't know if it's even possible. Any help is greatly appreciated!

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Playlist Random Clips

Postby VLC_help » 30 Mar 2010 17:05

Can I do the random clips directly in the command line?
It should work if you add files to playlist and use random

geocentricdesign
New Cone
New Cone
Posts: 4
Joined: 29 Mar 2010 21:55

Re: Playlist Random Clips

Postby geocentricdesign » 30 Mar 2010 20:29

What I'm going for is the ability to set the start point to a random position in the timeline and play 5 minutes of video from there, then move on to the next file repeating the same behavior. It's kind of like creating a slideshow of movie clips. I don't want to show whole movies in the playlist, just random clips.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Playlist Random Clips

Postby VLC_help » 31 Mar 2010 17:46

You have to get the random time from somewhere, VLC cannot provide one. After that
--start-time=<float> Start time
The stream will start at this position (in seconds).
--stop-time=<float> Stop time
The stream will stop at this position (in seconds).
--run-time=<float> Run time
The stream will run this duration (in seconds).
those should do the trick.

geocentricdesign
New Cone
New Cone
Posts: 4
Joined: 29 Mar 2010 21:55

Re: Playlist Random Clips

Postby geocentricdesign » 02 Apr 2010 21:18

Very cool indeed. Thanks! I'm not sure how to get variables in the command line to make the start time random though. Any suggestions? Should I use LUA (and if so how do I learn LUA)?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Playlist Random Clips

Postby VLC_help » 04 Apr 2010 15:24

You can use some kind of .bat magic http://www.jameskoopmann.com/?p=16


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: blueice_haller and 23 guests