How to get an array or any collection of pixels from video in real time using opencv (Android)

view story

http://stackoverflow.com – Exacly as in the subject I would like to analyse video from android phone using opencv. How to get the access to the pixels(rgb or similar) while recording a video(there can be slight lag)? (HowTos)