Skip to content

video player glitch / playback problems when using ofxArtoolkitPlus #110

Open

Description

@kalwalt

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?

Activity

  1. kalwalt commented on Jan 9, 2013

    @kalwalt
    Author

    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

  2. bakercp commented on Jan 9, 2013

    @bakercp
    Member

    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?

  3. bakercp commented on Jan 9, 2013

    @bakercp
    Member

    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.

  4. kalwalt commented on Jan 9, 2013

    @kalwalt
    Author

    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...

  5. bakercp commented on Jan 9, 2013

    @bakercp
    Member

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

  6. kalwalt commented on Jan 9, 2013

    @kalwalt
    Author

    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!

  7. arturoc commented on Jan 10, 2013

    @arturoc

    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

  8. kalwalt commented on Jan 10, 2013

    @kalwalt
    Author

    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?

  9. arturoc commented on Jan 10, 2013

    @arturoc

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

  10. fishkingsin commented on Jan 17, 2013

    @fishkingsin

    just tested RPi with arottlkitplus
    works fine

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

  11. bakercp commented on Jan 17, 2013

    @bakercp
    Member

    @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.

  12. danzeeeman commented on Apr 6, 2013

    @danzeeeman

    @kalwalt is this still an issue?

  13. kalwalt commented on Apr 6, 2013

    @kalwalt
    Author

    @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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions