Live data from Hacker News

Matrix trailer dynamically uses current time

thechoiceisyours.whatisthematrix.com

171–180 of 198 posts

Re: Matrix trailer dynamically uses current time

#172

Earlier quoted context omitted.

Yeah, you’re totally right, and “red” can also be “blue” of course I didn’t go into that but I should have mentioned it. There are also multiple resolutions for the videos…! It’s truly 1440 videos times all of the options…! Have you have been able to decode what the b, e, g and h options mean?

Is there larger resolution than 1080p ?

Looks like there are just two resolutions - "high" 1080p, "low" 720p

h = ["high", "low"]

Re: Matrix trailer dynamically uses current time

#173

As many have figured out, these are pre-generated mp4 files. There's no 'magic' in the video files themselves (i.e. the video is not generated on the fly) In https://thechoiceisyours.whatisthematrix.com/_nuxt/commons/a... The client side generates an unobfuscated string such as: red-a-b1-c1435-d-e2-f-g3-h2-i where 1435 is the current local time (search for `key: "teaserSrcProps"` in the code to find the relevant func…

That was my first idea and when i found out the video url i was quite pleased to figure out the solution.

Then the "generated" folder made me think, and i decided to test it a bit more, so i started the experience at 15:00 and 35 seconds, just the right amount to get to the time reveal just after the clock change, and i was blown away, the video shows 15:01 and not 15:00 as i expected, whatever they are doing here to replace the video at the exact time without us noticing it is quite crazy.

Re: Matrix trailer dynamically uses current time

#174
post #173

As many have figured out, these are pre-generated mp4 files. There's no 'magic' in the video files themselves (i.e. the video is not generated on the fly) In https://thechoiceisyours.whatisthematrix.com/_nuxt/commons/a... The client side generates an unobfuscated string such as: red-a-b1-c1435-d-e2-f-g3-h2-i where 1435 is the current local time (search for `key: "teaserSrcProps"` in the code to find the relevant func…

That was my first idea and when i found out the video url i was quite pleased to figure out the solution. Then the "generated" folder made me think, and i decided to test it a bit more, so i started the experience at 15:00 and 35 seconds, just the right amount to get to the time reveal just after the clock change, and i was blown away, the video shows 15:01 and not 15:00 as i expected, whatever they are doing here to…

Ah yes, that makes sense. I do remember seeing in the code that they add … 23 seconds? I think to the current time. I imagine that the time is shown in the video at the 23 secs mark?

So yes you’re right, they do take that (minute changes while watching the video) into account!

Re: Matrix trailer dynamically uses current time

#175
post #170

Earlier quoted context omitted.

Yeah, you’re totally right, and “red” can also be “blue” of course I didn’t go into that but I should have mentioned it. There are also multiple resolutions for the videos…! It’s truly 1440 videos times all of the options…! Have you have been able to decode what the b, e, g and h options mean?

b, e, g, h are random number from 1 to 3 Math.floor(Math.random() * 3) + 1 edit: b, e, g, h are different segments included. So all unique segments are in these videos: blue-a-b1-c0000-d-e1-f-g1-h1-i 1f3dbdfd6a7c3d574b6b9eb8d07a3567.mp4 blue-a-b2-c0000-d-e2-f-g2-h2-i 241eb47071c89d8f18b0948763d6389a.mp4 blue-a-b3-c0000-d-e3-f-g3-h3-i 498ec3ba6719291e77b2a8870c744bdf.mp4 red-a-b1-c0000-d-e1-f-g1-h1-i ea2222b8b7a5c7239…

Oh, so you’re saying that there are only 3 unique video segments, but you might get a 1..3 random number for all b, e, g and h arguments…?

So 1440 per-minute videos * 2 pill colors (red/blue) * 3^4 segments (1..3 values for each b, e, g, h argument) * 2 video qualities (high/low)!

Re: Matrix trailer dynamically uses current time

#176
post #150

