record icon indicating copy to clipboard operation
record copied to clipboard

No encoder found for {aac-profile=2, bitrate=128000, mime=audio/mp4a-latm, channel-count=1, sample-rate=44100}

Open B-Saeid opened this issue 1 year ago • 0 comments

Package version : 5.0.5

flutter doctor -v output:

[✓] Flutter (Channel stable, 3.19.3, on Microsoft Windows [Version 10.0.22631.3296], locale en-US) • Flutter version 3.19.3 on channel stable .... • Upstream repository https://github.com/flutter/flutter.git • Framework revision ba39319843 (3 weeks ago), 2024-03-07 15:22:21 -0600 • Engine revision 2e4ba9c6fb • Dart version 3.3.1 • DevTools version 2.31.1

[✓] Windows Version (Installed version of Windows is version 10 or higher)

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at C:\Users.......\AppData\Local\Android\sdk • Platform android-34, build-tools 34.0.0 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874) • All Android licenses accepted.

[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✗] Visual Studio - develop Windows apps ✗ Visual Studio not installed; this is necessary to develop Windows apps. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components

[✓] Android Studio (version 2023.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.9+0--11185874)

[✓] VS Code (version 1.85.2) • VS Code at C:\Users....\AppData\Local\Programs\Microsoft VS Code • Flutter extension can be installed from: 🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available) • Android SDK built for x86 64 (mobile) • emulator-5554 • android-x64 • Android 6.0 (API 23) (emulator) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22631.3296] • Edge (web) • edge • web-javascript • Microsoft Edge 118.0.2088.76

[✓] Network resources • All expected network resources are available.

Describe the bug running the provided code that is provided in .readme file on an emulator and a real device both Android 6 .. SDK 23 .... throws that error

No encoder found for {aac-profile=2, bitrate=128000, mime=audio/mp4a-latm, channel-count=2, sample-rate=44100}

==== then to assure it is not a bug in my code i cloned the repo and ran the example app throws the exact same error except for " , channel-count=2" it was ", channel-count=1" as it is mono in the example app, HOWEVER aacLC when passed to _isEncoderSupported() it returns true on both the emulator and the physical device

Add my record configuration is the default const RecordConfig()

also note I tried the other encoder on api 23 ... wav worked well but HUGE size except when lowering the sample rate and bit rate which really produce a low quality audio ... so If anyone can help use aacLC ... It will be much appreciated

B-Saeid avatar Mar 28 '24 18:03 B-Saeid