Unable to read big videos with processing 2.0.3
in
Core Library Questions
•
1 month ago
Mac OSX snow Leopard 10.6.8 - Processing 1.5.1, 2.0.3
Dear P5 team and fans!
i have a lot of questions about video and video package from processing:
1°) in the reference doc about movie class i cannot understand why, sometimes, the method " void movieEvent(Movie m) { m.read()} is present and sometimes is not present, depends of examples (jump, available, read, play....) - Furthermore i have tried with it and without it and the result seems to be the same...What is for example the difference between this method and someting like ::
void draw(){
if (video.available(){
video.read();}
} ???
2°) Trying to read .mov videos in 1.5.1 i have often the OutofBoundsArray exception and finally understood that this error happens when the width and height for the video is read like 0 (or1!!!) I have tried a lot of solutions:
- putting video = new Movie("monfilm.mov") at the very beginning of setUp(), and before "size(1024, 768,P2D)"
- putting in the same setup()
video.play();
video.jump(0);
video.pause();
and calling the play() method in draw()
::::: Results are better... Yet sometimes (with the same video & the same code) i got the ArrayException. How is it possible that it happens AFTER play() jump() and pause()???
3°) i am now working with big videos (.mov, PAL, 500MO); with 1.5.1 i got the ArrayException 1/10. So i decided to try with 2.0.3. The videos are the same. But they are loaded and read very very slowly...I had the same result with 1.5.1 when i used the GSvideo library with GStreamer....
4°) i have tried to export .app: it fails, memory error, probably because the videos are too big...
---- And using exactly the same videos but in director and lingo everything works perfectly, not any error and export as .app. Strange! --- But i cannot use director because in the same work i need the Capture class which is now impossible (the myron Xtra was never updated...)
If somebody can help i would be very happy
Dear P5 team and fans!
i have a lot of questions about video and video package from processing:
1°) in the reference doc about movie class i cannot understand why, sometimes, the method " void movieEvent(Movie m) { m.read()} is present and sometimes is not present, depends of examples (jump, available, read, play....) - Furthermore i have tried with it and without it and the result seems to be the same...What is for example the difference between this method and someting like ::
void draw(){
if (video.available(){
video.read();}
} ???
2°) Trying to read .mov videos in 1.5.1 i have often the OutofBoundsArray exception and finally understood that this error happens when the width and height for the video is read like 0 (or1!!!) I have tried a lot of solutions:
- putting video = new Movie("monfilm.mov") at the very beginning of setUp(), and before "size(1024, 768,P2D)"
- putting in the same setup()
video.play();
video.jump(0);
video.pause();
and calling the play() method in draw()
::::: Results are better... Yet sometimes (with the same video & the same code) i got the ArrayException. How is it possible that it happens AFTER play() jump() and pause()???
3°) i am now working with big videos (.mov, PAL, 500MO); with 1.5.1 i got the ArrayException 1/10. So i decided to try with 2.0.3. The videos are the same. But they are loaded and read very very slowly...I had the same result with 1.5.1 when i used the GSvideo library with GStreamer....
4°) i have tried to export .app: it fails, memory error, probably because the videos are too big...
---- And using exactly the same videos but in director and lingo everything works perfectly, not any error and export as .app. Strange! --- But i cannot use director because in the same work i need the Capture class which is now impossible (the myron Xtra was never updated...)
If somebody can help i would be very happy
1