AbedElazizShe / light_compressor

A powerful and easy-to-use video compression plugin for Flutter.
MIT License
59 stars 32 forks source link

this plugin not compressing 4k videos of resolution 3840 × 2160 and giving exception in android. working fine in ios #36

Open Sayedmdkaif opened 1 year ago

Sayedmdkaif commented 1 year ago

This is the original video which i am try to compress

I/flutter ( 1799): VideoCompress: You can try to subscribe to the I/flutter ( 1799): compressProgress$ stream to know the compressing state. D/MPEG4Writer( 1799): PreAllocation enabled I/DefaultVideoStrategy( 1799): Input width&height: 3840x2160 I/DefaultVideoStrategy( 1799): Output width&height: 1136x640 V/Engine ( 1799): Duration (us): 4501000 V/Engine ( 1799): new step: 0 D/MediaCodecList( 1799): codecHandlesFormat: no format, so no extra checks D/MediaCodecList( 1799): codecHandlesFormat: no format, so no extra checks I/MediaCodec( 1799): (0xb4000070debcb740) init name(c2.android.aac.encoder) D/CCodec ( 1799): allocate(c2.android.aac.encoder) I/CCodec ( 1799): setting up 'default' as default (vendor) store I/CCodec ( 1799): Created component [c2.android.aac.encoder] D/CCodecConfig( 1799): read media type: audio/mp4a-latm D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig( 1799): query failed after returning 9 values (BAD_INDEX) D/CCodecConfig( 1799): c2 config diff is Dict { D/CCodecConfig( 1799): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 1799): c2::u32 coded.pl.level = 0 D/CCodecConfig( 1799): c2::u32 coded.pl.profile = 8192 D/CCodecConfig( 1799): c2::u32 coding.aac-sbr-mode.value = 3 D/CCodecConfig( 1799): c2::u32 input.buffers.max-size.value = 2048 D/CCodecConfig( 1799): c2::u32 input.delay.value = 0 D/CCodecConfig( 1799): string input.media-type.value = "audio/raw" D/CCodecConfig( 1799): string output.media-type.value = "audio/mp4a-latm" D/CCodecConfig( 1799): c2::u32 raw.channel-count.value = 1 D/CCodecConfig( 1799): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig( 1799): } I/MediaCodec( 1799): (0xb4000070debcb740) Component Allocated (c2.android.aac.encoder) I/MediaCodec( 1799): (0xb4000070debcb740) configure surface(0x0) crypto(0x0) flags(1) D/MediaCodec( 1799): (0xb4000070debcb740) configure format: AMessage(what = 0x00000000) = { D/MediaCodec( 1799): int32_t sample-rate = 48000 D/MediaCodec( 1799): string mime = "audio/mp4a-latm" D/MediaCodec( 1799): int32_t channel-count = 2 D/MediaCodec( 1799): int32_t bitrate = 1152000 D/MediaCodec( 1799): int32_t aac-profile = 2 D/MediaCodec( 1799): } D/MediaCodec( 1799): shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = { D/MediaCodec( 1799): } D/CCodec ( 1799): [c2.android.aac.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 1799): no c2 equivalents for flags D/CCodecConfig( 1799): no c2 equivalents for encoder D/CCodecConfig( 1799): c2 config diff is c2::u32 coded.bitrate.value = 1152000 D/CCodecConfig( 1799): c2::u32 raw.channel-count.value = 2 D/CCodecConfig( 1799): c2::u32 raw.sample-rate.value = 48000 W/Codec2Client( 1799): query -- param skipped: index = 1107298332. D/CCodec ( 1799): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 1799): int32_t sample-rate = 48000 D/CCodec ( 1799): int32_t channel-count = 2 D/CCodec ( 1799): int32_t max-input-size = 4096 D/CCodec ( 1799): string mime = "audio/raw" D/CCodec ( 1799): int32_t android._config-pcm-encoding = 2 D/CCodec ( 1799): } D/CCodec ( 1799): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 1799): int32_t sample-rate = 48000 D/CCodec ( 1799): int32_t bitrate = 1152000 D/CCodec ( 1799): int32_t channel-count = 2 D/CCodec ( 1799): int32_t level = 0 D/CCodec ( 1799): int32_t max-bitrate = 1152000 D/CCodec ( 1799): string mime = "audio/mp4a-latm" D/CCodec ( 1799): int32_t profile = 2 D/CCodec ( 1799): } I/CCodecConfig( 1799): query failed after returning 9 values (BAD_INDEX) D/CCodecConfig( 1799): c2 config diff is c2::u32 input.buffers.max-size.value = 4096 I/MediaCodec( 1799): (0xb4000070debcb740) start W/Codec2Client( 1799): query -- param skipped: index = 1342179345. W/Codec2Client( 1799): query -- param skipped: index = 2415921170. W/Codec2Client( 1799): query -- param skipped: index = 3254792206. W/Codec2Client( 1799): query -- param skipped: index = 3254792194. D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ec695c8 : 1(3133440 size) total buffers - 1(3133440 size) used buffers - 18/23 (recycle/alloc) - 5/24 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ec74c78 : 2(6266880 size) total buffers - 2(6266880 size) used buffers - 19/26 (recycle/alloc) - 7/27 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ebdbdd8 : 0(0 size) total buffers - 0(0 size) used buffers - 19/32 (recycle/alloc) - 13/32 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ec76f28 : 0(0 size) total buffers - 0(0 size) used buffers - 24/37 (recycle/alloc) - 13/37 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706eb84478 : 0(0 size) total buffers - 0(0 size) used buffers - 40/50 (recycle/alloc) - 10/51 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ec7c958 : 0(0 size) total buffers - 0(0 size) used buffers - 87/99 (recycle/alloc) - 12/100 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706eb856f8 : 0(0 size) total buffers - 0(0 size) used buffers - 130/144 (recycle/alloc) - 14/144 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ecbf5b8 : 3(9400320 size) total buffers - 3(9400320 size) used buffers - 241/254 (recycle/alloc) - 15/249 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ec02748 : 4(32768 size) total buffers - 4(32768 size) used buffers - 384/395 (recycle/alloc) - 16/387 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ebb0818 : 3(9400320 size) total buffers - 3(9400320 size) used buffers - 332/342 (recycle/alloc) - 11/337 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ebd4a38 : 3(9400320 size) total buffers - 3(9400320 size) used buffers - 497/505 (recycle/alloc) - 10/499 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ec80eb8 : 4(32768 size) total buffers - 4(32768 size) used buffers - 576/582 (recycle/alloc) - 9/575 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ecf3198 : 4(16384 size) total buffers - 4(16384 size) used buffers - 1/5 (recycle/alloc) - 0/0 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ec2d178 : 4(32768 size) total buffers - 4(32768 size) used buffers - 1/6 (recycle/alloc) - 1/2 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706eb9d928 : 4(16384 size) total buffers - 4(16384 size) used buffers - 1/5 (recycle/alloc) - 0/0 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ece71a8 : 4(32768 size) total buffers - 4(32768 size) used buffers - 1/6 (recycle/alloc) - 1/2 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706eca2e28 : 4(16384 size) total buffers - 4(16384 size) used buffers - 1/5 (recycle/alloc) - 0/0 (fetch/transfer) D/BufferPoolAccessor2.0( 1799): bufferpool2 0xb40000706ec7d4e8 : 4(32768 size) total buffers - 4(32768 size) used buffers - 1/6 (recycle/alloc) - 1/2 (fetch/transfer) D/CCodecBufferChannel( 1799): [c2.android.aac.encoder#299] Created input block pool with allocatorID 16 => poolID 49 - OK (0) I/CCodecBufferChannel( 1799): [c2.android.aac.encoder#299] Created output block pool with allocatorID 16 => poolID 495 - OK D/CCodecBufferChannel( 1799): [c2.android.aac.encoder#299] Configured output block pool ids 495 => OK D/CCodecBufferChannel( 1799): [c2.android.aac.encoder#299] start: updating output delay 0 I/CCodecBufferChannel( 1799): pipelineRoom(3) is <= numClientBuffers(3). Not signalling any more buffers to client I/MediaCodec( 1799): (0xb4000070debcb740) kWhatStartCompleted D/CCodecBufferChannel( 1799): [c2.android.aac.encoder#299] sending CSD : output format changed to AMessage(what = 0x00000000) = { D/CCodecBufferChannel( 1799): int32_t sample-rate = 48000 D/CCodecBufferChannel( 1799): int32_t bitrate = 1152000 D/CCodecBufferChannel( 1799): int32_t channel-count = 2 D/CCodecBufferChannel( 1799): int32_t level = 0 D/CCodecBufferChannel( 1799): int32_t max-bitrate = 1152000 D/CCodecBufferChannel( 1799): string mime = "audio/mp4a-latm" D/CCodecBufferChannel( 1799): int32_t profile = 2 D/CCodecBufferChannel( 1799): Buffer csd-0 = { D/CCodecBufferChannel( 1799): 00000000: 11 90 .. D/CCodecBufferChannel( 1799): } D/CCodecBufferChannel( 1799): } D/MediaCodecList( 1799): codecHandlesFormat: no format, so no extra checks D/MediaCodecList( 1799): codecHandlesFormat: no format, so no extra checks I/MediaCodec( 1799): (0xb4000070deba44d0) init name(c2.android.aac.decoder) D/CCodec ( 1799): allocate(c2.android.aac.decoder) I/CCodec ( 1799): setting up 'default' as default (vendor) store I/CCodec ( 1799): Created component [c2.android.aac.decoder] D/CCodecConfig( 1799): read media type: audio/mp4a-latm D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig( 1799): query failed after returning 19 values (BAD_INDEX) D/CCodecConfig( 1799): c2 config diff is Dict { D/CCodecConfig( 1799): c2::u32 coded.aac-packaging.value = 0 D/CCodecConfig( 1799): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 1799): c2::u32 coded.pl.level = 0 D/CCodecConfig( 1799): c2::u32 coded.pl.profile = 8192 D/CCodecConfig( 1799): c2::i32 coding.drc.album-mode.value = 0 D/CCodecConfig( 1799): c2::float coding.drc.attenuation-factor.value = 1 D/CCodecConfig( 1799): c2::float coding.drc.boost-factor.value = 1 D/CCodecConfig( 1799): c2::i32 coding.drc.compression-mode.value = 3 D/CCodecConfig( 1799): c2::i32 coding.drc.effect-type.value = 3 D/CCodecConfig( 1799): c2::float coding.drc.encoded-level.value = 0.25 D/CCodecConfig( 1799): c2::float coding.drc.reference-level.value = -16 D/CCodecConfig( 1799): c2::u32 input.buffers.max-size.value = 8192 D/CCodecConfig( 1799): c2::u32 input.delay.value = 0 D/CCodecConfig( 1799): string input.media-type.value = "audio/mp4a-latm" D/CCodecConfig( 1799): c2::u32 output.delay.value = 2 D/CCodecConfig( 1799): c2::float output.drc.output-loudness.value = 0.25 D/CCodecConfig( 1799): string output.media-type.value = "audio/raw" D/CCodecConfig( 1799): c2::u32 raw.channel-count.value = 1 D/CCodecConfig( 1799): c2::u32 raw.max-channel-count.value = 8 D/CCodecConfig( 1799): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig( 1799): } I/MediaCodec( 1799): (0xb4000070deba44d0) Component Allocated (c2.android.aac.decoder) I/MediaCodec( 1799): (0xb4000070deba44d0) configure surface(0x0) crypto(0x0) flags(0) D/MediaCodec( 1799): (0xb4000070deba44d0) configure format: AMessage(what = 0x00000000) = { D/MediaCodec( 1799): int32_t max-bitrate = 259456 D/MediaCodec( 1799): int32_t sample-rate = 48000 D/MediaCodec( 1799): int32_t track-id = 2 D/MediaCodec( 1799): string mime = "audio/mp4a-latm" D/MediaCodec( 1799): int32_t profile = 2 D/MediaCodec( 1799): string language = "und" D/MediaCodec( 1799): int32_t aac-profile = 2 D/MediaCodec( 1799): int32_t encoder-delay = 0 D/MediaCodec( 1799): int64_t durationUs = 4501333 D/MediaCodec( 1799): int32_t channel-count = 2 D/MediaCodec( 1799): int32_t encoder-padding = 64 D/MediaCodec( 1799): int32_t max-input-size = 696 D/MediaCodec( 1799): Buffer csd-0 = { D/MediaCodec( 1799): 00000000: 11 90 .. D/MediaCodec( 1799): } D/MediaCodec( 1799): } D/CCodec ( 1799): [c2.android.aac.decoder] buffers are bound to CCodec for this session D/CCodecConfig( 1799): no c2 equivalents for track-id D/CCodecConfig( 1799): no c2 equivalents for language D/CCodecConfig( 1799): no c2 equivalents for encoder-delay D/CCodecConfig( 1799): no c2 equivalents for durationUs D/CCodecConfig( 1799): no c2 equivalents for encoder-padding D/CCodecConfig( 1799): no c2 equivalents for flags D/CCodecConfig( 1799): config failed => CORRUPTED D/CCodecConfig( 1799): c2 config diff is c2::u32 raw.channel-count.value = 2 D/CCodecConfig( 1799): c2::u32 raw.sample-rate.value = 48000 W/Codec2Client( 1799): query -- param skipped: index = 1107298332. D/CCodec ( 1799): client requested max input size 696, which is smaller than what component recommended (8192); overriding with component recommendation. W/CCodec ( 1799): 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 ( 1799): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 1799): int32_t aac-drc-album-mode = 0 D/CCodec ( 1799): int32_t aac-drc-boost-level = 127 D/CCodec ( 1799): int32_t aac-drc-cut-level = 127 D/CCodec ( 1799): int32_t aac-drc-effect-type = 3 D/CCodec ( 1799): int32_t aac-encoded-target-level = -1 D/CCodec ( 1799): int32_t aac-max-output-channel_count = 8 D/CCodec ( 1799): int32_t aac-target-ref-level = 64 D/CCodec ( 1799): int32_t bitrate = 64000 D/CCodec ( 1799): int32_t channel-count = 2 D/CCodec ( 1799): int32_t level = 0 D/CCodec ( 1799): int32_t max-input-size = 8192 D/CCodec ( 1799): string mime = "audio/mp4a-latm" D/CCodec ( 1799): int32_t profile = 2 D/CCodec ( 1799): int32_t sample-rate = 48000 D/CCodec ( 1799): } D/CCodec ( 1799): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 1799): int32_t aac-drc-album-mode = 0 D/CCodec ( 1799): int32_t aac-drc-boost-level = 127 D/CCodec ( 1799): int32_t aac-drc-cut-level = 127 D/CCodec ( 1799): int32_t aac-drc-effect-type = 3 D/CCodec ( 1799): int32_t aac-drc-output-loudness = -1 D/CCodec ( 1799): int32_t aac-encoded-target-level = -1 D/CCodec ( 1799): int32_t aac-max-output-channel_count = 8 D/CCodec ( 1799): int32_t aac-target-ref-level = 64 D/CCodec ( 1799): int32_t channel-count = 2 D/CCodec ( 1799): string mime = "audio/raw" D/CCodec ( 1799): int32_t sample-rate = 48000 D/CCodec ( 1799): int32_t encoder-delay = 0 D/CCodec ( 1799): int32_t encoder-padding = 64 D/CCodec ( 1799): int32_t android._config-pcm-encoding = 2 D/CCodec ( 1799): } I/CCodecConfig( 1799): query failed after returning 19 values (BAD_INDEX) I/MediaCodec( 1799): (0xb4000070deba44d0) start W/Codec2Client( 1799): query -- param skipped: index = 1342179345. W/Codec2Client( 1799): query -- param skipped: index = 2415921170. W/Codec2Client( 1799): query -- param skipped: index = 1610614798. D/CCodecBufferChannel( 1799): [c2.android.aac.decoder#756] Created input block pool with allocatorID 16 => poolID 50 - OK (0) I/CCodecBufferChannel( 1799): [c2.android.aac.decoder#756] Created output block pool with allocatorID 16 => poolID 496 - OK D/CCodecBufferChannel( 1799): [c2.android.aac.decoder#756] Configured output block pool ids 496 => OK D/CCodecBufferChannel( 1799): [c2.android.aac.decoder#756] start: updating output delay 2 I/MediaCodec( 1799): (0xb4000070deba44d0) kWhatStartCompleted D/MediaCodecList( 1799): codecHandlesFormat: no format, so no extra checks D/MediaCodecList( 1799): codecHandlesFormat: no format, so no extra checks I/MediaCodec( 1799): (0xb4000070ded27cf0) init name(c2.qti.avc.encoder) D/CCodec ( 1799): allocate(c2.qti.avc.encoder) I/CCodec ( 1799): setting up 'default' as default (vendor) store I/CCodec ( 1799): Created component [c2.qti.avc.encoder] D/CCodecConfig( 1799): read media type: video/avc D/ReflectedParamUpdater( 1799): ignored struct field coding.gop.values D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: vendor.qti-ext-enc-info-metadata-cvp.reserved D/ReflectedParamUpdater( 1799): extent() != 1 for single value type: output.buffers.pool-ids.values D/CCodecConfig( 1799): ignoring local param raw.color (0xc2001809) as it is already supported I/CCodecConfig( 1799): query failed after returning 23 values (BAD_INDEX) D/CCodecConfig( 1799): c2 config diff is Dict { D/CCodecConfig( 1799): c2::u32 algo.bitrate-mode.value = 3 D/CCodecConfig( 1799): c2::u32 algo.complexity.value = 0 D/CCodecConfig( 1799): c2::i32 algo.priority.value = 0 D/CCodecConfig( 1799): c2::float algo.rate.value = 30 D/CCodecConfig( 1799): c2::u32 algo.secure-mode.value = 0 D/CCodecConfig( 1799): c2::u32 coded.bitrate.value = 20000000 D/CCodecConfig( 1799): c2::float coded.frame-rate.value = 30 D/CCodecConfig( 1799): c2::u32 coded.pl.level = 0 D/CCodecConfig( 1799): c2::u32 coded.pl.profile = 20484 D/CCodecConfig( 1799): c2::u32 coded.vui.color.matrix = 255 D/CCodecConfig( 1799): c2::u32 coded.vui.color.primaries = 0 D/CCodecConfig( 1799): c2::u32 coded.vui.color.range = 0 D/CCodecConfig( 1799): c2::u32 coded.vui.color.transfer = 255 D/CCodecConfig( 1799): c2::u32 coding.intra-refresh.mode = 0 D/CCodecConfig( 1799): c2::float coding.intra-refresh.period = 0 D/CCodecConfig( 1799): c2::u32 coding.request-sync-frame.value = 0 D/CCodecConfig( 1799): c2::i64 coding.sync-frame-interval.value = 1000000 D/CCodecConfig( 1799): Buffer coding.temporal-layering = { D/CCodecConfig( 1799): 00000000: 10 00 00 00 07 20 01 52 00 00 00 00 00 00 00 00 ..... .R........ D/CCodecConfig( 1799): } D/CCodecConfig( 1799): c2::u32 default.color.matrix = 0 D/CCodecConfig( 1799): c2::u32 default.color.primaries = 0 D/CCodecConfig( 1799): c2::u32 default.color.range = 0 D/CCodecConfig( 1799): c2::u32 default.color.transfer = 0 D/CCodecConfig( 1799): c2::u32 input.delay.value = 0 D/CCodecConfig( 1799): string input.media-type.value = "v W/ColorUtils( 1799): expected specified color aspects (0:0:255:255) I/MediaCodec( 1799): (0xb4000070ded27cf0) Component Allocated (c2.qti.avc.encoder) I/MediaCodec( 1799): (0xb4000070ded27cf0) configure surface(0x0) crypto(0x0) flags(1) D/MediaCodec( 1799): (0xb4000070ded27cf0) configure format: AMessage(what = 0x00000000) = { D/MediaCodec( 1799): int32_t color-format = 2130708361 D/MediaCodec( 1799): float i-frame-interval = 3.000000 D/MediaCodec( 1799): string mime = "video/avc" D/MediaCodec( 1799): int32_t width = 1136 D/MediaCodec( 1799): int32_t bitrate = 2442854 D/MediaCodec( 1799): int32_t rotation-degrees = 0 D/MediaCodec( 1799): int32_t frame-rate = 24 D/MediaCodec( 1799): int32_t height = 640 D/MediaCodec( 1799): } D/VQApply ( 1799): minquality: requested QP unsupported, boost bitrate 2442854 by 488570 D/VQApply ( 1799): minquality: bitrate increase clamped at ceiling 2862720 D/VQApply ( 1799): minquality/target bitrate raised from 2442854 to 2862720 bps D/MediaCodec( 1799): shapeMediaFormat: deltas(2): AMessage(what = 0x00000000) = { D/MediaCodec( 1799): int32_t bitrate = 2862720 D/MediaCodec( 1799): int32_t android._encoding-quality-level = 0 D/MediaCodec( 1799): } D/CCodec ( 1799): [c2.qti.avc.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 1799): no c2 equivalents for color-format D/CCodecConfig( 1799): no c2 equivalents for flags D/CCodecConfig( 1799): no c2 equivalents for encoder D/CCodecConfig( 1799): c2 config diff is c2::u32 coded.bitrate.value = 2862720 D/CCodecConfig( 1799): c2::float coded.frame-rate.value = 24 D/CCodecConfig( 1799): c2::i64 coding.sync-frame-interval.value = 3000000 D/CCodecConfig( 1799): c2::u32 raw.pixel-format.value = 34 D/CCodecConfig( 1799): c2::u32 raw.size.height = 640 D/CCodecConfig( 1799): c2::u32 raw.size.width = 1136 W/ColorUtils( 1799): expected specified color aspects (0:0:255:255) W/Codec2Client( 1799): query -- param skipped: index = 3254781982. D/CCodec ( 1799): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 1799): int32_t android._color-format = 2130708361 D/CCodec ( 1799): Rect crop(0, 0, 1135, 639) D/CCodec ( 1799): int32_t color-standard = 130816 D/CCodec ( 1799): int32_t color-range = 0 D/CCodec ( 1799): int32_t color-transfer = 65791 D/CCodec ( 1799): int32_t width = 1136 D/CCodec ( 1799): int32_t android._dataspace = 12648448 D/CCodec ( 1799): int32_t feature-secure-playback = 0 D/CCodec ( 1799): int32_t frame-rate = 24 D/CCodec ( 1799): int32_t height = 640 D/CCodec ( 1799): int32_t intra-refresh-period = 0 D/CCodec ( 1799): string mime = "video/raw" D/CCodec ( 1799): int32_t prepend-sps-pps-to-idr-frames = 0 D/CCodec ( 1799): int32_t priority = 0 D/CCodec ( 1799): Buffer hdr-static-info = { D/CCodec ( 1799): 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ D/CCodec ( 1799): 00000010: 00 00 00 00 00 00 00 00 00 ......... D/CCodec ( 1799): } D/CCodec ( 1799): int64_t android._C2MemoryUsage = 0 D/CCodec ( 1799): int32_t color-format = 2130708361 D/CCodec ( 1799): } D/CCodec ( 1799): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 1799): int32_t bitrate = 2862720 D/CCodec ( 1799): int32_t bitrate-mode = 1 D/CCodec ( 1799): Rect crop(0, 0, 1135, 639) D/CCodec ( 1799): int32_t width = 1136 D/CCodec ( 1799): int32_t color-standard = 130816 D/CCodec ( 1799): int32_t color-range = 0 D/CCodec ( 1799): int32_t color-transfer = 65791 D/CCodec ( 1799): int32_t feature-secure-playback = 0 D/CCodec ( 1799): int32_t frame-rate = 24 D/CCodec ( 1799): int32_t height = 640 D/CCodec ( 1799): int32_t intra-refresh-period = 0 D/CCodec ( 1799): int32_t max-bitrate = 2862720 D/CCodec ( 1799): string mime = "video/avc" D/CCodec ( 1799): int32_t prepend-sps-pps-to-idr-frames = 0 D/CCodec ( 1799): int32_t priority = 0 D/CCodec ( 1799): int32_t profile = 8 D/CCodec ( 1799): } I/CCodecConfig( 1799): query failed after returning 23 values (BAD_INDEX) D/CCodec ( 1799): input format changed to AMessage(what = 0x00000000) = { D/CCodec ( 1799): int32_t android._color-format = 2130708361 D/CCodec ( 1799): Rect crop(0, 0, 1135, 639) D/CCodec ( 1799): int32_t color-standard = 1 D/CCodec ( 1799): int32_t color-range = 2 D/CCodec ( 1799): int32_t color-transfer = 3 D/CCodec ( 1799): int32_t width = 1136 D/CCodec ( 1799): int32_t android._dataspace = 260 D/CCodec ( 1799): int32_t feature-secure-playback = 0 D/CCodec ( 1799): int32_t frame-rate = 24 D/CCodec ( 1799): int32_t height = 640 D/CCodec ( 1799): int32_t intra-refresh-period = 0 D/CCodec ( 1799): string mime = "video/raw" D/CCodec ( 1799): int32_t prepend-sps-pps-to-idr-frames = 0 D/CCodec ( 1799): int32_t priority = 0 D/CCodec ( 1799): Buffer hdr-static-info = { D/CCodec ( 1799): 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ D/CCodec ( 1799): 00000010: 00 00 00 00 00 00 00 00 00 ......... D/CCodec ( 1799): } D/CCodec ( 1799): int64_t android._C2MemoryUsage = 0 D/CCodec ( 1799): int32_t color-format = 2130708361 D/CCodec ( 1799): } D/GraphicBufferSource( 1799): setting dataspace: 0x104, acquired=0 D/CCodec ( 1799): ISConfig not changed I/MediaCodec( 1799): (0xb4000070ded27cf0) start E/MediaCodec( 1799): Codec reported err 0xfffffff4, actionCode 0, while in state 5/STARTING D/MPEG4Writer( 1799): reset() D/MPEG4Writer( 1799): release() D/MPEG4Writer( 1799): ftruncate mPreAllocateFileEndOffset:0 mOffset:0 mMdatEndOffset:0 diff:0 D/MPEG4Writer( 1799): final fsync() takes 5 ms, file size 0 E/Transcoder( 1799): Fatal error while transcoding, this might be invalid format or bug in engine or Android. E/Transcoder( 1799): android.media.MediaCodec$CodecException: start failed E/Transcoder( 1799): at android.media.MediaCodec.native_start(Native Method) E/Transcoder( 1799): at android.media.MediaCodec.start(MediaCodec.java:2284) E/Transcoder( 1799): at com.otaliastudios.transcoder.transcode.BaseTrackTranscoder.onStartEncoder(BaseTrackTranscoder.java:96) E/Transcoder( 1799): at com.otaliastudios.transcoder.transcode.VideoTrackTranscoder.onStartEncoder(VideoTrackTranscoder.java:80) E/Transcoder( 1799): at com.otaliastudios.transcoder.transcode.BaseTrackTranscoder.setUp(BaseTrackTranscoder.java:64) E/Transcoder( 1799): at com.otaliastudios.transcoder.engine.Engine.openCurrentStep(Engine.java:194) E/Transcoder( 1799): at com.otaliastudios.transcoder.engine.Engine.getCurrentTrackTranscoder(Engine.java:223) E/Transcoder( 1799): at com.otaliastudios.transcoder.engine.Engine.transcode(Engine.java:371) E/Transcoder( 1799): at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:150) E/Transcoder( 1799): at com.otaliastudios.transcoder.Transcoder$1.call(Transcoder.java:140) E/Transcoder( 1799): at java.util.concurrent.FutureTask.run(FutureTask.java:264) E/Transcoder( 1799): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137) E/Transcoder( 1799): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637) E/Transcoder( 1799): at java.lang.Thread.run(Thread.java:1012) E/flutter ( 1799): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Null check operator used on a null value E/flutter ( 1799): #0 _ImageTitleScreenState.compress2 (package:visi_flutter/screen/ImageTitleScreen.dart:125:36) E/flutter ( 1799): E/flutter ( 1799):

[✓] Flutter (Channel stable, 3.3.10, on macOS 11.6.1 20G224 darwin-x64, locale en-GB) • Flutter version 3.3.10 on channel stable at /Volumes/SSDDATADRIVE/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 135454af32 (5 weeks ago), 2022-12-15 07:36:55 -0800 • Engine revision 3316dd8728 • Dart version 2.18.6 • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/kaif/Library/Android/sdk • Platform android-33, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.0) • Xcode at /Volumes/data drive/Xcode.app/Contents/Developer • Build 13A233 • CocoaPods version 1.11.3

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2020.3) • Android Studio at /Applications/Android Studio.app/Contents • 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.10+0-b96-7281165)

[✓] Connected device (3 available) • moto g51 5G (mobile) • ZD2223CPD7 • android-arm64 • Android 12 (API 31) • macOS (desktop) • macos • darwin-x64 • macOS 11.6.1 20G224 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 108.0.5359.124

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

• No issues found! kaif@naveennagi-iMac ~ %