This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

resize video to multiple resolutions on OMAP3/OMAP4

Hi,

I'm looking for a way to resize 1280*720 source to several resolutions of D1(720x480), or CIF or QCIF format means at any point of time i will have access to 3 different

video streams and all are in encoded format.

Suggest me how to implement this feature using OMAP3/OMAP4 with android Gingerbread.

 

  • If it is off-line after recording initial video, I can think next 2 options from Android source code layer:

    1. You could port Video Editor from Ice Cream Sandwich to Ginger Bread, there are libraries and application in frameworks directory.

    ./4AI.1.5/mydroid/frameworks/media/libvideoeditor

    ./4AI.1.5/mydroid/packages/apps/VideoEditor

    2. The other is more complex from Android source code, it requires to modify MediaPlayer object to use the output of one instance as input for a second one and encode it, in GB the output of Stagefright is send to the surface by an Observer and no output interface exist from MediaPlayer object. This modification must be needed anyway if you plan to create a .apk that uses required method at runtime by creating many instances of MediaPlayer sharing the input buffers.

  • Hi Manuel Contreras

     

    Thank you for your reply,

    Doing it offline is a costly process in terms of processor resources.

    can you explain if it live (maens while capturing data from camera) i need to generate multiple streams.

     

    Thanks in Advance

    KK

     

  • I thought about it time ago before ICS using Video Editor application or Android NDK's OpenMax AL.

    Like MediaRecord and MediaPlayer are fixed to Camera and Display respectively, in this case the modifications is to add an option to MediaPlayer to select the output and send it to a file instead to a surface.

    Thinking it in GB times it was one option to do, but now that Video Editor exist it contains libraries that must be possible to use for this purpose, and using Android NDK's OpenMax AL code is now easier and that modification must not be needed, and by using OpenMax AL it is a direct task and with all needed permissions.

    Yes, using Android NDK must be easier now, but I am haven't tested using a recent NDK(ICS) in GB, matter to run some tests.