Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

How to display video from two cameras on RK3288 Reload?

50

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
50

How to display video from two cameras on RK3288 Reload?

Posted at 9/13/2017 20:53:07      View:3788 | Replies:4        Print      Only Author   [Copy Link] 1#
Hi Sir,
It works normally when just only one camera opened like below.
Camera mcamera = Camera.open(0);
or
Camera mcamera = Camera.open(1);
both the stream video are also ok to display.
BUT I try open two cameras to preview at the same time in Android APP.
it always crashed and seems like framework issue. Please help me out,
Many thanks!
Log:
java.lang.RuntimeException: Fail to connect to camera service
at android.hardware.Camera.<init>(Camera.java:497)
at android.hardware.Camera.open(Camera.java:342)
at com.goer.dualcamera.MainActivity$2.surfaceCreated(MainActivity.java:76)
at android.view.SurfaceView.updateWindow(SurfaceView.java:633)
at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:197)
at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2086)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1161)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6198)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
at android.view.Choreographer.doCallbacks(Choreographer.java:580)
at android.view.Choreographer.doFrame(Choreographer.java:550)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5280)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:963)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)

Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 9/14/2017 09:45:00        Only Author  2#
two cameras? UVC?or mipi?
Reply

Use props Report

50

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
50
Posted at 9/14/2017 12:16:43        Only Author  3#
yes.
one mipi camera and one hdmiin camera.
Reply

Use props Report

1821

Credits

10

Prestige

17

Contribution

super moderator

Rank: 8Rank: 8

Credits
1821
Posted at 9/15/2017 09:22:16        Only Author  4#
we  have tested one UVC and one mipi ( or hdmiin),it works well.
but not one mipi and one hdmiin.
Reply

Use props Report

50

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
50
Posted at 9/15/2017 11:44:51        Only Author  5#
isle Posted at 9/15/2017 09:22
we  have tested one UVC and one mipi ( or hdmiin),it works well.
but not one mipi and one hdmiin.

hi isle,

could you tell me how to implement it with one UVC and hdmiin ? thank you very much.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list