• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » OMAP™ Applications Processors » OMAP 4 Forum » OMX.TI.DUCATI1.VIDEO.CAMERA OMX_GetHandle crashes with ndk .so
Share
OMAP™ Applications Processors
  • Forums
Options
  • Subscribe via RSS

OMX.TI.DUCATI1.VIDEO.CAMERA OMX_GetHandle crashes with ndk .so

OMX.TI.DUCATI1.VIDEO.CAMERA OMX_GetHandle crashes with ndk .so

This question is answered
santosh kasula
Posted by santosh kasula
on Aug 09 2012 09:23 AM
Prodigy20 points

Hi,

I am using Blaze development board(4430) running gingerbread. I have created ndk built "cap_enc.so" which internal uses OMX.TI.DUCATI1.VIDEO.CAMERA and OMX.TI.DUCATI1.VIDEO.H264E.

When i load "cap_enc.so" as part my android app and do a jni API call to "cap_enc.so" which calls OMX_GetHandle on OMX.TI.DUCATI1.VIDEO.CAMERA it is crashing. I gave all the camera permissions in AndroidManifest.xml.(tried almost all permissions)

But when I did a ndk build of same code as executable and ran it from the adb shell as *root* it is able to capture and encode. But I dont want to root the device.

1) Is it possible to use the OMX components from ndk built .so which are running as part of android app?

2) What could be possible cause for the issue which I am facing.

3) if it is related to permissions, are there any permissions which can be given in the Manifest file

Crash dump

I/DEBUG   ( 1833):          #00  pc 00000000  
I/DEBUG   ( 1833):          #01  pc 00001988  /system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so
I/DEBUG   ( 1833):          #02  pc 00001e56  /system/lib/libOMX.TI.DUCATI1.VIDEO.CAMERA.so
I/DEBUG   ( 1833):          #03  pc 00002052  /system/lib/libOMX_Core.so
I/DEBUG   ( 1833):          #04  pc 0000dda2  /data/data/com.streamer/lib/libcap_enc.so.

When i tried with objectdump and trace it back it seems it has crashed in DCC_init.

Please suggest...

Regards,

Santosh

blaze android
Report Abuse
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Manuel Contreras
    Posted by Manuel Contreras
    on Aug 09 2012 12:23 PM
    Verified Answer
    Verified by santosh kasula
    Genius9025 points

    Answers;

    1) Yes, direct way is to use OpenMax AL from Android NDK, you can find information about it in documentation directory inside Android NDK.

    2) It is caused by system's security between layers and when accessing HW, you can find more information in next link in this forum

    http://e2e.ti.com/support/omap/f/849/p/178679/648158.aspx#648158

    3) When previous post I tried adding permission and creating a Platform Library that propagates the permission from .java to .cpp and it failed, I imagine that it is the Sandbox at kernel (link to information in previous post) has some permissions that are from the system, the way to use it is using OpenMax AL from Android NDK or adding your own service and registering as part of the system like mentioned in previous post.

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • steve seck
    Posted by steve seck
    on Aug 10 2012 13:15 PM
    Prodigy70 points

    Interesting, is it possible to get OMX interface apis (functions like GetHandle, setParam, getParam setState enum components etc) from
    OMXAL?

    Thanks

    Steve

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Manuel Contreras
    Posted by Manuel Contreras
    on Aug 10 2012 14:29 PM
    Genius9025 points

    I haven't gone that far to read OpenMax AL spec, I know Android NDK contains it and that using it is allowing direct access from applications .apk or native libraries .so.

    Please click the Verify Answer button on this post if it answers your question
    _______________________________________________________
    Be sure to read the OMAP4 and OMAP5 Forum Guidelines and FAQ
    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • santosh kasula
    Posted by santosh kasula
    on Aug 13 2012 11:30 AM
    Prodigy20 points

    Hi Manuel Contreras,

    Thanks for the reply...

    Open Max AL is more on the player side. Currently i think there is no support on the camera and recorder side.

    And my requirment is to get a camera h264 encoded stream which can be streamed over network.

    Regarding OpenMax AL, its a .so runs as part of the application .apk but able to access the OMX IL compenents which are not running as system. Any ideas....

     

    Regards

    Santosh

    Report Abuse
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use