Puzzle 4 – Post 1

Today, I finished Jitter Tutorial learning and started to work on videos with Jitter. When going through the ARGB tutorial, I immediately thought of one of my favorite songs called ” Color Blind”. Therefore, I downloaded the video and started manipulating its color.

Progress

To start with, I used the following objects:

  • jit.qt.movie for reading the .mp4 file
  • jit.pwindow for displaying matrix sent by jit.qt.movie
  • metro object for generating bangs to drive the jit.pwindow to display

Since I want the video to be played at its original dimension and FPS, I did the following:

  • I send a “getmoviedim, getfps” message to the jit.qt.movie.
  • Then, I connected a route object after the jit.qt.movie to get the video dimension and FPS.
  • The output of moviedim is sent to a “size $1 $2”, which is then sent to the jit.pwindow to control the display window size.
  • The FPS number is fed to the metro object, so that the metro object generates bangs at the FPS rate.

Later, I found that the original 1280*720 dimension seemed too big. Therefore, I unpacked the moviedim, and added a times object (* 0.4) to scale the jit.pwindow by 0.4.

Since I may want to change the scaling factor later interactively, I added a float number object to control the times object argument.

Next Steps

  • Add another video to the patch, see how the two videos can integrate.
  • There are many black pixels in the “Color Blind” video. Maybe I can replace them with the second video’s pixels at the same positions.
  • Other objects to be added to my patch:
    • select
    • line
    • jit.matrix
    • jit.scalebias
    • jit.grab

Leave a Reply

Your email address will not be published. Required fields are marked *