Android Question CamEx2 IllegalArgumentException: CaptureRequest contains unconfigured Input/Output Surface!

Discussion in 'Android Questions' started by DonManfred, Nov 15, 2018.

  1. DonManfred

    DonManfred Expert Licensed User

    I´m getting a problem in using CamEx2.

    I can´t find the problem. Any hints?

    If it is Relevant: Device is Samsund Note 8, Android 8.0
     
    Last edited: Nov 15, 2018
  2. DonManfred

    DonManfred Expert Licensed User

    I found this Answer from @Erel
    I checked the PreviewSize.
    - The Default Size IS supported.
    - I tried to use other values (from the list of supported sizes). No change
     
    Last edited: Nov 15, 2018
    Erel and BillMeyer like this.
  3. DonManfred

    DonManfred Expert Licensed User

    Thank you for your Like, @Erel.

    Maybe it was not clear.

    I should have written
    But unfortunately no change. The Error still happen.

    Not solved as of now.
     
    Juan Diego Vega likes this.
  4. Erel

    Erel Administrator Staff Member Licensed User

    When exactly does the error happen? Are you in still mode?

    Do you see the preview frames?

    What happens if you change line 94 to:
    Code:
    Camera.StartSession(tv, PreviewSize, CaptureSize, 00False)
     
  5. DonManfred

    DonManfred Expert Licensed User

    in PrepareSurface resp. in Camera.StartSession

    Erm... I don´t know? What is "Still mode"?

    No.

    The same error

     
  6. Erel

    Erel Administrator Staff Member Licensed User

    Not video mode.
     
  7. DonManfred

    DonManfred Expert Licensed User

    No. As i am using this activity only for capturing Video. The VideoMode is set to true in activity_create.
     
  8. Erel

    Erel Administrator Staff Member Licensed User

  9. DonManfred

    DonManfred Expert Licensed User

    I ran the example without changes.

    After Permissionrequest i took a picture. This was successfully.

    Then i clicked on the button to change the mode. It then crashes with the same error.

    If it is relevant: i am using the Activity in my App in forced Landscape mode using
    Code:
    SetActivityAttribute(CaptureVideo, android:screenOrientation, "landscape")
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    Try the attached version (1.11). Test it with the CamEx2 example.
     

    Attached Files:

    Peter Simpson and DonManfred like this.
  11. DonManfred

    DonManfred Expert Licensed User

    Thank you!

    I did try it with the unchanged camex2 example.
    It does work on my Note 8. Picture and Video can be captured. No error happens.

    i´ll try it tomorrow in my app when i´m at work again. It is an App for the company and i do not have the source here at my home. So for now i could only test with the camex2. But i can confirm that v1.11 does work with it. I´ll report the result here tomorrow nut i expect it to work as in camex2,
     
    Last edited: Nov 15, 2018
    Peter Simpson and Erel like this.
  12. Erel

    Erel Administrator Staff Member Licensed User

    Great. Seems like this long time issue is solved.
     
  13. DonManfred

    DonManfred Expert Licensed User

    I´m at work now.
    As Expected, it does work in my app at work.

    I just updated the internal library, did a new Compile and the Video Record is working even in my App (not in CamEx Source).

    What was the problem then?
     
  14. DonManfred

    DonManfred Expert Licensed User

    Worth to publish the new Internal Library?
     
    Erel and Peter Simpson like this.
  15. Erel

    Erel Administrator Staff Member Licensed User

    Done.

    Camera2 library is based on Google examples. Apparently for the video capture to work on Samsung devices there is an extra step needed related to the way the surface is created.
     
    udg and DonManfred like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice