Results 1 to 2 of 2

Thread: How to get the pixel-data of a (MP4) video stream ?

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1

    How to get the pixel-data of a (MP4) video stream ?

    Hello,

    I work with (Linaro) Android 4.0.3 on an evaluation board called 'Pandaboard' and I'm able to use the OpenMAX AL through the Android NDK. I got an IP-Camera which streams a MP4-Videostream (no sound) over RTSP and the Video is displayed correctly when I use the standard Android/Java-Mediaplayer. What I want is to read the color-information of the pixels in the video-stream/frames. I couldn't find a way to do this on Java-level so I wanted to ask if there is a way to use OpenMAX AL to configure the Stream-URI as a DataSource and like a callback-funktion as a DataSink where I can access the pixel-data like an array of RGB-data or something ?

    I would appreciate any kind of help on this topic very much!
    Thanks, Andrew

  2. #2
    Junior Member
    Join Date
    Mar 2012
    Posts
    9

    Re: How to get the pixel-data of a (MP4) video stream ?

    If you set the sink to a surface texture rather than a surface, you should be able to read out the pixels using OpenGL ES. This will only work if the video content is not DRM-protected. For follow-up, please see groups.google.com/group/android-ndk

Similar Threads

  1. Positional data in pixel shader
    By mrflibble in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 3
    Last Post: 01-20-2013, 02:30 PM
  2. How to read Pixel data from the MultiSampled framebuffer ?
    By nitinsharma0608 in forum OpenGL ES 1.X - fixed function hardware
    Replies: 4
    Last Post: 01-06-2012, 08:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •