sbis04 / video_trimmer

Flutter video trimmer package
https://pub.dev/packages/video_trimmer
MIT License
434 stars 263 forks source link

_trimmer.loadVideo(videoFile: widget.file) start and don't finished #205

Open kobimeridor opened 1 year ago

kobimeridor commented 1 year ago

Hello What is The reason for following exception? PlatformException(VideoError, Video player had error com.google.android.exoplayer2.ExoPlaybackException: MediaCodecVideoRenderer error, index=0, format=Format(1, null, null, video/avc, avc1.64000A, -1, null, [1280, 720, 29.702147], [-1, -1]), format_supported=YES, null, null)

I'm running the example - OK

In my App the function _trimmer.loadVideo(videoFile: widget.file) start and don't finished file - /data/user/0/com.allerg3/cache/file_picker/VID_20230519_174455.mp4

In my App I have more video controllers to play video
Do I have to define a controller for trimmer?

video_trimmer 2.0.0.

C:\src\flutter\bin\flutter.bat doctor --verbose [√] Flutter (Channel stable, 3.7.12, on Microsoft Windows [Version 10.0.22621.1555], locale he-IL) • Flutter version 3.7.12 on channel stable at C:\src\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 4d9e56e694 (5 weeks ago), 2023-04-17 21:47:46 -0400 • Engine revision 1a65d409c7 • Dart version 2.19.6 • DevTools version 2.20.1

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

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at C:\Users\merid\AppData\Local\Android\sdk • Platform android-TiramisuPrivacySandbox, build-tools 33.0.0 • Java binary at: C:\Program Files\Android\Android Studio2\jbr\bin\java • Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-9505619) • All Android licenses accepted.

[√] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

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

[√] Android Studio (version 2021.3) • 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 11.0.13+0-b1751.21-8125866)

[√] Android Studio (version 2022.1) • Android Studio at C:\Program Files\Android\Android Studio2 • 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.15+0-b2043.56-9505619)

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

[√] Connected device (4 available) • 220333QAG (mobile) • fd8dff64 • android-arm64 • Android 12 (API 31) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.1555] • Chrome (web) • chrome • web-javascript • Google Chrome 112.0.5615.139 • Edge (web) • edge • web-javascript • Microsoft Edge 113.0.1774.42

[√] HTTP Host Availability • All required HTTP hosts are available

! Doctor found issues in 1 category. Process finished with exit code 0