sbis04 / video_trimmer

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

Working in debug mode but shows grey screen in profile and release mode #49

Closed rithikjain closed 4 years ago

rithikjain commented 4 years ago

37 The referenced issue had the same problem. I am running oreo on phone.

I suspect there is some codec issues with ExoPlayer, please look into as I really like the video_trimmer and need it in my app. I am attaching output of the error that I am getting and of flutter doctor.

I/ExoPlayerImpl(23828): Init f6a6995 [ExoPlayerLib/2.9.6] [OnePlus5, ONEPLUS A5000, OnePlus, 27]
I/MediaCodec(23828): name: OMX.qcom.video.decoder.avc
I/OMXClient(23828): Treble IOmx obtained
I/MediaCodec(23828): configure format is :{csd-1=java.nio.HeapByteBuffer[pos=0 lim=9 cap=9], max-height=640, max-width=288, mime=video/avc, width=288, priority=0, rotation-degrees=0, max-input-size=17706, height=640, csd-0=java.nio.HeapByteBuffer[pos=0 lim=21 cap=21]}
D/SurfaceUtils(23828): connecting to surface 0x75a3042010, reason connectToSurface
I/MediaCodec(23828): [OMX.qcom.video.decoder.avc] setting surface generation to 24399875
D/SurfaceUtils(23828): disconnecting from surface 0x75a3042010, reason connectToSurface(reconnect)
D/SurfaceUtils(23828): connecting to surface 0x75a3042010, reason connectToSurface(reconnect)
I/ExtendedACodec(23828): setupVideoDecoder()
I/ExtendedACodec(23828): Decoder will be in frame by frame mode
I/MediaCodec(23828): start
D/SurfaceUtils(23828): set up nativeWindow 0x75a3042010 for 288x640, color 0x7fa30c06, rotation 0, usage 0x20002900

Flutter doctor

[✓] Flutter (Channel stable, 1.20.2, on Microsoft Windows [Version 10.0.19041.450], locale en-IN)
    • Flutter version 1.20.2 at C:\flutter
    • Framework revision bbfbf1770c (12 days ago), 2020-08-13 08:33:09 -0700
    • Engine revision 9d5b21729f
    • Dart version 2.9.1

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at C:\Users\rithi\AppData\Local\Android\Sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = C:\Users\rithi\AppData\Local\Android\Sdk
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Android Studio (version 4.0)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.48.1)
    • VS Code at C:\Users\rithi\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.13.2

[✓] Connected device (1 available)
    • ONEPLUS A5000 (mobile) • 26b5c3ff • android-arm64 • Android 8.1.0 (API 27)

• No issues found!
rithikjain commented 4 years ago

Fixed it. Was some UI issue. Sorry.