Repository navigation
Flutter camera plugin record quality is very poor #26959
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.p: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
Description
I'm using flutter camera plugin and the recording is working fine. But after that when I play the recording the video quality is very poor.
Logs
Divyanshus-MacBook-Pro:~ divyanshub024$ flutter doctor -v
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-IN)
• Flutter version 1.0.0 at /Users/divyanshub024/Softwares/flutter
• Framework revision 5391447fae (8 weeks ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/divyanshub024/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /Users/divyanshub024/Library/Android/sdk
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1136-b06)
! Some Android licenses not accepted. To resolve this, run: flutter doctor
--android-licenses
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 31.1.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Community Edition (version 2018.3.3)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 31.3.4
• Dart plugin version 183.5153.38
[✓] Connected device (1 available)
• ASUS X00TD • J7AAGF01H563MZA • android-arm64 • Android 8.1.0 (API 27)
! Doctor found issues in 1 category.
Divyanshus-MacBook-Pro:~ divyanshub024$
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: qualityA truly polished experienceA truly polished experiencecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.p: cameraThe camera pluginThe camera pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Activity
divyanshub024 commentedon Jan 23, 2019
@zoechi Is there anything that can be done to improve the quality right now? Any work around?
zoechi commentedon Jan 23, 2019
I don't have deep knowledge of the plugin. You could try on StackOverflow or debug the plugin.
divyanshub024 commentedon Jan 23, 2019
@zoechi I have figured out something. The video encoding bit rate is very low
mediaRecorder.setVideoEncodingBitRate(1024 * 1000). If you increase it to 3000000 then it work's fine. https://github.com/flutter/plugins/blob/master/packages/camera/android/src/main/java/io/flutter/plugins/camera/CameraPlugin.java#L467zoechi commentedon Jan 23, 2019
Pull Requests are welcome ;-)
divyanshub024 commentedon Jan 23, 2019
@zoechi Sure, Thanks
divyanshub024 commentedon Jan 23, 2019
flutter-team-archive/plugins#1107
quentinleguennec commentedon Apr 5, 2019
Hi @divyanshub024 . I added a way to control video and picture capture quality.
You can check the PR here:
flutter-team-archive/plugins#1403
Suggestions are welcome. Don't hesitate to leave a comment to push the review process if that works for you.
mvanbeusekom commentedon Jan 4, 2021
Closing this issue as this seems to be solved with PR flutter-team-archive/plugins#1952 allowing users to set different quality presets.
If I overlooked something and this is still an issue please leave a comment and I would be happy to reopen the issue.
github-actions commentedon Aug 7, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.