FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Integration
(Moderators: fry, REAS)
   Accessing Pixels in QTJava
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Accessing Pixels in QTJava  (Read 479 times)
trip

triparepa WWW Email
Accessing Pixels in QTJava
« on: Oct 20th, 2004, 9:51am »

Hey all,
 
As a kind of learning project in Java, I've been trying to write a video class similar to BVideo, but with access to time control. However, for the life of me I can't figure out how to access the pixels of the movie, and someone here obviously knows, since it is in BVideo
 
If anyone could point me in the right direction I would greatly appreciate it. If I end up making something that works, I'll try to make it work with Processing as well.
 
thanks
 
c
 
fjen

WWW
Re: Accessing Pixels in QTJava
« Reply #1 on: Oct 20th, 2004, 7:28pm »

have you tries the examples? i guess you have, nevertheless:
 
http://developer.apple.com/samplecode/QuickTime/idxJava-date.html
http://developer.apple.com/quicktime/qtjava/qtjtutorial/
 
/F
 
fry


WWW
Re: Accessing Pixels in QTJava
« Reply #2 on: Oct 20th, 2004, 9:36pm »

i'm posting the code for the movie library (BVideo in 70+) you'll have to clear some things out (you needn't implement 'PLibrary' but the rest should be ok on its own. also notice that it extends PImage (formerly BImage), so that pixels[] etc are all available.
 
http://acg.media.mit.edu/people/fry/temp/Movie.java
 
here's to hoping that you come up with a better & fancier video library. in addition to time control, audio control is something we don't have a great way to deal with.
 
(note that this code is LGPL so you're not allowed to make changes and run off to use it without making the changes available to others.. basically just share & share alike..)
 
(edit: posted the wrong file at first.. was camera, now it's movie)
« Last Edit: Oct 20th, 2004, 9:46pm by fry »  
trip

triparepa WWW Email
Re: Accessing Pixels in QTJava
« Reply #3 on: Oct 24th, 2004, 1:18pm »

thought i had replied to this... oops.
 
thanks a lot fry, i'll try to make something happen with the code. and as far as adding to the movie playback, i'll try to add functions that jump frames instead of seconds... i think i have that part figured out, although the user set fps adds a kink to the equation. as far as audio goes, i'll need to research that. i'm not that experienced (yet!) with java and qtjava.
 
ok, thanks again. on to experimenting!
 
c
 
 
 
fjen

WWW
Re: Accessing Pixels in QTJava
« Reply #4 on: Oct 24th, 2004, 9:43pm »

hi trip, the lists.apple.com server just started showing up on google, so doing a search for: "site:lists.apple.com quicktime java your_searchterm" might help you a lot ...
 
http://www.google.com/search?q=site:lists.apple.com+quicktime+java+frame rate
 
and here's the list at:
http://lists.apple.com/archives/quicktime-java/
 
Pages: 1 

« Previous topic | Next topic »