Skip to content

Flutter camera plugin record quality is very poor #26959

Description

@divyanshub024

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$ 

Activity

  1. added this to the milestone on Jan 23, 2019
  2. divyanshub024 commented on Jan 23, 2019

    @divyanshub024
    Author

    @zoechi Is there anything that can be done to improve the quality right now? Any work around?

  3. zoechi commented on Jan 23, 2019

    @zoechi
    Contributor

    I don't have deep knowledge of the plugin. You could try on StackOverflow or debug the plugin.

  4. divyanshub024 commented on Jan 23, 2019

    @divyanshub024
    Author

    @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#L467

  5. zoechi commented on Jan 23, 2019

    @zoechi
    Contributor

    Pull Requests are welcome ;-)

  6. divyanshub024 commented on Jan 23, 2019

    @divyanshub024
    Author

    @zoechi Sure, Thanks

  7. divyanshub024 commented on Jan 23, 2019

    @divyanshub024
    Author
  8. quentinleguennec commented on Apr 5, 2019

    @quentinleguennec

    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.

  9. added
    a: qualityA truly polished experience
    customer: crowdAffects or could affect many people, though not necessarily a specific customer.
    on Mar 16, 2020
  10. added
    P2Important issues not at the top of the work list
    on May 29, 2020
  11. removed this from the milestone on Aug 17, 2020
  12. mvanbeusekom commented on Jan 4, 2021

    @mvanbeusekom

    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.

  13. github-actions commented on Aug 7, 2021

    @github-actions

    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 -v and a minimal reproduction of the issue.

  14. locked as resolved and limited conversation to collaborators on Aug 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: qualityA truly polished experiencecustomer: crowdAffects or could affect many people, though not necessarily a specific customer.p: cameraThe camera pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions