Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android APP Crash when selecting video #3

Open
MilotH2 opened this issue Dec 11, 2020 · 7 comments
Open

Android APP Crash when selecting video #3

MilotH2 opened this issue Dec 11, 2020 · 7 comments

Comments

@MilotH2
Copy link

MilotH2 commented Dec 11, 2020

Hello, I cloned the git repository and run the app on my device, and when i select a video, the app crashes giving the following errors:

Tested on both device and simulator, but there errors are on device. Any help woul be appriciated, thank you.

for what is this path:
final path = '${tempDir.path}/result.mp4';
isnt this supposed to be the path of the selected or recorded video?

i added on

 cup.suckUp ....... }, onError: (err) {
                            inspect(err);
                          });

and the inspect is giving the following error:

code:"video_processing_failed"
details:null
message:"video processing is failed."
stacktrace:null
hashCode:323881052

/EGL_emulation(10870): eglMakeCurrent: 0xdeece3c0: ver 2 0 (tinfo 0xd6e0f3f0)
D/eglCodecCommon(10870): setVertexArrayObject: set vao to 0 (0) 1 0
I/flutter (10870): clicked!
D/EGL_emulation(10870): eglMakeCurrent: 0xd6e1a0c0: ver 2 0 (tinfo 0xd6e0f6e0)
I/flutter (10870): /data/user/0/me.anharu.video_editor_example/cache/image_picker7717197437664952230.jpg
D/EGL_emulation(10870): eglMakeCurrent: 0xdeece3c0: ver 2 0 (tinfo 0xd6e0f3f0)
D/EGL_emulation(10870): eglMakeCurrent: 0xd6e1a0c0: ver 2 0 (tinfo 0xd6e0f6e0)
I/flutter (10870): Directory: '/data/user/0/me.anharu.video_editor_example/cache'
D/EGL_emulation(10870): eglMakeCurrent: 0xdeece3c0: ver 2 0 (tinfo 0xd6e0f3f0)
D/eglCodecCommon(10870): setVertexArrayObject: set vao to 0 (0) 7 0
D/Mp4Composer(10870): rotation = 90
D/Mp4Composer(10870): rotation = ROTATION_90
D/Mp4Composer(10870): inputResolution width = 1280 height = 720
D/Mp4Composer(10870): outputResolution width = 720 height = 1280
D/Mp4Composer(10870): fillMode = PRESERVE_ASPECT_FIT
D/Mp4Composer(10870): bitrate=6912000
W/ClearFileSource(10870): offset/length adjusted from 0/576460752303423487 to 0/8496856
D/Mp4ComposerEngine(10870): Duration (us): 11080000
I/VideoCapabilities(10870): Unsupported profile 4 for video/mp4v-es
I/OMXClient(10870): IOmx service obtained
W/OMXUtils(10870): do not know color format 0x7f000789 = 2130708361
I/ACodec  (10870): [OMX.google.h263.encoder] cannot encode color aspects. Ignoring.
I/ACodec  (10870): [OMX.google.h263.encoder] cannot encode HDR static metadata. Ignoring.
I/ACodec  (10870): setupVideoEncoder succeeded
W/OMXUtils(10870): do not know color format 0x7f000789 = 2130708361
D/HostConnection(10870): HostConnection::get() New Host Connection established 0xb414e5f0, tid 10999
D/HostConnection(10870): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_free_memory_sync GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_2
D/eglCodecCommon(10870): setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation(10870): eglCreateContext: 0xb40d24a0: maj 2 min 0 rcv 2
D/EGL_emulation(10870): eglMakeCurrent: 0xb40d24a0: ver 2 0 (tinfo 0xb40e5d70)
E/ACodec  (10870): [OMX.google.h263.encoder] ERROR(0x80001001)
E/ACodec  (10870): signalError(omxError 0x80001001, internalError -2147483648)
E/MediaCodec(10870): Codec reported err 0x80001001, actionCode 0, while in state 6
W/_editor_exampl(10870): Accessing hidden field Ljava/nio/Buffer;->position:I (greylist, JNI, allowed)
W/_editor_exampl(10870): Accessing hidden field Ljava/nio/Buffer;->limit:I (greylist, JNI, allowed)
W/_editor_exampl(10870): Accessing hidden field Ljava/nio/Buffer;->_elementSizeShift:I (greylist, JNI, allowed)
W/_editor_exampl(10870): Accessing hidden field Ljava/nio/Buffer;->address:J (greylist, JNI, allowed)
W/System  (10870): A resource failed to call close.
E/EGL_emulation(10870): eglQueryContext 32c0  EGL_BAD_ATTRIBUTE
E/EGL_emulation(10870): tid 10999: eglQueryContext(1902): error 0x3004 (EGL_BAD_ATTRIBUTE)
I/OMXClient(10870): IOmx service obtained
D/SurfaceUtils(10870): connecting to surface 0xba1fc008, reason connectToSurface
I/MediaCodec(10870): [OMX.google.h264.decoder] setting surface generation to 11130881
D/SurfaceUtils(10870): disconnecting from surface 0xba1fc008, reason connectToSurface(reconnect)
D/SurfaceUtils(10870): connecting to surface 0xba1fc008, reason connectToSurface(reconnect)
E/ACodec  (10870): [OMX.google.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
I/OMXClient(10870): IOmx service obtained
I/OMXClient(10870): IOmx service obtained
E/Surface (10870): getSlotFromBufferLocked: unknown buffer: 0x0
D/SurfaceUtils(10870): disconnecting from surface 0xba1fc008, reason disconnectFromSurface
E/Mp4ComposerEngine(10870): Could not shutdown mediaExtractor, codecs and mediaMuxer pipeline.
E/Mp4ComposerEngine(10870): java.lang.IllegalStateException
E/Mp4ComposerEngine(10870): 	at android.media.MediaCodec.native_stop(Native Method)
E/Mp4ComposerEngine(10870): 	at android.media.MediaCodec.stop(MediaCodec.java:2147)
E/Mp4ComposerEngine(10870): 	at com.daasuu.mp4compose.composer.VideoComposer.release(VideoComposer.java:161)
E/Mp4ComposerEngine(10870): 	at com.daasuu.mp4compose.composer.Mp4ComposerEngine.compose(Mp4ComposerEngine.java:144)
E/Mp4ComposerEngine(10870): 	at com.daasuu.mp4compose.composer.Mp4Composer$2.run(Mp4Composer.java:297)
E/Mp4ComposerEngine(10870): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/Mp4ComposerEngine(10870): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/Mp4ComposerEngine(10870): 	at java.lang.Thread.run(Thread.java:919)
E/Mp4Composer(10870): Unable to compose the engine
E/Mp4Composer(10870): java.lang.IllegalStateException
E/Mp4Composer(10870): 	at android.media.MediaCodec.native_dequeueOutputBuffer(Native Method)
E/Mp4Composer(10870): 	at android.media.MediaCodec.dequeueOutputBuffer(MediaCodec.java:2789)
E/Mp4Composer(10870): 	at com.daasuu.mp4compose.composer.VideoComposer.drainEncoder(VideoComposer.java:222)
E/Mp4Composer(10870): 	at com.daasuu.mp4compose.composer.VideoComposer.stepPipeline(VideoComposer.java:118)
E/Mp4Composer(10870): 	at com.daasuu.mp4compose.composer.Mp4ComposerEngine.runPipelines(Mp4ComposerEngine.java:267)
E/Mp4Composer(10870): 	at com.daasuu.mp4compose.composer.Mp4ComposerEngine.compose(Mp4ComposerEngine.java:133)
E/Mp4Composer(10870): 	at com.daasuu.mp4compose.composer.Mp4Composer$2.run(Mp4Composer.java:297)
E/Mp4Composer(10870): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/Mp4Composer(10870): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/Mp4Composer(10870): 	at java.lang.Thread.run(Thread.java:919)
I/System.out(10870): java.lang.IllegalStateException
E/flutter (10870): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: PlatformException(video_processing_failed, video processing is failed., null, null)
E/flutter (10870): #0      StandardMethodCodec.decodeEnvelope
package:flutter/…/services/message_codecs.dart:582
E/flutter (10870): #1      MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:159
E/flutter (10870): <asynchronous suspension>
E/flutter (10870): #2      MethodChannel.invokeMethod
package:flutter/…/services/platform_channel.dart:332
E/flutter (10870): #3      VideoEditor.writeVideofile
package:tapioca/src/video_editor.dart:14
E/flutter (10870): #4      Cup.suckUp
package:tapioca/src/cup.dart:19
E/flutter (10870): #5      _MyAppState.build.<anonymous closure>
package:tapioca_example/main.dart:98
E/flutter (10870): <asynchronous suspension>
E/flutter (10870): #6      _MyAppState.build.<anonymous closure> (package:tapioca_example/main.dart)
package:tapioca_example/main.dart:1
E/flutter (10870): #7      _InkResponseState._handleTap
package:flutter/…/material/ink_well.dart:993
E/flutter (10870): #8      _InkResponseState.build.<anonymous closure>
package:flutter/…/material/ink_well.dart:1111
E/flutter (10870): #9      GestureRecognizer.invokeCallback
package:flutter/…/gestures/recognizer.dart:183
E/flutter (10870): #10     TapGestureRecognizer.handleTapUp
package:flutter/…/gestures/tap.dart:598
E/flutter (10870): #11     BaseTapGestureRecognizer._checkUp
package:flutter/…/gestures/tap.dart:287
E/flutter (10870): #12     BaseTapGestureRecognizer.handlePrimaryPointer
package:flutter/…/gestures/tap.dart:222
E/flutter (10870): #13     PrimaryPointerGestureRecognizer.handleEvent
package:flutter/…/gestures/recognizer.dart:476
E/flutter (10870): #14     PointerRouter._dispatch
package:flutter/…/gestures/pointer_router.dart:77
E/flutter (10870): #15     PointerRouter._dispatchEventToRoutes.<anonymous closure>
package:flutter/…/gestures/pointer_router.dart:122
E/flutter (10870): #16     _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:377:8)
E/flutter (10870): #17     PointerRouter._dispatchEventToRoutes
package:flutter/…/gestures/pointer_router.dart:120
E/flutter (10870): #18     PointerRouter.route
package:flutter/…/gestures/pointer_router.dart:106
E/flutter (10870): #19     GestureBinding.handleEvent
package:flutter/…/gestures/binding.dart:358
E/flutter (10870): #20     GestureBinding.dispatchEvent
package:flutter/…/gestures/binding.dart:338
E/flutter (10870): #21     RendererBinding.dispatchEvent
package:flutter/…/rendering/binding.dart:267
E/flutter (10870): #22     GestureBinding._handlePointerEvent
package:flutter/…/gestures/binding.dart:295
E/flutter (10870): #23     GestureBinding._flushPointerEventQueue
package:flutter/…/gestures/binding.dart:240
E/flutter (10870): #24     GestureBinding._handlePointerDataPacket
package:flutter/…/gestures/binding.dart:213
E/flutter (10870): #25     _rootRunUnary (dart:async/zone.dart:1206:13)
E/flutter (10870): #26     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
E/flutter (10870): #27     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1005:7)
E/flutter (10870): #28     _invoke1 (dart:ui/hooks.dart:265:10)
E/flutter (10870): #29     _dispatchPointerDataPacket (dart:ui/hooks.dart:174:5)
E/flutter (10870):
Application finished.
Exited (sigterm)

I Also tried with the example on the pub.dev, but still with the same issue the app crashes and gives these errors:

/flutter (17791): clicked!
I/Timeline(17791): Timeline: Activity_launch_request time:25151987
W/Activity(17791): Slow Operation: Activity com.example.videoEditor/.MainActivity onActivityResult took 125ms
I/flutter (17791): /data/user/0/com.example.videoEditor/cache/image_picker7509116096101189781.jpg
W/ple.videoEdito(17791): Accessing hidden method Lsun/misc/Unsafe;->getUnsafe()Lsun/misc/Unsafe; (greylist,core-platform-api, linking, allowed)
W/ple.videoEdito(17791): Accessing hidden method Lsun/misc/Unsafe;->objectFieldOffset(Ljava/lang/reflect/Field;)J (greylist,core-platform-api, linking, allowed)
W/ple.videoEdito(17791): Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z (greylist, linking, allowed)
I/flutter (17791): Directory: '/data/user/0/com.example.videoEditor/cache'
D/Mp4Composer(17791): rotation = 270
D/Mp4Composer(17791): rotation = ROTATION_270
D/Mp4Composer(17791): inputResolution width = 1920 height = 1080
D/Mp4Composer(17791): outputResolution width = 1080 height = 1920
D/Mp4Composer(17791): fillMode = PRESERVE_ASPECT_FIT
D/Mp4Composer(17791): bitrate=15552000
W/ClearFileSource(17791): offset/length adjusted from 0/576460752303423487 to 0/19487528
D/Mp4ComposerEngine(17791): Duration (us): 7278000
W/VideoCapabilities(17791): Unsupported mime image/vnd.android.heic
W/VideoCapabilities(17791): Unsupported mime video/divx
W/VideoCapabilities(17791): Unsupported mime video/divx4
W/VideoCapabilities(17791): Unrecognized profile/level 0/3 for video/mpeg2
W/VideoCapabilities(17791): Unrecognized profile/level 0/3 for video/mpeg2
I/OMXClient(17791): IOmx service obtained
I/ExtendedACodec(17791): setupVideoEncoder()
W/OMXUtils(17791): do not know color format 0x7fa30c06 = 2141391878
W/OMXUtils(17791): do not know color format 0x7fa30c04 = 2141391876
W/OMXUtils(17791): do not know color format 0x7fa30c00 = 2141391872
W/OMXUtils(17791): do not know color format 0x7fa30c09 = 2141391881
W/OMXUtils(17791): do not know color format 0x7fa30c0a = 2141391882
W/OMXUtils(17791): do not know color format 0x7fa30c08 = 2141391880
W/OMXUtils(17791): do not know color format 0x7fa30c07 = 2141391879
W/OMXUtils(17791): do not know color format 0x7f000789 = 2130708361
I/ACodec  (17791): [OMX.qcom.video.encoder.hevc] cannot encode HDR static metadata. Ignoring.
I/ACodec  (17791): setupVideoEncoder succeeded
I/ExtendedACodec(17791): [OMX.qcom.video.encoder.hevc] configure, AMessage : AMessage(what = 'conf', target = 1) = {
I/ExtendedACodec(17791):   int32_t color-format = 2130708361
I/ExtendedACodec(17791):   int32_t i-frame-interval = 1
I/ExtendedACodec(17791):   string mime = "video/hevc"
I/ExtendedACodec(17791):   int32_t width = 1080
I/ExtendedACodec(17791):   int32_t bitrate = 15552000
I/ExtendedACodec(17791):   int32_t frame-rate = 30
I/ExtendedACodec(17791):   int32_t height = 1920
I/ExtendedACodec(17791):   int32_t encoder = 1
I/ExtendedACodec(17791): }
W/OMXUtils(17791): do not know color format 0x7f000789 = 2130708361
I/OMXClient(17791): IOmx service obtained
D/SurfaceUtils(17791): connecting to surface 0x756039f010, reason connectToSurface
I/MediaCodec(17791): [OMX.qcom.video.decoder.avc] setting surface generation to 18217985
D/SurfaceUtils(17791): disconnecting from surface 0x756039f010, reason connectToSurface(reconnect)
D/SurfaceUtils(17791): connecting to surface 0x756039f010, reason connectToSurface(reconnect)
I/ExtendedACodec(17791): setupVideoDecoder()
I/ExtendedACodec(17791): Decoder will be in frame by frame mode
D/SurfaceUtils(17791): set up nativeWindow 0x756039f010 for 1920x1080, color 0x7fa30c06, rotation 0, usage 0x20002900
W/Gralloc3(17791): allocator 3.x is not supported
D/VideoComposer(17791): drainExtractor trackIndex:0
D/VideoComposer(17791): drainExtractor trackIndex:1
D/VideoComposer(17791): drainExtractor trackIndex:1
D/AudioComposer(17791): stepPipeline trackIndex:1
D/VideoComposer(17791): drainExtractor trackIndex:1
D/AudioComposer(17791): stepPipeline trackIndex:1
D/VideoComposer(17791): drainExtractor trackIndex:1
D/AudioComposer(17791): stepPipeline trackIndex:1
D/VideoComposer(17791): drainExtractor trackIndex:0
D/VideoComposer(17791): drainExtractor trackIndex:1
D/VideoComposer(17791): drainExtractor trackIndex:1
D/AudioComposer(17791): stepPipeline trackIndex:1
D/VideoComposer(17791): drainExtractor trackIndex:0
D/SurfaceUtils(17791): set up nativeWindow 0x756039f010 for 1920x1088, color 0x7fa30c06, rotation 0, usage 0x20002900
D/VideoComposer(17791): drainExtractor trackIndex:1
I/chatty  (17791): uid=10354(com.example.videoEditor) pool-4-thread-1 identical 1 line
D/VideoComposer(17791): drainExtractor trackIndex:1
D/AudioComposer(17791): stepPipeline trackIndex:1
D/VideoComposer(17791): drainExtractor trackIndex:1
D/AudioComposer(17791): stepPipeline trackIndex:1
E/BufferQueueProducer(17791): [SurfaceTexture-3-17791-0] cancelBuffer: BufferQueue has been abandoned
I/chatty  (17791): uid=10354(com.example.videoEditor) CodecLooper identical 1 line
E/BufferQueueProducer(17791): [SurfaceTexture-3-17791-0] cancelBuffer: BufferQueue has been abandoned
D/SurfaceUtils(17791): disconnecting from surface 0x756039f010, reason disconnectFromSurface
E/AndroidRuntime(17791): FATAL EXCEPTION: pool-4-thread-1
E/AndroidRuntime(17791): Process: com.example.videoEditor, PID: 17791
E/AndroidRuntime(17791): java.lang.AbstractMethodError: abstract method "void com.daasuu.mp4compose.composer.Mp4Composer$Listener.onCurrentWrittenVideoTime(long)"
E/AndroidRuntime(17791): 	at com.daasuu.mp4compose.composer.Mp4Composer$2$1.onCurrentWrittenVideoTime(Mp4Composer.java:250)
E/AndroidRuntime(17791): 	at com.daasuu.mp4compose.composer.Mp4ComposerEngine.runPipelines(Mp4ComposerEngine.java:282)
E/AndroidRuntime(17791): 	at com.daasuu.mp4compose.composer.Mp4ComposerEngine.compose(Mp4ComposerEngine.java:142)
E/AndroidRuntime(17791): 	at com.daasuu.mp4compose.composer.Mp4Composer$2.run(Mp4Composer.java:312)
E/AndroidRuntime(17791): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
E/AndroidRuntime(17791): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
E/AndroidRuntime(17791): 	at java.lang.Thread.run(Thread.java:919)
I/Process (17791): Sending signal. PID: 17791 SIG: 9
Lost connection to device.
@MarcK98
Copy link

MarcK98 commented Mar 23, 2021

Having same issue, any updates here?
Thank you

@IbtsamRana
Copy link

Need same thing, have you got any solution for this?

@anharu2394
Copy link
Owner

In my environment, the proceess is successful

 /data/user/0/me.anharu.video_editor_example/cache/image_picker7639931418168784829.jpg
I/flutter (29826): Directory: '/data/user/0/me.anharu.video_editor_example/cache'
D/Mp4Composer(29826): rotation = 0
D/Mp4Composer(29826): rotation = NORMAL
D/Mp4Composer(29826): inputResolution width = 1280 height = 720
D/Mp4Composer(29826): outputResolution width = 1280 height = 720
D/Mp4Composer(29826): fillMode = PRESERVE_ASPECT_FIT
D/Mp4Composer(29826): bitrate=6912000
W/FileSource(29826): offset/length adjusted from 0/576460752303423487 to 0/1055736
D/MPEG4Writer(29826): PreAllocation enabled
D/Mp4ComposerEngine(29826): Duration (us): 5312000
I/VideoCapabilities(29826): Unsupported profile 4 for video/mp4v-es
I/OMXClient(29826): IOmx service obtained
W/OMXUtils(29826): do not know color format 0x7f000789 = 2130708361
I/ACodec  (29826): setupAVCEncoderParameters with [profile: Baseline] [level: Level41]
I/ACodec  (29826): [OMX.google.h264.encoder] cannot encode color aspects. Ignoring.
I/ACodec  (29826): [OMX.google.h264.encoder] cannot encode HDR static metadata. Ignoring.
I/ACodec  (29826): setupVideoEncoder succeeded
W/OMXUtils(29826): do not know color format 0x7f000789 = 2130708361
D/HostConnection(29826): HostConnection::get() New Host Connection established 0xf2625310, tid 30132
D/HostConnection(29826): HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0 
D/EGL_emulation(29826): eglCreateContext: 0xf2625230: maj 3 min 0 rcv 3
D/EGL_emulation(29826): eglMakeCurrent: 0xf2625230: ver 3 0 (tinfo 0xc1676470) (first time)
E/EGL_emulation(29826): eglQueryContext 32c0  EGL_BAD_ATTRIBUTE
E/EGL_emulation(29826): tid 30132: eglQueryContext(2019): error 0x3004 (EGL_BAD_ATTRIBUTE)
I/OMXClient(29826): IOmx service obtained
D/SurfaceUtils(29826): connecting to surface 0xececfbf8, reason connectToSurface
I/MediaCodec(29826): [OMX.android.goldfish.h264.decoder] setting surface generation to 30541825
D/SurfaceUtils(29826): disconnecting from surface 0xececfbf8, reason connectToSurface(reconnect)
D/SurfaceUtils(29826): connecting to surface 0xececfbf8, reason connectToSurface(reconnect)
E/ACodec  (29826): [OMX.android.goldfish.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
D/SurfaceUtils(29826): disconnecting from surface 0xececfbf8, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(29826): connecting to surface 0xececfbf8, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(29826): set up nativeWindow 0xececfbf8 for 1280x720, color 0x13, rotation 0, usage 0x1002900
W/Gralloc4(29826): allocator 3.x is not supported
I/System.out(29826): onProgress = 0.010040097891566265
D/ACodec  (29826): dataspace changed to 0x10c10000 (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M)) (R:2(Limited), S:1(BT709), T:3(SMPTE_170M))
W/System  (29826): A resource failed to call close. 
D/MuxRender(29826): Added track #0 with video/avc to muxer
D/MuxRender(29826): Added track #1 with audio/mp4a-latm to muxer
D/MPEG4Writer(29826): fpathconf _PC_FILESIZEBITS:64
D/MPEG4Writer(29826): File size limit set to 4503599627370495 bytes implicitly
D/MPEG4Writer(29826): MP4WtrCtrlHlpLooper Started
I/MPEG4Writer(29826): limits: 4503599627370495/0 bytes/us, bit rate: -1 bps and the estimated moov size 3192 bytes
D/MPEG4Writer(29826): kWhatNoIOErrorSoFar
D/MuxRender(29826): Output format determined, writing 8 samples / 7944 bytes to muxer.
I/MPEG4Writer(29826): setStartTimestampUs: 0
I/MPEG4Writer(29826): Earliest track starting time: 0
I/MPEG4Writer(29826): setStartTimestampUs: 0
I/System.out(29826): onProgress = 0.020080289909638553
I/System.out(29826): onProgress = 0.03940756777108434
I/System.out(29826): onProgress = 0.05496987951807229
I/System.out(29826): onProgress = 0.07053209713855421
I/System.out(29826): onProgress = 0.08810240963855422
I/System.out(29826): onProgress = 0.10341359186746987
I/System.out(29826): onProgress = 0.11897590361445784
I/System.out(29826): onProgress = 0.13278106174698795
I/System.out(29826): onProgress = 0.14834337349397592
I/System.out(29826): onProgress = 0.16566265060240964
I/System.out(29826): onProgress = 0.18323286897590363
I/System.out(29826): onProgress = 0.19879518072289157
I/System.out(29826): onProgress = 0.21435739834337347
I/System.out(29826): onProgress = 0.23167667545180723
I/System.out(29826): onProgress = 0.24924698795180722
I/System.out(29826): onProgress = 0.2668172063253012
I/System.out(29826): onProgress = 0.28237951807228917
I/System.out(29826): onProgress = 0.2979417356927711
I/System.out(29826): onProgress = 0.313503953313253
I/System.out(29826): onProgress = 0.3270581701807229
I/System.out(29826): onProgress = 0.34437744728915665
I/System.out(29826): onProgress = 0.35818269954819276
I/System.out(29826): onProgress = 0.3812750376506024
I/System.out(29826): onProgress = 0.39508028990963856
I/System.out(29826): onProgress = 0.40863450677710844
I/System.out(29826): onProgress = 0.4241967243975904
I/System.out(29826): onProgress = 0.43975903614457834
I/System.out(29826): onProgress = 0.4553212537650603
I/System.out(29826): onProgress = 0.4708834713855422
I/System.out(29826): onProgress = 0.48644578313253006
I/System.out(29826): onProgress = 0.5057730609939759
I/System.out(29826): onProgress = 0.5213352786144578
I/System.out(29826): onProgress = 0.5368975903614458
I/System.out(29826): onProgress = 0.5544678087349397
I/System.out(29826): onProgress = 0.5700301204819277
I/System.out(29826): onProgress = 0.5853413027108434
I/System.out(29826): onProgress = 0.6029116152108434
I/System.out(29826): onProgress = 0.6147087725903615
I/System.out(29826): onProgress = 0.6320280496987951
I/System.out(29826): onProgress = 0.6533634224397591
I/System.out(29826): onProgress = 0.665160579819277
I/System.out(29826): onProgress = 0.6807228915662651
I/System.out(29826): onProgress = 0.696285109186747
I/System.out(29826): onProgress = 0.7156123870481927
I/System.out(29826): onProgress = 0.7331826995481927
I/System.out(29826): onProgress = 0.7487449171686746
I/System.out(29826): onProgress = 0.7660641942771085
I/System.out(29826): onProgress = 0.7816265060240963
I/System.out(29826): onProgress = 0.7971887236445783
I/System.out(29826): onProgress = 0.8147590361445783
I/System.out(29826): onProgress = 0.8303212537650602
I/System.out(29826): onProgress = 0.8458834713855421
I/System.out(29826): onProgress = 0.8614457831325302
I/System.out(29826): onProgress = 0.8807730609939759
I/System.out(29826): onProgress = 0.8963352786144578
I/System.out(29826): onProgress = 0.9139055911144578
I/System.out(29826): onProgress = 0.9294678087349397
I/System.out(29826): onProgress = 0.9430220256024096
I/System.out(29826): onProgress = 0.9623493975903614
V/MediaWriter(29826): Track event err/info msg:101, trackId:2, type:1000,val:0
I/MPEG4Writer(29826): Received total/0-length (249/0) buffers and encoded 249 frames. - Audio
I/MPEG4Writer(29826): Audio track drift time: 0 us
I/System.out(29826): onProgress = 0.9781626506024097
D/MPEG4Writer(29826): reset()
D/MPEG4Writer(29826): Video track stopping. Stop source
D/MPEG4Writer(29826): Video track source stopping
D/MPEG4Writer(29826): Video track source stopped
V/MediaWriter(29826): Track event err/info msg:101, trackId:1, type:1000,val:0
I/MPEG4Writer(29826): Received total/0-length (132/0) buffers and encoded 132 frames. - Video
D/MPEG4Writer(29826): Video track stopped. Status:0. Stop source
D/MPEG4Writer(29826): Audio track stopping. Stop source
D/MPEG4Writer(29826): Audio track source stopping
D/MPEG4Writer(29826): Audio track source stopped
D/MPEG4Writer(29826): Audio track stopped. Status:0. Stop source
D/MPEG4Writer(29826): Duration from tracks range is [5280000, 5311999] us
D/MPEG4Writer(29826): 0 chunks are written in the last batch
D/MPEG4Writer(29826): WriterThread stopped. Status:0
I/MPEG4Writer(29826): Adjust the moov start time from 0 us -> 0 us
I/MPEG4Writer(29826): MOOV atom was written to the file
D/MPEG4Writer(29826): release()
D/MPEG4Writer(29826): ftruncate mPreAllocateFileEndOffset:4636783 mOffset:2890 mMdatEndOffset:4631887 diff:4896
D/MPEG4Writer(29826): MP4WtrCtrlHlpLooper stopped
D/MPEG4Writer(29826): Top 5 write durations(microseconds): #1:2142 #2:2625 #3:3236 #4:5508 #5:22028
E/Surface (29826): getSlotFromBufferLocked: unknown buffer: 0x0
E/BufferQueueProducer(29826): [SurfaceTexture-3-29826-0](id:748200000000,api:3,p:29826,c:29826) cancelBuffer: BufferQueue has been abandoned
D/SurfaceUtils(29826): disconnecting from surface 0xececfbf8, reason disconnectFromSurface
D/MPEG4Writer(29826): reset()
D/MPEG4Writer(29826): Video track stopping. Stop source
E/MPEG4Writer(29826): Stop() called but track is not started or stopped
D/MPEG4Writer(29826): Audio track stopping. Stop source
E/MPEG4Writer(29826): Stop() called but track is not started or stopped
I/flutter (29826): finished
W/_editor_exampl(29826): Accessing hidden method Landroid/media/AudioTrack;->getLatency()I (greylist, reflection, allowed)
I/ExoPlayerImpl(29826): Init ce51d8e [ExoPlayerLib/2.14.1] [generic_x86_arm, sdk_gphone_x86_arm, Google, 30]
I/TetheringManager(29826): registerTetheringEventCallback:me.anharu.video_editor_example
I/flutter (29826): true
I/OMXClient(29826): IOmx service obtained
D/SurfaceUtils(29826): connecting to surface 0xeceddea8, reason connectToSurface
I/MediaCodec(29826): [OMX.android.goldfish.h264.decoder] setting surface generation to 30541826
D/SurfaceUtils(29826): disconnecting from surface 0xeceddea8, reason connectToSurface(reconnect)
D/SurfaceUtils(29826): connecting to surface 0xeceddea8, reason connectToSurface(reconnect)
E/ACodec  (29826): [OMX.android.goldfish.h264.decoder] setPortMode on output to DynamicANWBuffer failed w/ err -1010
I/ACodec  (29826): codec does not support config priority (err -1010)
D/SurfaceUtils(29826): disconnecting from surface 0xeceddea8, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(29826): connecting to surface 0xeceddea8, reason setNativeWindowSizeFormatAndUsage
D/SurfaceUtils(29826): set up nativeWindow 0xeceddea8 for 1280x720, color 0x13, rotation 0, usage 0x1002900
W/ACodec  (29826): [OMX.android.goldfish.h264.decoder] BAD CODEC: Output format changed unexpectedly from (diff) AMessage(what = 0x00000000) = {
W/ACodec  (29826):       int32_t color-standard = 1
W/ACodec  (29826):     } to (diff) AMessage(what = 0x00000000) = {
W/ACodec  (29826):       int32_t color-standard = 130817
W/ACodec  (29826):     }
D/CCodec  (29826): allocate(c2.android.aac.decoder)
I/Codec2Client(29826): Available Codec2 services: "software"
I/CCodec  (29826): Created component [c2.android.aac.decoder]
D/CCodecConfig(29826): read media type: audio/mp4a-latm
D/ReflectedParamUpdater(29826): extent() != 1 for single value type: algo.buffers.max-count.values
D/ReflectedParamUpdater(29826): extent() != 1 for single value type: output.subscribed-indices.values
D/ReflectedParamUpdater(29826): extent() != 1 for single value type: input.buffers.allocator-ids.values
D/ReflectedParamUpdater(29826): extent() != 1 for single value type: output.buffers.allocator-ids.values
D/ReflectedParamUpdater(29826): extent() != 1 for single value type: algo.buffers.allocator-ids.values
D/ReflectedParamUpdater(29826): extent() != 1 for single value type: output.buffers.pool-ids.values
D/ReflectedParamUpdater(29826): extent() != 1 for single value type: algo.buffers.pool-ids.values
I/CCodecConfig(29826): query failed after returning 19 values (BAD_INDEX)
D/CCodecConfig(29826): c2 config diff is Dict {
D/CCodecConfig(29826):   c2::u32 coded.aac-packaging.value = 0
D/CCodecConfig(29826):   c2::u32 coded.bitrate.value = 64000
D/CCodecConfig(29826):   c2::u32 coded.pl.level = 0
D/CCodecConfig(29826):   c2::u32 coded.pl.profile = 8192
D/CCodecConfig(29826):   c2::i32 coding.drc.album-mode.value = 0
D/CCodecConfig(29826):   c2::float coding.drc.attenuation-factor.value = 1
D/CCodecConfig(29826):   c2::float coding.drc.boost-factor.value = 1
D/CCodecConfig(29826):   c2::i32 coding.drc.compression-mode.value = 3
D/CCodecConfig(29826):   c2::i32 coding.drc.effect-type.value = 3
D/CCodecConfig(29826):   c2::float coding.drc.encoded-level.value = 0.25
D/CCodecConfig(29826):   c2::float coding.drc.reference-level.value = -16
D/CCodecConfig(29826):   c2::u32 input.buffers.max-size.value = 8192
D/CCodecConfig(29826):   c2::u32 input.delay.value = 0
D/CCodecConfig(29826):   string input.media-type.value = "audio/mp4a-latm"
D/CCodecConfig(29826):   c2::u32 output.delay.value = 2
D/CCodecConfig(29826):   c2::float output.drc.output-loudness.value = 0.25
D/CCodecConfig(29826):   string output.media-type.value = "audio/raw"
D/CCodecConfig(29826):   c2::u32 raw.channel-count.value = 1
D/CCodecConfig(29826):   c2::u32 raw.max-channel-count.value = 8
D/CCodecConfig(29826):   c2::u32 raw.sample-rate.value = 44100
D/CCodecConfig(29826): }
D/CCodec  (29826): [c2.android.aac.decoder] buffers are bound to CCodec for this session
D/CCodecConfig(29826): no c2 equivalents for flags
D/CCodecConfig(29826): config failed => CORRUPTED
D/CCodecConfig(29826): c2 config diff is   c2::u32 raw.channel-count.value = 6
D/CCodecConfig(29826):   c2::u32 raw.sample-rate.value = 48000
W/Codec2Client(29826): query -- param skipped: index = 1107298332.
D/CCodec  (29826): client requested max input size 1236, which is smaller than what component recommended (8192); overriding with component recommendation.
W/CCodec  (29826): This behavior is subject to change. It is recommended that app developers double check whether the requested max input size is in reasonable range.
D/CCodec  (29826): setup formats input: AMessage(what = 0x00000000) = {
D/CCodec  (29826):   int32_t aac-drc-album-mode = 0
D/CCodec  (29826):   int32_t aac-drc-boost-level = 127
D/CCodec  (29826):   int32_t aac-drc-cut-level = 127
D/CCodec  (29826):   int32_t aac-drc-effect-type = 3
D/CCodec  (29826):   int32_t aac-drc-heavy-compression = 3
D/CCodec  (29826):   int32_t aac-encoded-target-level = -1
D/CCodec  (29826):   int32_t aac-max-output-channel_count = 8
D/CCodec  (29826):   int32_t aac-target-ref-level = 64
D/CCodec  (29826):   int32_t channel-count = 6
D/CCodec  (29826):   int32_t level = 0
D/CCodec  (29826):   int32_t max-input-size = 8192
D/CCodec  (29826):   string mime = "audio/mp4a-latm"
D/CCodec  (29826):   int32_t profile = 2
D/CCodec  (29826):   int32_t sample-rate = 48000
D/CCodec  (29826): } and output: AMessage(what = 0x00000000) = {
D/CCodec  (29826):   int32_t aac-drc-album-mode = 0
D/CCodec  (29826):   int32_t aac-drc-boost-level = 127
D/CCodec  (29826):   int32_t aac-drc-cut-level = 127
D/CCodec  (29826):   int32_t aac-drc-effect-type = 3
D/CCodec  (29826):   int32_t aac-drc-heavy-compression = 3
D/CCodec  (29826):   int32_t aac-drc-output-loudness = -1
D/CCodec  (29826):   int32_t aac-encoded-target-level = -1
D/CCodec  (29826):   int32_t aac-max-output-channel_count = 8
D/CCodec  (29826):   int32_t aac-target-ref-level = 64
D/CCodec  (29826):   int32_t channel-count = 6
D/CCodec  (29826):   string mime = "audio/raw"
D/CCodec  (29826):   int32_t sample-rate = 48000
D/CCodec  (29826): }
W/Codec2Client(29826): query -- param skipped: index = 1342179345.
W/Codec2Client(29826): query -- param skipped: index = 2415921170.
W/Codec2Client(29826): query -- param skipped: index = 1610614798.
E/FMQ     (29826): grantorIdx must be less than 3
E/FMQ     (29826): grantorIdx must be less than 3
D/CCodecBufferChannel(29826): [c2.android.aac.decoder#679] Created input block pool with allocatorID 16 => poolID 17 - OK (0)
I/CCodecBufferChannel(29826): [c2.android.aac.decoder#679] Created output block pool with allocatorID 16 => poolID 41 - OK
D/CCodecBufferChannel(29826): [c2.android.aac.decoder#679] Configured output block pool ids 41 => OK
E/ion     (29826): ioctl c0044901 failed with code -1: Inappropriate ioctl for device
E/FMQ     (29826): grantorIdx must be less than 3
E/FMQ     (29826): grantorIdx must be less than 3
D/CCodecConfig(29826): c2 config diff is   c2::i32 coding.drc.compression-mode.value = 1
D/CCodecBuffers(29826): [c2.android.aac.decoder#679:Output[N]] popFromStashAndRegister: output format changed to AMessage(what = 0x00000000) = {
D/CCodecBuffers(29826):   int32_t aac-drc-album-mode = 0
D/CCodecBuffers(29826):   int32_t aac-drc-boost-level = 127
D/CCodecBuffers(29826):   int32_t aac-drc-cut-level = 127
D/CCodecBuffers(29826):   int32_t aac-drc-effect-type = 3
D/CCodecBuffers(29826):   int32_t aac-drc-heavy-compression = 1
D/CCodecBuffers(29826):   int32_t aac-drc-output-loudness = -1
D/CCodecBuffers(29826):   int32_t aac-encoded-target-level = -1
D/CCodecBuffers(29826):   int32_t aac-max-output-channel_count = 8
D/CCodecBuffers(29826):   int32_t aac-target-ref-level = 64
D/CCodecBuffers(29826):   int32_t channel-count = 6
D/CCodecBuffers(29826):   string mime = "audio/raw"
D/CCodecBuffers(29826):   int32_t sample-rate = 48000
D/CCodecBuffers(29826): }
D/BufferPoolAccessor2.0(29826): bufferpool2 0xf2348b58 : 6(49152 size) total buffers - 5(40960 size) used buffers - 1/7 (recycle/alloc) - 10/25 (fetch/transfer)
D/BufferPoolAccessor2.0(29826): evictor expired: 1, evicted: 1

@anharu2394
Copy link
Owner

@MilotH2 which video do you use on example app ?

@MilotH2
Copy link
Author

MilotH2 commented Feb 10, 2022

@MilotH2 which video do you use on example app ?

Sorry, I gave up on that process. Couldn't make it work then. thanks for commenting back.

@haziq0290
Copy link

What other solution you use @MilotH2. Basically i need only Color filters for video.

@MilotH2
Copy link
Author

MilotH2 commented Feb 14, 2022

What other solution you use @MilotH2. Basically i need only Color filters for video.

I stopped working on the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants