Page 1 of 1

Loop only a part of a video (or crossfade between 2 videos)

Posted: 08 Feb 2021, 11:03
by creal
Hello,

I have a video and I would like to play it and auto-engage a loop from the middle 'til the end. Is it possible, please? If so, how to do it?

If it is not possible, I may use a workaround (but it is not recommended for the work I'm currently in) : how to fade videos? Indeed, when a video is finished, it auto-trigger another video (located in the same patch) but I see a fraction of black screen so I may use a little rossfade between both videos.

Thanks,

creal.

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 08 Feb 2021, 19:05
by senso
hi,
Normally, a video starts to play when the patch is activated.
You can change the start position in the module or the GUI of the video player Then, on activation it will play in loop from the start position (if it has bee set to 0.5).

The best way to auto fade video is to use the grid and set fades on the grid objects.

If you don't want to use the grid, you'll have to patch the fades yourself with for example a ramp module, activated with the module on-activation.
senso++++

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 08 Feb 2021, 21:31
by creal
Thanks for your message.

"You can change the start position in the module or the GUI of the video player Then, on activation it will play in loop from the start position (if it has bee set to 0.5)."
=> but doing that, the video will only play the loop. I want the following behaviour : the video starts à 0, play until 0.5 then loop from 0.5 to 1 endlessly.

Okay for the fades, I can't use the grid for this project so I will do them manually, with a ramp module (on the dimmer I guess) as you suggest.

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 09 Feb 2021, 12:40
by SylvainT
Video Loop.pat
(40.32 KiB) Downloaded 502 times
Something like that ?

All the best

Sylvain

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 10 Feb 2021, 13:52
by grego mondo
Here with a fader to set the start of the loop (the pass flow was passing 0 as start point)
Video Loop in.pat
(38.53 KiB) Downloaded 563 times

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 10 Feb 2021, 22:15
by creal
Thanks Sylvain and Grego. It does the job. May I ask you to add an "out of loop" function to the patch, please? Not jumping at the end of the loop instantly but just letting the video plays from time t (locator in < t < locator out) to the end.

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 11 Feb 2021, 10:53
by grego mondo
Something like that ?

in the pop up you have a trigger that act like patch on activation.

Don't forget to walk in the snow if you can

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 11 Feb 2021, 14:44
by creal
Thanks Grego. Now I have a dilemma:
1) The player always starts at 0 as well as the loop
OR
2) After removing the right "pass" module, the video starts at the beginning of the loop (but I lose the beginning of the video, which I may want to keep)

In other words, the "video loop in 2" has a easy "exit loop" function but lose the possibility of "video loop in" to place the loop at the middle of the video (ie: 0 -> loop 0.2 to 0.8 -> 1).

EDIT : it was just visual. When hitting "space", the left locator does not reflect the actual value of the "loop in" fader but the loop works as expected. Everything works even if I don't understand well the role of your popup window :)

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 11 Feb 2021, 15:20
by grego mondo
Good.

Pop up window is there just to show extra controls or informations when you need it but is easly "hidebale"

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 11 Feb 2021, 20:06
by creal
Thanks.

It may sound a little bit silly but now I'm fighting with the patch just to have two buttons : play and stop. I don't want to be dependent to "patch activation". Usine engine has to be running without playing the video and when I want, I should be able to hit "play" and the video should play. Same thing with the stop button. If I want to stop the video without deactivating the patch, I should be able to hit a simple "stop" button. I have other video player patches, be it a whole loop or a one-shot and the two play/stop buttons work. Now it's a little more complicated with the patch you provide Grego. Could you please shed a light on this?

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 13 Feb 2021, 09:22
by grego mondo
OK
Here you have a "play" button (was named Restart in pop up window of version 2)
and a "end loop" button wich stop looping and play until end.

And a "Total stop" wich does it

In the pop window you have a switch to activate (or not) the automatic play when patch is activated

Enjoy

Re: Loop only a part of a video (or crossfade between 2 videos)

Posted: 13 Feb 2021, 20:59
by creal
Hello Grego,

I quickly tested the patch and everything seems to work perfectly. If I ever encounter a problem, I will post again, but now I think I have enough examples to slightly modify the patch without destroying it, if I need to.

Thank you very much Grego. And thanks again Sylvain for the initial patch :)

creal.