Instantly moved to a given point of time of movie during play ?

bugchk's icon

Hi
Sorry another noob question :D
I guess there is in max ability to instantly moved to a given point of time of movie file ? (in realtime, during play movie).
I mean, make something like glitch effect during play movie.
Ie, it could be a list of numbers (time points) to which must be moved playback marker, and this list is connected to movie.
In fact, a simple thing.
This is can be done simply ?

Christopher Dobrian's icon

Yes, quite simply. Send any of the following messages to jit.movie:
a) frame (or frame_true) and the frame number you want to go to
b) jump (or jump_true) and a number of frames to move some number of frames from where you are
c) time and the time you want to go to (in timescale units)
d) time_secs and the time you want to go to (in seconds)

You can do any of these with the movie running or stopped.
You can use the getfps and gettimescale messages to get the frames per second and the timescale units per second of the movie,
If you're not sending a continuous stream of bangs to jit.movie (from a qmetro, for example), you can use the seeknotify message coming out of the right outlet of jit.movie to notify when the desired point in the movie has been found, and use that to trigger a bang to jit.movie.

Max Patch
Copy patch and select New From Clipboard in Max.

Screen-Shot-2017-02-16-at-7.24.03-AM.png
png
bugchk's icon

Christopher thanks for reply !

bugchk's icon

Sorry, i copy this max patch, but in my max just black screen instead countdown video, what need to do else?

maxpat1.jpg
jpg
Christopher Dobrian's icon

"countdown.mov" is a video file included with Max, in the folder /Applications/Max/Contents/Resources/C74/media/jitter/

Seems like maybe Max is not finding that file on your machine. (Check the Max Console window for an error message.) You can open the video file with a 'read' message.

bugchk's icon

Christopher hmm no, max console does not show any error what strange (i attach screenshot). And i'm on Windows 7 (64bit), my max resources and countdown.mov installed by default here: \Program Files\Cycling '74\Max 7\resources\media\jitter
How to fix it.

maxpat1b.jpg
jpg
Christopher Dobrian's icon

Open the file "countdown.mov" with the 'read' message to jit.movie.

Christopher Dobrian's icon

Or any other video file that will demonstrate the effect (such as blading.mov).

bugchk's icon

Cristopher, two questions :

1) So, it is possible circumstance that max console does not shows error if does not find necessary video ? (it is normally ?)

2) How to properly open file to jit.movie ? :D Sorry, i tried via dragndrop (from available videos library from left side) but nothing happens.

Christopher Dobrian's icon

To open a movie in jit.movie:
— Use the 'read' message, as I wrote above, or
— Drag a movie file onto the jit.movie object (not onto the jit.pwindow object).
If neither of those is working for you, I can't guess why.

bugchk's icon

Sorry i don't know yet how to make it through Read message, but i make short gif video what i do with drangndrop: https://pixhost.org/show/1423/37349277_maxpat1.gif
Here can see that if i open one of factory jitter examples for video, it works and video are play. So, why your patch not work for me, just interesting.

Not get me wrong, (why instead of having to learn the basics, I'm trying to ask all this), just, i want to buy Max, but decided at first come up any simple example from head, and just see how it will work. Otherwise, if there are problems with a simple example, is it worth spending the time to learn all this?

Why is the video played for some people, for others not? (considering that all components of the program are in the default properly locations)

Why the program does not produce an error message in order to understand what is the problem? (if above patch really should work)

Christopher Dobrian's icon

In your animated gif, you drag-and-dropped the video onto jit.movie, but then you didn't do anything after that(!); you have to send a 'bang' message to the jit.movie object to cause it to output a matrix to the jit.pwindow. This is demonstrated and explained in the very first Jitter tutorial(!). Trust me, Max does work, but you do need to put in a little effort to learn it. Jumping around in a video is something that Jitter can do quite readily if you study the tutorials. (That particular task is demonstrated and explained in Jitter Tutorial 4.)

bugchk's icon

Hmm, well ok, Christopher, so - you can improve your patch in a such way , for that it can be opened and would be just worked, without additional modules\messages etc? For completely a damn newbie man. so I would just enable some cross (as in jitter example) or a click to some button, and it all started to work.