Open jcblancomartinez opened 2 years ago
facing this issues too, any solution or workaround ?
Same issue here error:
error:Error Domain=AVFoundationErrorDomain Code=-11832 “Cannot Open” UserInfo={NSLocalizedFailureReason=This media cannot be used., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x2823dcab0 {Error Domain=NSOSStatusErrorDomain Code=-12431 “(null)“}}
I can send an .mp4 video that is causing this issue every time
I met the same error, solved it by stack Overflow: https://stackoverflow.com/questions/43548529/get-last-frame-from-video, open iOS code, 'remove requestedTimeTolerance',then is ok。
Any solution? same issue here
The same problem when creating thumbnail from video MOV shortly ( around 2 -5 seconds)
couldn't generate thumbnail, error:Error Domain=AVFoundationErrorDomain Code=-11821 "Cannot Decode" UserInfo={NSLocalizedFailureReason=The media data could not be decoded. It may be damaged., NSLocalizedDescription=Cannot Decode, NSUnderlyingError=0x280fed950 {Error Domain=NSOSStatusErrorDomain Code=-12911 "(null)"}}
I met the same error, solved it by stack Overflow: https://stackoverflow.com/questions/43548529/get-last-frame-from-video, open iOS code, 'remove requestedTimeTolerance',then is ok。
This does remove the error but at the same time some of the thumbnails come out to be black.
Steps to reproduce:
flutter doctor -v
[✓] Flutter (Channel master, 2.6.0-12.0.pre.382, on Mac OS X 10.15.7 19H524 darwin-x64, locale en-ES) • Flutter version 2.6.0-12.0.pre.382 at /Users/juancarlos/Library/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 34ec94a16d (7 hours ago), 2021-10-19 01:33:08 -0700 • Engine revision faa45f497f • Dart version 2.15.0 (build 2.15.0-226.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at /Users/juancarlos/Library/Android/sdk • Platform android-31, build-tools 31.0.0 • Java binary at: /Applications/Android Studio Preview.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822) • All Android licenses accepted.
[!] Xcode - develop for iOS and macOS (Xcode 12.4) • Xcode at /Applications/Xcode.app/Contents/Developer ! Flutter recommends a minimum Xcode version of 13.0.0. Download the latest version or update via the Mac App Store. • CocoaPods version 1.11.2
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio • Android Studio at /Applications/Android Studio Preview.app/Contents • 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 11.0.11+0-b60-7590822)
[✓] Connected device (2 available) • iPhone 12 Pro Max (mobile) • 62EAA909-B18C-426F-AE70-89592050365E • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator) • Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.81
! Doctor found issues in 1 category.
-Android:
[✓] Flutter (Channel master, 2.6.0-12.0.pre.382, on Ubuntu 20.04.3 LTS 5.11.0-37-generic, locale en_US.UTF-8) • Flutter version 2.6.0-12.0.pre.382 at /home/juancarlos/snap/flutter/common/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 34ec94a16d (7 hours ago), 2021-10-19 01:33:08 -0700 • Engine revision faa45f497f • Dart version 2.15.0 (build 2.15.0-226.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) • Android SDK at /home/juancarlos/Android/Sdk • Platform android-31, build-tools 30.0.2 • Java binary at: /home/juancarlos/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822) • All Android licenses accepted.
[✓] Chrome - develop for the web • Chrome at google-chrome
[✓] Android Studio (version 2021.1) • Android Studio at /home/juancarlos/android-studio • Flutter plugin version 61.2.3 • Dart plugin version 211.7792 • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
[✓] Connected device (2 available) • Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator) • Chrome (web) • chrome • web-javascript • Google Chrome 94.0.4606.81
• No issues found!
flutter pub deps | grep video_thumbnail
|-- video_thumbnail 0.4.3
Regards
.