Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video player glitch / playback problems when using ofxArtoolkitPlus #110

Open
kalwalt opened this issue Jan 9, 2013 · 14 comments
Open

video player glitch / playback problems when using ofxArtoolkitPlus #110

kalwalt opened this issue Jan 9, 2013 · 14 comments

Comments

@kalwalt
Copy link

kalwalt commented Jan 9, 2013

Istantanea - 09012013 - 23:06:46
i tested the ofxArtoolKitPlus addon https://github.com/fishkingsin/ofxARtoolkitPlus when i set to video mode i get a video glitcy and segmented . The video is a .mov 640x480 pixel. i will post a screenshot of the video for reference. videoPlayerExample works fine for me instead, but res is 320x240. Does happens also on rpi?

@kalwalt
Copy link
Author

kalwalt commented Jan 9, 2013

this is what is displayed instead on a linux64 bit machine. on the left the .mov video and on the right the openCV grayThresolded video.
Schermata del 2013-01-09 23:12:46

@bakercp
Copy link
Member

bakercp commented Jan 9, 2013

If you play the same video in the normal ofVideoPlayer example do you get the same glitches? Could you post a link to the vid?

@bakercp
Copy link
Member

bakercp commented Jan 9, 2013

@bakercp
Copy link
Member

bakercp commented Jan 9, 2013

RPI segfaults on that video as it is using the standard videoPlayerExample. I re-exported it in QT on OSX using H.264 (which it already was supposedly) and it worked the first time. I think the gstplayer is a little picky ... b/c when I tried it again it segfaulted. Then it worked again. Very unpredictable.

@kalwalt
Copy link
Author

kalwalt commented Jan 9, 2013

this is from videoPlayerExample and the marker.mov
Screenshot from 2013-01-09 23:34:20
the issue not happens but stranges border . i have to try without the other code here. Strange the rpi issue, also strange the issue below with the video and OpenCV together...

@bakercp
Copy link
Member

bakercp commented Jan 9, 2013

@kalwalt well, in any case, you've created a lovely artwork with that last post :)

@kalwalt
Copy link
Author

kalwalt commented Jan 9, 2013

And ofxARToolKit addon example with 640x480 video grabbing instead works well (but not so many fps..)

@kalwalt well, in any case, you've created a lovely artwork with that last post :)

yes, NY MOMA is crazy for this!

tomorrow massive testing!

@arturoc
Copy link

arturoc commented Jan 10, 2013

the borders are because the hw accelerated plugin of gstreamer returns padded images and the gstreamre implementation in OF is not able to remove them yet. actually the hardware accelerated version is slower than the software one so if you remove those plugins you'll get the correct video and faster playback

@kalwalt
Copy link
Author

kalwalt commented Jan 10, 2013

thanks for the answer @arturoc , i forgot to mention that also the image ( the OF logo .jpg) it's not displayed when the app is in live mode probably for the reason explained in this issue :#42

and about the issue in the first screenshot?

@arturoc
Copy link

arturoc commented Jan 10, 2013

the first screenshot seems like it was returning rgb and being rendered as grayscale or rgba as rgb or something like that

@fishkingsin
Copy link

just tested RPi with arottlkitplus
works fine

http://vimeo.com/57516383
but funny thing is the cursor was transformed by AR matrix

@bakercp
Copy link
Member

bakercp commented Jan 17, 2013

@fishkingsin very cool. On RPi, the cursor is rendered as a part of the ofAppEGLWindow (it's just an embedded texture @arturoc made) and is subject to the global model/view matrices. So, when you applyProjectionMatrix() and applyModelMatrix() the cursor is subject to those transformations as well. If you want to make sure the cursor is undistorted, make sure you save a reference to the standard model / view matrix and restore them at the end of your draw / render loop (the cursor is then rendered between draw loops).

I'm currently looking at ways to put the cursor in it's own EGL window that is not subject to the transforms. Others have done this in the RPi world. I just need to get a free minute :)

Also, there's no reason currently to use X11 (via startx) to run your programs. It's not needed on the RPi because we are using a custom non-x11 window system (we create our own bare-metal window). By not using X, you can save a little ram.

@danzeeeman
Copy link
Member

@kalwalt is this still an issue?

@kalwalt
Copy link
Author

kalwalt commented Apr 6, 2013

@danthemellowman i should test it again. I haven't looked again. i will check whan i have a bit of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants