This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to encode 1440 monochrome video for Pico 2.

Hi,

has anybody written a utility to convert a video file to the correct format to use the 1440 fps mode. From what I have deduced from the technical doco, I'd need to render an animation at 1440 fps, 640*480 , and then parse it with a utility of some sort, to extract the pixel value for each of the first 24 frames, and then use those values to construct a new 60hz 640*480 24 bit rgb color uncompressed video file with the 24 monochrome  subframes per frame encoded into each RGB pixel. I can't imagine there exists any software out there do to this already, but if somebody has done this allread, I'd be interested to know how it was done.

regards

 

Gavin

  • Gavin,

    Perhaps someone in the Pico Kit user community has already accomplished this. If so, I hope that they will offer some of their experience.

    Best regards,

    Pascal

  • I shouldn't think that something like that would be too hard to write in either Processing (http://processing.org) or ImageJ (http://rsbweb.nih.gov/ij/).

    Both are free, if you know any 'C' you're good, and they stand as Very Useful Tools in their own right(s).  Got any sample patterns you can share?

  • sj3n,

    Thanks for the references to Processing and ImageJ. I was not familiar with Processing. I will be taking a look at it.

    Best regards,

    Pascal

  • Yeah, thats a good idea.   I have looked briefly at processing before, tho am not the worlds most experienced programmer.

    The task does sound quite simple though, read in 24 frames of monochrome video, read each pixel in turn , then write out the appropriate RGB values to a screen buffer, and then render a new RGB frame using no video compression or else a lossless video compression. 

    I don't have any test patterns yet, but will start by creating a 1440 frame monochrome VGA animation and work from there.

    I have not bought a PICO 2 yet, so if I create a file that needs testing, I can sent it to you if you like, and you can use a 1 second camera exposure to verify if all the images are being projected.

    regards

     

    Gavin

  • Gavin,

    I would be interested in seeing the constructed animation. I can't promise an official evaluation, but I would like to see it.

    Best regards,

    Pascal

  • Hi,

    I spend the last week learning processing, and have just finished the 'Colorspace multiplexer' program,  and am keen to know if it works or not. I have created a single output RGB 640*480 Tif file which represents 24 sub frames of animation.

    heres the image.

     1200.outputframe.tif

     

     The single image , when displayed in 1440 fps mode , should if my calculations are correct cycle through 24 subframes showing a small square moving in a clockwise arc from right to left.   To test that it is working, may I sugget one of 2 things. Firstly, in a dark room, play the image full screen at 640*480 , and then get a white piece of card and wave it rappidly back and forth in front of the projector, and you should get an arc of 24 small squares in a 3d curve, as they are each displayed sequentially and 1/1440 of a second appart.

     

    The other test, would be to use an SLR camera or other camera with speed setting and try taking some timed exposures at the the following speeds.

     

    1/1000th  - the result shoud show 1 bright square and another half as bright.

    1/125th of a second - result should show 11 bright squares and 1 half as bright.

    anyway, can you please let me know if it works.

     

    Many thanks.

     

    Gav

     

     

  • Gavin,

    You have been busy!

    I will not get a chance to look further at this until sometime next week. I can't promise. Maybe someone else on the forum will pick it up and try it.

    There is a problem, though. First, you have created a single frame. In order to stream this to the Pico Kit v2, it must be in the form of a video signal - 60 fps. The single frame will have to be made into a movie (MOV or AVI) file. Then it will have to be played in a video player, and sent to the Pico over HDMI.

    Also, in the 1440 Hz 1 bit mode, the Pico Kit must be in the cropped mode, which will display only the top left 320x240 pixels.

    Best regards,

    Pascal

     

  • Hi Pascal,

    I posted another query entitled '

    Help required to test my 1440 fps animations on a Pico 2.0 please ,  asking if anybody would mind testing an animation , but so , far there are no takers. I attached a MOV file to the question , which is 10 seconds long and 640*480. I understand the issue with the cropping. If you have a chance to test, it for me, I'd be very grateful.

     

    Thanks

     

    Gav

  • Gavin,

    I tried it. It works! I see exactly what you described - a small box which spirals into the screen 10 times in a row - each 1 second in duration. Running at 1440 fps monochrome.

    I would be interested in seeing the "more exciting" movie.

    Best regards,

    Pascal

  • Hi Pascal,

    Thanks ! thats great news! The processing language turns out to be indeal for this type of thing.

     

    I've attached the other movie, its only 5 seconds, as I keep running out of java memory trying to process more than that.

    Can you confirm with the previous test, the projector was  projecting 1440 unique frames each second, so there was no ghosting ? I understand it probably very hard to tell without taking a photo on a hi shutter speed.

    What email address can i send the movie too, as its too large to attach here.

    many thanks

    Gav

  • Heres the test file. (note that it does not use a uncompressed codec, but the BEST quality compression, so it will interesting to see if its interpreted ok

    If it does not work, I can email you the uncompressed one which is about 50 mb, or I may sent you a dropbox invite.

     

    .

  • Gavin,

    Would you mind posting a Dropbox public share link?

    I am out of the office today and won't be able to look at it right away. Sorry.

    Pascal

  • Gavin,

    Could you please cut'n'paste your *.PDE source code here?  I'm interested to see how you've done it (and the links aren't working in my browser).

    Plus, it could give some individuals a quick real-world intro to Processing (executing the source to create the full-res output).

    Thanks (and now I definitely have to get the I2C link working on my Arduino/Pico2s setup to see highspeed),

    Steve

  • Gavin -

    I just ripped the link out of the page's source and saved it separately.  Um... wow?  THAT is something!  The .pde must be huge.

    Rather than post files in the forum, maybe could you put them in the 'files' section of your profile - it seem like there ought to be more space there and they'll be downloaded directly rather than as a linked movie(?).

  • Hey Pascal,

    Heres a link to my dropbox public folder in which you will find the uncompressed chopped file which I zipped up to save some space.

     

    http://dl.dropbox.com/u/29685994/chopper.zip

     

    Cheers

     

    Gav