Welcome to %s forums

BrainModular Users Forum

Login Register

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

I need help on a Patch
Post Reply
creal
Member
Posts: 96
Contact:

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

Unread post by creal » 08 Feb 2021, 11:03

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.

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 08 Feb 2021, 19:05

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++++

creal
Member
Posts: 96
Contact:

Unread post by creal » 08 Feb 2021, 21:31

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.

SylvainT
Site Admin
Posts: 494
Contact:

Unread post by SylvainT » 09 Feb 2021, 12:40

Video Loop.pat
(40.32 KiB) Downloaded 500 times
Something like that ?

All the best

Sylvain

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 10 Feb 2021, 13:52

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 562 times
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

creal
Member
Posts: 96
Contact:

Unread post by creal » 10 Feb 2021, 22:15

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.

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 11 Feb 2021, 10:53

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
Attachments
Video Loop in 2.pat
(57.55 KiB) Downloaded 288 times
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

creal
Member
Posts: 96
Contact:

Unread post by creal » 11 Feb 2021, 14:44

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 :)
Last edited by creal on 11 Feb 2021, 15:36, edited 1 time in total.

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 11 Feb 2021, 15:20

Good.

Pop up window is there just to show extra controls or informations when you need it but is easly "hidebale"
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

creal
Member
Posts: 96
Contact:

Unread post by creal » 11 Feb 2021, 20:06

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?

grego mondo
Member
Posts: 466
Location: 22110 Rostrenen
Contact:

Unread post by grego mondo » 13 Feb 2021, 09:22

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
Attachments
Video Loop in 3.pat
(48.23 KiB) Downloaded 291 times
En attendant cordialement l'apocalypse ... 100% Usine !!
https://lesformesdufond.kaz.bzh/grego-mondo/
PC i7 2.6Ghz - Win11 / RME Fireface UFX
Tubas / Serpent / Music Box
Interfaces Midi / OSC / DMX

creal
Member
Posts: 96
Contact:

Unread post by creal » 13 Feb 2021, 20:59

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests