Comments (5)
Hi, well depends how do you use it. I suppose you are using not custom approach, so Annca does not provide any info in onActivityResult
, because it is quite easy to retrieve file extension or mime-type with standart tools i.e. File
(in case you really need it - I'll add, but not in nearest time, sorry). As for settings, sure you pass general setting both for photo and video actions. In case something does not work - can you send me please how do you set settings.
from annca.
from annca.
from annca.
Hi, well yes, it is thing to improve and I believe I mentioned it in README. I don't know, do you know , but device camera has predefined amount of supported sizes for preview, photo and video (and they are different on different devices). So in Annca was selected more simple approach for end using - MEDIA_QUALITY
. And it has few values: low, medium, high. Depends on video sizes this MEDIA_QUALITY
is evaluated. Algorithm is very simple just split the supported sizes on MEDIA_QUALITY
amounts. I.e. you have next supported values: 144x144, 256x372, 320x480, 480x640, 480x720, 720x1280, 1080x1920. So Annca will use 144 for low, 1080 for hight and 480 for medium. Beside this to start record we need provide additional setting such as audio and video bitrate, codec etc. This values are retrieved from CamcorderProfile
profiles and matched to the MEDIA_QUALITY
sizes (note that CamcorderProfile
may return profile which is not supported by camera, so it is search for best matching option), and then used all this values. That's why the difference between LOW and MEDUIM quality so big, 144 audio and video bitrates very low and for 480p quite big. Exceptional case is limitation by file size in this case audio and video bitrates are decreasing until video will fit file size or will be used the lowest possible values that camera supports.
from annca.
from annca.
Related Issues (20)
- Can't install: Error:(121, 13) Failed to resolve: io.github.memfis19:annca:0.3.7
- Orientation of photo is off
- How to detect if media is photo or video?
- Flash light in video
- Front Camera layout to set to full screen HOT 1
- Open camera capture preview ratio 1:1 HOT 2
- Change filename HOT 1
- AspectRatio HOT 1
- Add FullscreenTheme to readme
- onPhotoTaken not called on Camera2 HOT 1
- The audio play but the images do not move
- Setting Icon hide
- Flash not working by default settings FLASH_MODE_ON
- Image Location Enable ?
- flash is not working in camera1manager
- Android 4.4.4 - Can't disable shutter sound
- Video duration is only 2 seconds HOT 1
- Video is not recording in android 10+ HOT 2
- Get uri from captured photo (onActivityResult) HOT 1
- Change video codec
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from annca.