Giter Site home page Giter Site logo

Comments (6)

saki4510t avatar saki4510t commented on August 14, 2024

Hi,
Thank you for providing feedback. As I tested on my devices, the sample projects works well and your log shows no problem. So could you provide more details?

If you modified something, could you try original one?
If you can see preview images until you touch record button, the issue may relate to MediaCodec.
Do you use old SAMSUNG devices like GALAXY S2/S3 etc.? Those devices have some issue on MediaCodec and will need to add some workaround.

If you un-filter logCat, you may be able to see additional log related to the issue.
saki

from uvccamera.

0x7962 avatar 0x7962 commented on August 14, 2024

thanks for reply, Exactly i test on 'samsung 4412', it seems to GALAXY S3. i will test on the other platform (samsung 6818 /4418 or rockchip ..)

from uvccamera.

0x7962 avatar 0x7962 commented on August 14, 2024

Hi,
i tested on samsung 6818 device is ok(test3/7),but the rockchip device can't display anything..

from uvccamera.

saki4510t avatar saki4510t commented on August 14, 2024

Hi,
Almost all devices which SOC/chipset is made by Rockchip, MediaTek and Allwinner have issues on their hardware/system software and app will freeze, crash, ANR, reboot... If you use those device I assume it will be better to give up to use UVC camera with those devices.
I had request them to fix the issues but there are no response.

I also have S3 and it's problem is different from others and related to MediaCodec. Some MediaCodec API is extremely slow(almost hung-up) on the device under some conditions...
Try to temporary increase thread priority to maximum while preparing MediaCodec.
Additionally, if you use Android 4.3 or prior, you need special handling when start MediaCodec because it never return MediaCodec.INFO_OUTPUT_FORMAT_CHANGED and use MediaCodec.BUFFER_FLAG_CODEC_CONFIG instead. And you need to extract PPS/SPS and contract MediaFormat instance and pass it to muxer by yourself.
saki

from uvccamera.

0x7962 avatar 0x7962 commented on August 14, 2024

Hi,saki
at first,thanks for your help so much!
i have a doubt, whether must use the 'MediaCodec' when i use two cameras? because, i preview the second camera just by TextureView there was an error

[1565_diag.c:88:uvc_perror]:failed start_streaming:I/O error (-1)

from uvccamera.

0x7962 avatar 0x7962 commented on August 14, 2024

i was wrong, I replaced the camera after is OK

from uvccamera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.