Page 1 of 2

Improve Random Autopilot Algorithm

Posted: Sun Jan 02, 2022 13:30
by aaronrrc
The autopilot random mode doesn't works very well, I have 500 clips on a single layer and some clips repeats very often, sometimes every 2 or 3 clips. Also always are the same videos repeating, even when I select manually a clip, when the clip finishes, the random autopilot begins to play again almost the same videos. I use Avenue to play videos in my restaurant, so is very clear for me to see this issue along the day, I hope you can improve this, Thank you.

Re: Improve Random Autopilot Algorithm

Posted: Mon Jan 03, 2022 13:23
by Zoltán
Random means the clips get randomly selected.
It also means, it can happen that two clips are played back to back twice, or the same clip is launched again.

If you'd like no repetition, I'd recommend the play next clip option.
If you have lots of clips, ie, long playback till it repeats, a customer would probably not notice the repetition.

Re: Improve Random Autopilot Algorithm

Posted: Tue Jan 04, 2022 03:54
by aaronrrc
I know random is random, but as a software developer I found that some programming languages have a kind of "fixed random" algorithm, which in deed you get a random number, but if you always have the same source (in this case the same videos in the same layer in the same order), you will always get the same "random" numbers. So when that happened to me I remember that I had to make a more complex algorithm than just writing a line of code asking for a random number in a range (in this case the total of videos of the layer). Zoltán, do you think that maybe something like this could be happening?

Regarding to have Next Clip activated is not a good option for me, I know my customers maybe won´t notice the repetition, but my employees notice that, and they get boring watching and listening the same videos every day, Thanks for you reply Zoltán.

Re: Improve Random Autopilot Algorithm

Posted: Tue Jan 04, 2022 10:48
by Zoltán
500 videos at 3 minutes is 25 hours of playback.
Any random generator would produce playing a clip again in less than 25 hours.

You can play with the auto pilot direction, and picking a different first clip in the morning. I could imagine putting in some very short generator clips to just fire a random auto pilot action every x clips.

Re: Improve Random Autopilot Algorithm

Posted: Wed Jan 05, 2022 18:59
by Arvol
In the meantime, maybe play with this and a OSC loopback adapter?
@Zoltan, could you guys look at the Toggle Node on this? With each On Change that is passed into it, it sends a change, It's suppose to toggle on every other change is it not? otherwise it's acting exactly the same as an on change node would ;)

EDIT: Patch updated now

--begin-wire-patch--
1660.3oc6Xk0aaaDD9uBAerPjYuO7aTxT.FHItnw.sEI4gUjqjIBEopHUb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gG9Wuz0hyA
--end-wire-patch--

Re: Improve Random Autopilot Algorithm

Posted: Thu Jan 06, 2022 16:21
by Zoltán
Toggle will toggle it's input between true / false on every input trigger. You send a trigger, it toggles.
If you'd like to toggle on every second input, try this--begin-wire-patch--
627.3oc6U0zabBCD8uRjOCH+Adrm81pVEobqGxsndv.lcQkEGAlzFEw+8ZCaW1nzltpI4V4vBd7aFOy64Y1mHkttNaouw0MP1b2Sj5d2gvGLHg3F82O5IeMg3cQSxDRS2rkojUfxWBTmDCaUSLpOGbXGe+ncEJ9aiI9hXxoIjGLsQWmB15bU1P99DgIi+Z799lhQ+hsltAuoqbYg+w6sjMjtwCE1dxuBxF1zTBovM1UMiZusY2dOYiHbLeuoxuOf.CU1OBlDpLNCEbTKDnNWnB1ejrIkI4Y4BTfbpdwdHjkslgkjnJbpJEfJNHSyqrPZtMmlhJrHsfCLkAJL1bSLmr8CQpJjUwH3J+Vv2GZprNRjIac8g00gGvPoyllqP+wpMxSqUZfI1s67RsarsMD2Aq+ZS6f8xfdaTk9aHCP22TUYCY9cmb5rSJJTlCQ+u0saWqkDbfAuqBlluJXQwKHXLNKSPEZoTiRDAJtJYJVFWgbDzulZYAVcZNujlpAtIkVUZn4VVtDvyUK5GlZ8Lh8X+wJWt3xU2zMym52W9j8hF.oVmwjBtD4Jk3r6+.MSQQl.PfqQJvesFfBzjZT0PJx4UH.ZYMT9VYy0oLqEZgy0tVl0wKhOiOWIxapmIP7idBhlQyXbEkkGnLlLvS+Z.BKCoT.jbsfSEL9+mfbASP3z+UA63moK.VSs3qSvVt.cwhKilmG9a.dNJYgwK5ScGBHilKEJDDZXdi+r3d81sAwk+IcpleMKUPAFa6m2xAA7VEWaeeb+Ws8HgT65OXN+NvPfc61cFq7kvZ+lqHSmLcwcbGygSmxpnNGzYtt2N3F6WDvooeBzScZN
--end-wire-patch--

OnChange will send out the input's current value as event. Toggle is Bool.

Re: Improve Random Autopilot Algorithm

Posted: Thu Jan 06, 2022 18:06
by Arvol
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QLVizl.ibrHPSHoZgPwGKRdsd6aly+S2g2e7i3wqF2vg52bG9lw2pH6NOilYUB0ASYJLqcJ4+uK+ob4aGLJzvXqs4gG9Wuz0hyA
--end-wire-patch--

Re: Improve Random Autopilot Algorithm

Posted: Fri Jan 07, 2022 02:33
by aaronrrc
I will try your suggestions, because something its weird, the same clips keep playing in different order even when you select in the morning or every X hours a different clip, Thank you both

Re: Improve Random Autopilot Algorithm

Posted: Mon Mar 07, 2022 22:27
by aaronrrc
Hello everyone, forgive me if I insist on this subject, but definitely something is wrong with the random code, maybe is the programming language, I don't know, but while some videos never play, others repeat and repeat and very often. Avenue is a great software, but for me it lacks a very basic functionality: a good random algorithm, not only the random function of the programming language. It's a shame for me to change the usage of this software for a simple player like VLC, which doesn't have the awesome features of avenue, but it has a better random algorithm, I hope in newer versions, the team make an improvent on this subject, Cheers.

Re: Improve Random Autopilot Algorithm

Posted: Tue Mar 08, 2022 01:52
by Arvol
Did you try the wire patch I posted? That seems to be working great for me.