Page 1 of 1

Clip time via OSC?

Posted: Sun Jan 06, 2019 11:12
by looperhacks
Is it possible to have the remaining time of a clip posted via OSC? I'd like to show our show hosts and other team members how long videos will run, so they can prepare for the end of a clip. Is it possible to send the remaining time of a clip (maybe as a text)?

Re: Clip time via OSC?

Posted: Sun Jan 06, 2019 21:35
by mygeneration
Yeah looperhacks,

It might help to know what is the destination application that will receive the OSC data?

Re: Clip time via OSC?

Posted: Tue Jan 08, 2019 21:17
by looperhacks
I'd probably write the software myself, so if there's another way to feed the clip time into external applications, that would be great, too!

Re: Clip time via OSC?

Posted: Tue Jan 08, 2019 22:14
by Zoltán
If you're writing the app yourself, you could calculate the remaining time based on the incoming Transport position message values, and their timing.
It's floats, so once it would get to 1 with a clip playing forwards, the clip would reach it's end.

Re: Clip time via OSC?

Posted: Wed Jan 09, 2019 21:25
by looperhacks
That's awesome, thank you! Is it possible to get the total time of a clip? I couldn't see anything like this in my OSC monitor.

Re: Clip time via OSC?

Posted: Thu Jan 10, 2019 09:22
by Zoltán
If you assume that clips play at nominal speed, or ask Resolume for the clip speed, you can calculate their approximate length also ;)

Re: Clip time via OSC?

Posted: Thu Jan 10, 2019 10:41
by Joris
You can also get the duration (or rather the values of the in and out points) of a clip by parsing the composition avc file