Open MilotH2 opened 3 years ago
Having same issue, any updates here? Thank you
Need same thing, have you got any solution for this?
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
@MilotH2 which video do you use on example app ?
@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.
What other solution you use @MilotH2. Basically i need only Color filters for video.
What other solution you use @MilotH2. Basically i need only Color filters for video.
I stopped working on the project.
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
and the inspect is giving the following error:
I Also tried with the example on the pub.dev, but still with the same issue the app crashes and gives these errors: