Display duration of video asset

Post your awesome Wire patches here, share tutorials
Post Reply
EBMCreative
Posts: 105
Joined: Thu Dec 07, 2023 08:41

Display duration of video asset

Post by EBMCreative »

Hello.

I'm extremely new to wire.

I am making a patch that will let you select a different video file from a drop own menu. This will let me reduce about 35 layers in my composition.

Everything is working good so far. But I can't figure something out.

How do you display the duration of a video asset in wire to the clip window on resolume someplace?

Or how do you update the duration in the transport area to the current duration of the video asset that was selected.

Thank you.

Zoltán
Team Resolume
Posts: 7747
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: Display duration of video asset

Post by Zoltán »

Updating params from Wire patch to the host is not possible currently.
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

EBMCreative
Posts: 105
Joined: Thu Dec 07, 2023 08:41

Re: Display duration of video asset

Post by EBMCreative »

😢😢😢😢

I hope that is coming soon.

User avatar
subpixel
Posts: 163
Joined: Thu Jun 05, 2014 09:32
Location: Sydney, AU

Re: Display duration of video asset

Post by subpixel »

I tried sending the Video Player's Duration value to Resolume via OSC, using the OSC address for the clip duration. Original value not translated exactly, likely due to limit of precision of the normalised float.

--begin-wire-patch--
1696.3ocsX01TaiCD9uRF+4XGI4WEe5RSHcZmBzqvQ6LWXXjsURzUGKe1xA3X3+9sx1wwABgD5c7EbVuZ2U69rOZkezHRllxiTBYZgwI+4iFyxkKgGvTZeCYQjwM8MTxJAA8MDoYkJiadpeqdDTeiDd5b0hVMIHmcqIHVVp.4nNVEbSFKmsjq343ms.20KXa8Yww47hBP4aZbzE4w7biSdzXdtrLqP+D12i5gcsCH1dDsfnEhDXcofUfkEISRXYE7XiSlwRJ38MRgXv3DiqxYoEYxbkwS86XDOW+ivHW9sQ8FN9yqMgOlf8vddNGiI9xmFcZsQ.qjKkp55S0Nz3js1d5j1KjCQ7yj2FFZ4oxXvMPN9IHma.oelN3XkpERHSZTTFlItmmX.gHSwmKye.jxmMCvJfrX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neuuKTK5MTadvTyzSUYCmRLSWlVaDnsY83eeJ8LQRhnfCPXceH1Ivyyyxq8u.OjGUe9zgdFj9uc0W6hvVHL1i3iqZA81UWsimsksieyaOpN5ISF4a534OwLXL4Tyg3ICc8N0wyYXP2NZ62EYsYlTjp1eyELy6aoFjcqRs9XeWBkP8Bp1QYrxh2tsrFue.pAUJEfQOHMuSjFe.JVv4+b+69hLNOdO6bsJJY1g3Kf4qFxzpZnTlrQupIte6yGq5t680Jx02fCx4kjPP7e21am65PfWHlCCAp6n0CPZtjcuYr.lqtn9BY6mNpcI0J8FGRtVe.Ddrt.VxA5hpwQNB6Wq+AZ7hexu6Hrck5GnoUxiL22rfiv7GUduYAGj428zOtdV91dNXpmueMk2KYIgWXs8zQGESIkRFa5.SNYFPFOxDXKQisQim3Gb5u5Xsqg1uNQ.LwV.B0AhteZkmOm7tXd.7xdzvxssrue5o5Z2970VTNMLB6p++4s36tE94co6nKbqFsW1H0sWYW8BaC22EbdaD6FtyyXYuAko66mx7fmuSV8EDJLipma40UtZ1VQbysdecsd6KMh1b6BJF4fP1TT6rHtT33aGnyo8j6WaVDBchoi6oTygPWpIAeJhNx2E8gg9+5yhrcCw+y2sXWP9tWIX6RTaUXCRZXysgdczD3hRQ0mXCVQd02yRWBHAvXnvrm11ct5Nww1h.BQTreUMnuw+H0e1QX1RW3Zf.0nma.J.ibcqFaIo9ijpid8Wan9Fw0G4Wc4iZn7MO8z+B3Wsyv.
--end-wire-patch--
260210 Wire Video Player Length to Resolume 01 patch.png
Not shown: Video In > On Change > Write OSC : Write
260210 Wire Video Player Length to Resolume 02 received in Resolume, Duration set.png
The OSC message received by Resolume, address matches shortcut address for the (specific) clip's duration and converted back from the normalised float (range 0 to 1) back into seconds.

Original value: 20.033333 s
Resolume interpreted as: 20.03433 s
Discrepancy: approx 1 ms

The scaling factor is a week of seconds:
7 days x 24 hours/day x 60 minutes/hour x 60 seconds/minute = 604800 seconds

It seems to work, however the specific clip's OSC address must be supplied. It could be a parameter to your Wire source/effect/mixer. Not especially elegant, but functional.

Fatal flaw! I hadn't used the OSC Out node before. It worked in the Wire editor, but maybe it does not work from inside Resolume. eg what OSC output does it use? Can a plugin running in Resolume send OSC messages to Resolume?

-subpixel

Post Reply