As many have figured out, these are pre-generated mp4 files. There's no 'magic' in the video files themselves (i.e. the video is not generated on the fly) In https://thechoiceisyours.whatisthematrix.com/_nuxt/commons/a... The client side generates an unobfuscated string such as: red-a-b1-c1435-d-e2-f-g3-h2-i where 1435 is the current local time (search for `key: "teaserSrcProps"` in the code to find the relevant func…

I'm disappointed, would've been cool if it was done on the fly

Their static file approach makes sense.

There's "only" 1440 combinations and the site is going to get a lot more views than that so why bother re-rendering everything dynamically?

Re: Matrix trailer dynamically uses current time

#177
post #170

Earlier quoted context omitted.

b, e, g, h are random number from 1 to 3 Math.floor(Math.random() * 3) + 1 edit: b, e, g, h are different segments included. So all unique segments are in these videos: blue-a-b1-c0000-d-e1-f-g1-h1-i 1f3dbdfd6a7c3d574b6b9eb8d07a3567.mp4 blue-a-b2-c0000-d-e2-f-g2-h2-i 241eb47071c89d8f18b0948763d6389a.mp4 blue-a-b3-c0000-d-e3-f-g3-h3-i 498ec3ba6719291e77b2a8870c744bdf.mp4 red-a-b1-c0000-d-e1-f-g1-h1-i ea2222b8b7a5c7239…

Oh, so you’re saying that there are only 3 unique video segments, but you might get a 1..3 random number for all b, e, g and h arguments…? So 1440 per-minute videos * 2 pill colors (red/blue) * 3^4 segments (1..3 values for each b, e, g, h argument) * 2 video qualities (high/low)!

3 different segments per key/argument, 4 keys/arguments, 2 colors = only 24 random segments inserted

Re: Matrix trailer dynamically uses current time

#178
post #177

Earlier quoted context omitted.

Oh, so you’re saying that there are only 3 unique video segments, but you might get a 1..3 random number for all b, e, g and h arguments…? So 1440 per-minute videos * 2 pill colors (red/blue) * 3^4 segments (1..3 values for each b, e, g, h argument) * 2 video qualities (high/low)!

3 different segments per key/argument, 4 keys/arguments, 2 colors = only 24 random segments inserted

Sorry do you mean that not all b, g, etc. argument values are possible?

So b1 g2 for example might be possible, but b2 g1 might not exist?

i.e. are values truly random / uniformly distributed?

Re: Matrix trailer dynamically uses current time

#179
post #173

As many have figured out, these are pre-generated mp4 files. There's no 'magic' in the video files themselves (i.e. the video is not generated on the fly) In https://thechoiceisyours.whatisthematrix.com/_nuxt/commons/a... The client side generates an unobfuscated string such as: red-a-b1-c1435-d-e2-f-g3-h2-i where 1435 is the current local time (search for `key: "teaserSrcProps"` in the code to find the relevant func…

That was my first idea and when i found out the video url i was quite pleased to figure out the solution. Then the "generated" folder made me think, and i decided to test it a bit more, so i started the experience at 15:00 and 35 seconds, just the right amount to get to the time reveal just after the clock change, and i was blown away, the video shows 15:01 and not 15:00 as i expected, whatever they are doing here to…

I doubt they’re replacing the video at any point, it’s all probably prerendered videos for each time.

For a user who’s clock changes midplay, you would simply check the time with seconds before choosing the video to render, if it’s MM:35 or after you would play the MM+1 video instead of MM

Re: Matrix trailer dynamically uses current time

#180
post #177

Earlier quoted context omitted.

3 different segments per key/argument, 4 keys/arguments, 2 colors = only 24 random segments inserted

Sorry do you mean that not all b, g, etc. argument values are possible? So b1 g2 for example might be possible, but b2 g1 might not exist? i.e. are values truly random / uniformly distributed?

any combination is possible but, e.g., all blue videos with g3 will have same g segment.
Post reply on HN