-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
p: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
Hi, I'm using camera plugin to capture video. I changed multiple lines, but the problem exists in the sample as well. I'm using an Oneplus 2 (real device) and the quality of the saved video is way to bad.
I get 1MB for 10 seconds of video recording. The resolution is fine (1080x1440) but i think the bitrate is not high enough.
Is there a way to change it?
In the CameraPlugin there is this line:
mediaRecorder.setVideoEncodingBitRate(1024 * 1000);
Or am i the only person facing this problem?
Question 2: The recorded video has an aspect ratio of 0.75 ( according to the resolution 1080x1440 ).
Is there a way to make a portrait video (full height 16 / 9)).
Greetings Markus
[√] Flutter (Channel dev, v0.7.0, on Microsoft Windows [Version 10.0.17134.228], locale de-DE)
• Flutter version 0.7.0 at C:\src\flutter
• Framework revision 09fe34708f (2 days ago), 2018-08-22 10:20:51 -0700
• Engine revision 4b271b2e02
• Dart version 2.1.0-dev.1.0.flutter-69fce633b7
[√] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at C:\Users\marku\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.2
• Java binary at: C:\src\android-studio3.3C6\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files (x86)\android-studio
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] Android Studio (version 3.3)
• Android Studio at C:\src\android-studio3.3C6
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[√] Connected devices (1 available)
• ONE A2003 • 500fbec4 • android-arm64 • Android 8.1.0 (API 27)
• No issues found!
EdHuamani, Petka17, edelgarat, bcollins19, iozozturk and 1 more
Metadata
Metadata
Assignees
Labels
p: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.