Page 1 of 1

VLC to play random segments of random videos

Posted: 17 May 2015 10:04
by lovecraft22
Dear all,
I would like to play random segments of random videos that can be found within a certain folder. From what I could understand reading here and there, the main problems come from playing random segments. For this reason I'm writing a bash script in order to pass the videos I want to play to VLC.

Here's some questions:

1.

Code: Select all

VCL video1.avi --start-time 10 --stop-time 15 video2.avi --start-time 30 --stop-time 32
This doesn't do the trick since only the last start and stop time are applied to each videos. using :start-time doesn't work either. Is there any way to make --start-time and --stop-time item-specific?

2. Since I couldn't get the line at step 1 to work, I will probably re-launch VLC with each video file. This is not ideal since it takes time between a video and the following to re-start VLC. Besides, the final result is not continuos. Here comes another problem though: I cannot set VLC to fullscreen manually after the command in bash because, as I said, it will be restarted after each video. Now, using the -f flag results in the movie playing fullscreen with the shadow of the VLC playlist window on top of it… is there any workaround for this?

Thanks a lot

Re: VLC to play random segments of random videos

Posted: 17 May 2015 15:22
by mederi

Re: VLC to play random segments of random videos

Posted: 17 May 2015 16:21
by lovecraft22
Thanks.
This seems exactly what I needed.

On the other hand, I'd like to keep working on my script so if anyone could answer my questions that would be great!

Thanks again

Re: VLC to play random segments of random videos

Posted: 17 May 2015 18:15
by lovecraft22
Actually, it does NOT work. It plays the same segment from every movie and not a random part even if Random Position is checked.

Anybody managed to make it work the way I would like it to? If yes, could you please post the workflow?

Thanks