yellowcath / PhotoMovie

Using your photos to create cool videos.(高仿抖音照片电影功能)
Apache License 2.0
694 stars 145 forks source link

App Crash Android 8.1.0 Color OS v5.0 Realme 1 Device #9

Closed VineshChauhan24 closed 5 years ago

VineshChauhan24 commented 5 years ago

i got error

java.lang.IllegalStateException at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method) at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2637) at record.GLMovieRecorder.drainEncoderApi21(GLMovieRecorder.java:410) at record.GLMovieRecorder.drainEncoder(GLMovieRecorder.java:284) at record.GLMovieRecorder.startRecordImpl(GLMovieRecorder.java:121) at record.GLMovieRecorder$1$1.run(GLMovieRecorder.java:76) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:187) at android.os.HandlerThread.run(HandlerThread.java:65)

Updated Code throwing error java.lang.IllegalStateException at android.media.MediaCodec.native_stop(Native Method) at android.media.MediaCodec.stop(MediaCodec.java:2072) at com.hw.photomovie.record.GLMovieRecorder.releaseEncoder(GLMovieRecorder.java:275) at com.hw.photomovie.record.GLMovieRecorder.startRecordImpl(GLMovieRecorder.java:167) at com.hw.photomovie.record.GLMovieRecorder$1$1.run(GLMovieRecorder.java:87) at android.os.Handler.handleCallback(Handler.java:790) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:187) at android.os.HandlerThread.run(HandlerThread.java:65)

app working fine in all device i have tested but getting error in Realme 1 device which has color os v5.0 with android version 8.1.0

yellowcath commented 5 years ago

Did you set the background music?

VineshChauhan24 commented 5 years ago

App is crashing after setting Background Music

yellowcath commented 5 years ago

implementation 'com.github.yellowcath:PhotoMovie:1.6.3' Fixed crash of encoder "OMX.MTK.VIDEO.ENCODER.AVC" the encoder limited max size "1080x1920"

VineshChauhan24 commented 5 years ago

now its working fine