apivideo / api.video-flutter-live-stream

Flutter RTMP live stream client. Made with ♥ by api.video
MIT License
62 stars 37 forks source link

Example code cannot play RTMP streams to local server #22

Closed etrigan21 closed 1 year ago

etrigan21 commented 1 year ago

Describe the bug When using the example code from pub dev, the app doesn't publish rtmp stream to the server. To Reproduce Steps to reproduce the behavior:

  1. Clone the repository
  2. Install the example on a local device
  3. Set the RTMP endpoint as rtmp://192.168.1.21:1935/live and stream key as test

Expected behavior

Stream doesn't continue and gives the following:

I/ExtendedACodec(20339): string mime = "video/avc" I/ExtendedACodec(20339): int32_t width = 240 I/ExtendedACodec(20339): int32_t bitrate = 2000000 I/ExtendedACodec(20339): int32_t frame-rate = 30 I/ExtendedACodec(20339): int32_t height = 352 I/ExtendedACodec(20339): int32_t android._encoding-quality-level = 0 I/ExtendedACodec(20339): int32_t flags = 1 I/ExtendedACodec(20339): int32_t encoder = 1 I/ExtendedACodec(20339): } W/OMXUtils(20339): do not know color format 0x7f000789 = 2130708361

Smartphone (please complete the following information):

ThibaultBee commented 1 year ago

Hi,

I guess you already double check your configuration and the fact that your device can reach "192.168.1.21". What local server do you use?

The traces you copied/pasted are not relevant because it is something that video encoders always display and it is not an error. Could you get all traces (even the native one)?

etrigan21 commented 1 year ago

Hello,

I can publish RTMP streams using ffmpeg to the ossrs/srs servers running on my localhost. Also, the RTMP streams doesn't work to my cloud server using the public ipv4 address but it works great when publish rtmp streams to a server with a domain name.

Thank you for the fast reply. Below are the complete log when I try publishing to my localhost.

W/FlutterActivityAndFragmentDelegate( 4629): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps. Connecting to VM Service at ws://127.0.0.1:45745/7g1nGP5FkAU=/ws D/EGL_emulation( 4629): app_time_stats: avg=3141.96ms min=34.39ms max=6249.53ms count=2 I/CameraManagerGlobal( 4629): Connecting to camera service E/AudioCapture( 4629): Acoustic echo canceler is not available E/AudioCapture( 4629): Noise suppressor is not available E/AudioMediaCodecEncoder( 4629): createCodec: {sample-rate=44100, mime=audio/mp4a-latm, channel-count=2} D/CCodec ( 4629): allocate(c2.android.aac.encoder) I/Codec2Client( 4629): Available Codec2 services: "default" "software" I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.aac.encoder] D/CCodecConfig( 4629): read media type: audio/mp4a-latm D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 8192 D/CCodecConfig( 4629): c2::u32 coding.aac-sbr-mode.value = 3 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 2048 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "audio/raw" D/CCodecConfig( 4629): string output.media-type.value = "audio/mp4a-latm" D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 1 D/CCodecConfig( 4629): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig( 4629): } I/MediaCodec( 4629): MediaCodec will operate in async mode D/CodecSeeding( 4629): Seed: codec c2.android.aac.encoder, mediatype audio/mp4a-latm, overrideable 1 D/CodecProperties( 4629): setFeatureValue(_vq_eligible.device,1) D/CodecProperties( 4629): setFeatureValue(_quality.target,1) D/CodecSeeding( 4629): Seed: codec c2.android.aac.encoder, mediatype audio/mp4a-latm, overrideable 0 D/MediaCodec( 4629): shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.aac.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 128000 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 4096 D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 2 W/Codec2Client( 4629): query -- param skipped: index = 1107298332. D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t max-input-size = 4096 D/CCodec ( 4629): string mime = "audio/raw" D/CCodec ( 4629): int32_t android._config-pcm-encoding = 2 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t bitrate = 128000 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t level = 0 D/CCodec ( 4629): int32_t max-bitrate = 128000 D/CCodec ( 4629): string mime = "audio/mp4a-latm" D/CCodec ( 4629): int32_t profile = 2 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) E/VideoMediaCodecEncoder( 4629): createCodec: {mime=video/avc, width=720, height=1280} D/CCodec ( 4629): allocate(c2.android.avc.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.avc.encoder] D/CCodecConfig( 4629): read media type: video/avc D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): ignored struct field coding.gop.values D/ReflectedParamUpdater( 4629): ignored struct field coding.qp.values D/CCodecConfig( 4629): ignoring local param raw.color (0xc2001809) as it is already supported I/CCodecConfig( 4629): query failed after returning 12 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::i32 coded.average-qp.value = 0 D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 1 D/CCodecConfig( 4629): c2::u32 coded.picture-type.value = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20492 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 20481 D/CCodecConfig( 4629): c2::u32 coded.vui.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.range = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 coding.intra-refresh.mode = 0 D/CCodecConfig( 4629): c2::float coding.intra-refresh.period = 0 D/CCodecConfig( 4629): c2::u32 coding.request-sync-frame.value = 0 D/CCodecConfig( 4629): c2::i64 coding.sync-frame-interval.value = 1000000 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "video/raw" D/CCodecConfig( 4629): string output.media-type.value = "video/avc" D/CCodecConfig( 4629): c2::u32 raw.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 raw.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 raw.color.range = 0 D/CCodecConfig( 4629): c2::u32 raw.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 raw.size.height = 16 D/CCodecConfig( 4629): c2::u32 raw.size.width = 16 D/CCodecConfig( 4629): } W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) I/MediaCodec( 4629): MediaCodec will operate in async mode D/CodecSeeding( 4629): Seed: codec c2.android.avc.encoder, mediatype video/avc, overrideable 1 D/CodecProperties( 4629): setTuningValue(vq-target-bpp,0) D/CodecProperties( 4629): setTuningValue(vq-target-bpp-1080p,1.90) D/CodecProperties( 4629): setTuningValue(vq-target-bpp-720p,2.25) D/CodecProperties( 4629): setTuningValue(vq-target-bpp-540p,2.65) D/CodecProperties( 4629): setTuningValue(vq-target-bpp-480p,3.00) D/CodecProperties( 4629): setTuningValue(vq-target-bpp-320x240,0) D/CodecProperties( 4629): setTuningValue(vq-target-qpmax,-1) D/CodecProperties( 4629): setTuningValue(vq-target-qpmax-1080p,45) D/CodecProperties( 4629): setTuningValue(vq-target-qpmax-720p,43) D/CodecProperties( 4629): setTuningValue(vq-target-qpmax-540p,42) D/CodecProperties( 4629): setTuningValue(vq-target-qpmax-480p,38) D/CodecProperties( 4629): setTuningValue(vq-bitrate-phaseout,1.75) D/CodecProperties( 4629): setTuningValue(vq-boost-missing-qp,0.20) D/CodecProperties( 4629): setFeatureValue(intra-refresh,0) D/CodecProperties( 4629): setFeatureValue(qp-bounds,0) D/CodecProperties( 4629): setFeatureValue(_vq_eligible.device,1) D/CodecProperties( 4629): setFeatureValue(_quality.target,1) D/CodecSeeding( 4629): Seed: codec c2.android.avc.encoder, mediatype video/avc, overrideable 0 D/VQApply ( 4629): raise bitrate: configured 2000000 to floor 2073600 D/VQApply ( 4629): minquality by QP: inject video-qp-max=43 D/VQApply ( 4629): minquality/target bitrate raised from 2000000 to 2073600 bps D/MediaCodec( 4629): shapeMediaFormat: deltas(6): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): int32_t bitrate = 2073600 D/MediaCodec( 4629): int32_t android._encoding-quality-level = 0 D/MediaCodec( 4629): int32_t video-qp-max = 43 D/MediaCodec( 4629): int32_t video-qp-i-max = 43 D/MediaCodec( 4629): int32_t video-qp-p-max = 46 D/MediaCodec( 4629): int32_t video-qp-b-max = 49 D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.avc.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for color-format D/CCodecConfig( 4629): no c2 equivalents for video-qp-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-i-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-p-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-b-max D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 2073600 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 30 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20499 D/CCodecConfig( 4629): c2::u32 raw.size.height = 1280 D/CCodecConfig( 4629): c2::u32 raw.size.width = 720 W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 0 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t bitrate = 2073600 D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): int32_t level = 524288 D/CCodec ( 4629): int32_t max-bitrate = 2073600 D/CCodec ( 4629): string mime = "video/avc" D/CCodec ( 4629): int32_t profile = 65536 D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 13 values (BAD_INDEX) D/CCodec ( 4629): input format changed to AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 1 D/CCodec ( 4629): int32_t color-range = 2 D/CCodec ( 4629): int32_t color-transfer = 3 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 260 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/GraphicBufferSource( 4629): setting dataspace: 0x104, acquired=0 D/CCodec ( 4629): ISConfig not changed D/HostConnection( 4629): createUnique: call D/HostConnection( 4629): HostConnection::get() New Host Connection established 0x7f7f3370b210, tid 4717 D/HostConnection( 4629): 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_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 D/EGL_emulation( 4629): eglCreateContext: 0x7f7f3370a850: maj 2 min 0 rcv 2 D/EGL_emulation( 4629): eglMakeCurrent: 0x7f7f3370a850: ver 2 0 (tinfo 0x7f815a020280) (first time) E/EGL_emulation( 4629): eglQueryContext 32c0 EGL_BAD_ATTRIBUTE E/EGL_emulation( 4629): tid 4717: eglQueryContext(2122): error 0x3004 (EGL_BAD_ATTRIBUTE) D/EGL_emulation( 4629): app_time_stats: avg=27.38ms min=9.53ms max=245.37ms count=31 D/CameraController( 4629): [[15, 15], [5, 30], [15, 30], [30, 30]] D/CameraController( 4629): Selected Fps range [30, 30] I/NDOP ( 4629): listening using window listener D/EGL_emulation( 4629): app_time_stats: avg=30.70ms min=12.94ms max=86.18ms count=29 D/EGL_emulation( 4629): app_time_stats: avg=32.69ms min=20.89ms max=63.87ms count=29 D/EGL_emulation( 4629): app_time_stats: avg=30.23ms min=9.42ms max=60.31ms count=32 D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. W/Codec2Client( 4629): query -- param skipped: index = 3254792206. W/Codec2Client( 4629): query -- param skipped: index = 3254792194. D/C2Store ( 4629): Using DMABUF Heaps D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] Created input block pool with allocatorID 16 => poolID 17 - OK (0) I/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] Created output block pool with allocatorID 16 => poolID 26 - OK D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] Configured output block pool ids 26 => OK I/DMABUFHEAPS( 4629): Using DMA-BUF heap named: system D/EGL_emulation( 4629): eglMakeCurrent: 0x7f7f3370a850: ver 2 0 (tinfo 0x7f815a020080) (first time) D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#308] Using basic input block pool with poolID 1 => got 1 - OK (0) I/CCodecBufferChannel( 4629): [c2.android.avc.encoder#308] Created output block pool with allocatorID 16 => poolID 27 - OK D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#308] Configured output block pool ids 27 => OK I/flutter ( 4629): Connection succedded I/ ( 4629): Format changed : {max-bitrate=128000, sample-rate=44100, level=0, mime=audio/mp4a-latm, profile=2, channel-count=2, bitrate=128000, csd-0=java.nio.HeapByteBuffer[pos=0 lim=2 cap=2]} I/NDOP ( 4629): listening using window listener E/rtmpdroid( 4629): WriteN, RTMP send error 32 (136 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 32 (41 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) E/RtmpProducer( 4629): Error while writing packet to socket E/RtmpProducer( 4629): java.net.SocketException: Connection error E/RtmpProducer( 4629): at video.api.rtmpdroid.Rtmp.write(Rtmp.kt:125) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.ext.rtmp.internal.endpoints.RtmpProducer.write(RtmpProducer.kt:64) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$muxListener$1.onOutputFrame(BaseStreamer.kt:134) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.muxers.flv.FlvMuxer.encode(FlvMuxer.kt:55) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$audioEncoderListener$1.onOutputFrame(BaseStreamer.kt:100) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.encoders.MediaCodecEncoder$encoderCallback$1.onOutputBufferAvailable(MediaCodecEncoder.kt:89) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleCallback(MediaCodec.java:1854) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleMessage(MediaCodec.java:1752) E/RtmpProducer( 4629): at android.os.Handler.dispatchMessage(Handler.java:106) E/RtmpProducer( 4629): at android.os.Looper.loopOnce(Looper.java:201) E/RtmpProducer( 4629): at android.os.Looper.loop(Looper.java:288) E/RtmpProducer( 4629): at android.os.HandlerThread.run(HandlerThread.java:67) W/GraphicBufferSource( 4629): released unpopulated slots: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63] D/VideoMediaCodecEncoder( 4629): Not running D/AudioMediaCodecEncoder( 4629): Not running E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#423] MediaCodec discarded an unknown buffer I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/AudioMediaCodecEncoder( 4629): createCodec: {sample-rate=44100, mime=audio/mp4a-latm, channel-count=2} D/CCodec ( 4629): allocate(c2.android.aac.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.aac.encoder] D/CCodecConfig( 4629): read media type: audio/mp4a-latm D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 8192 D/CCodecConfig( 4629): c2::u32 coding.aac-sbr-mode.value = 3 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 2048 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "audio/raw" D/CCodecConfig( 4629): string output.media-type.value = "audio/mp4a-latm" D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 1 D/CCodecConfig( 4629): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig( 4629): } I/MediaCodec( 4629): MediaCodec will operate in async mode D/MediaCodec( 4629): shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.aac.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 128000 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 4096 D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 2 W/Codec2Client( 4629): query -- param skipped: index = 1107298332. D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t max-input-size = 4096 D/CCodec ( 4629): string mime = "audio/raw" D/CCodec ( 4629): int32_t android._config-pcm-encoding = 2 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t bitrate = 128000 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t level = 0 D/CCodec ( 4629): int32_t max-bitrate = 128000 D/CCodec ( 4629): string mime = "audio/mp4a-latm" D/CCodec ( 4629): int32_t profile = 2 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/VideoMediaCodecEncoder( 4629): createCodec: {mime=video/avc, width=720, height=1280} D/CCodec ( 4629): allocate(c2.android.avc.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.avc.encoder] D/CCodecConfig( 4629): read media type: video/avc D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): ignored struct field coding.gop.values D/ReflectedParamUpdater( 4629): ignored struct field coding.qp.values D/CCodecConfig( 4629): ignoring local param raw.color (0xc2001809) as it is already supported I/CCodecConfig( 4629): query failed after returning 12 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::i32 coded.average-qp.value = 0 D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 1 D/CCodecConfig( 4629): c2::u32 coded.picture-type.value = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20492 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 20481 D/CCodecConfig( 4629): c2::u32 coded.vui.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.range = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 coding.intra-refresh.mode = 0 D/CCodecConfig( 4629): c2::float coding.intra-refresh.period = 0 D/CCodecConfig( 4629): c2::u32 coding.request-sync-frame.value = 0 D/CCodecConfig( 4629): c2::i64 coding.sync-frame-interval.value = 1000000 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "video/raw" D/CCodecConfig( 4629): string output.media-type.value = "video/avc" D/CCodecConfig( 4629): c2::u32 raw.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 raw.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 raw.color.range = 0 D/CCodecConfig( 4629): c2::u32 raw.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 raw.size.height = 16 D/CCodecConfig( 4629): c2::u32 raw.size.width = 16 D/CCodecConfig( 4629): } W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) I/MediaCodec( 4629): MediaCodec will operate in async mode D/VQApply ( 4629): raise bitrate: configured 2000000 to floor 2073600 D/VQApply ( 4629): minquality by QP: inject video-qp-max=43 D/VQApply ( 4629): minquality/target bitrate raised from 2000000 to 2073600 bps D/MediaCodec( 4629): shapeMediaFormat: deltas(6): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): int32_t bitrate = 2073600 D/MediaCodec( 4629): int32_t android._encoding-quality-level = 0 D/MediaCodec( 4629): int32_t video-qp-max = 43 D/MediaCodec( 4629): int32_t video-qp-i-max = 43 D/MediaCodec( 4629): int32_t video-qp-p-max = 46 D/MediaCodec( 4629): int32_t video-qp-b-max = 49 D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.avc.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for color-format D/CCodecConfig( 4629): no c2 equivalents for video-qp-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-i-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-p-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-b-max D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 2073600 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 30 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20499 D/CCodecConfig( 4629): c2::u32 raw.size.height = 1280 D/CCodecConfig( 4629): c2::u32 raw.size.width = 720 W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 0 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t bitrate = 2073600 D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): int32_t level = 524288 D/CCodec ( 4629): int32_t max-bitrate = 2073600 D/CCodec ( 4629): string mime = "video/avc" D/CCodec ( 4629): int32_t profile = 65536 D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 13 values (BAD_INDEX) D/CCodec ( 4629): input format changed to AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 1 D/CCodec ( 4629): int32_t color-range = 2 D/CCodec ( 4629): int32_t color-transfer = 3 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 260 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/GraphicBufferSource( 4629): setting dataspace: 0x104, acquired=0 D/CCodec ( 4629): ISConfig not changed D/HostConnection( 4629): createUnique: call D/HostConnection( 4629): HostConnection::get() New Host Connection established 0x7f7f3370a610, tid 4717 D/HostConnection( 4629): 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_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 D/EGL_emulation( 4629): eglCreateContext: 0x7f7f33709ad0: maj 2 min 0 rcv 2 D/EGL_emulation( 4629): eglMakeCurrent: 0x7f7f33709ad0: ver 2 0 (tinfo 0x7f815a020280) (first time) I/NDOP ( 4629): listening using window listener D/EGL_emulation( 4629): app_time_stats: avg=28.59ms min=8.90ms max=117.24ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=29.78ms max=35.69ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.90ms min=30.45ms max=50.56ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.80ms min=28.24ms max=41.57ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=27.41ms min=16.46ms max=42.05ms count=33 D/BufferPoolAccessor2.0( 4629): bufferpool2 0x7f7f836f1ce8 : 0(0 size) total buffers - 0(0 size) used buffers - 7/12 (recycle/alloc) - 6/16 (fetch/transfer) D/BufferPoolAccessor2.0( 4629): evictor expired: 1, evicted: 1 D/EGL_emulation( 4629): app_time_stats: avg=32.58ms min=12.62ms max=51.34ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.10ms min=19.51ms max=47.59ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.18ms min=29.49ms max=35.96ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.91ms min=30.01ms max=51.77ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.36ms min=28.37ms max=37.63ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=30.10ms max=36.05ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.57ms min=15.78ms max=51.13ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.37ms min=29.69ms max=39.61ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.66ms min=15.17ms max=53.46ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=31.40ms max=35.16ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=22.99ms max=48.19ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.86ms min=29.89ms max=49.86ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.48ms min=16.35ms max=50.58ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.57ms min=25.01ms max=36.54ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.73ms max=35.11ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.63ms min=19.53ms max=50.02ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.24ms min=31.75ms max=34.16ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.79ms min=17.42ms max=50.74ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=31.37ms max=34.59ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.63ms min=18.92ms max=48.51ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=31.27ms max=35.28ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.92ms min=24.79ms max=50.79ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.44ms min=31.68ms max=36.61ms count=30 D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. W/Codec2Client( 4629): query -- param skipped: index = 3254792206. W/Codec2Client( 4629): query -- param skipped: index = 3254792194. D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] Created input block pool with allocatorID 16 => poolID 18 - OK (0) I/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] Created output block pool with allocatorID 16 => poolID 28 - OK D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] Configured output block pool ids 28 => OK D/BufferPoolAccessor2.0( 4629): bufferpool2 0x7f7f836f1ce8 : 0(0 size) total buffers - 0(0 size) used buffers - 7/12 (recycle/alloc) - 6/16 (fetch/transfer) D/BufferPoolAccessor2.0( 4629): Destruction - bufferpool2 0x7f7f836f1ce8 cached: 0/0M, 0/0% in use; allocs: 12, 58% recycled; transfers: 16, 63% unfetched D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#307] Using basic input block pool with poolID 1 => got 1 - OK (0) I/CCodecBufferChannel( 4629): [c2.android.avc.encoder#307] Created output block pool with allocatorID 16 => poolID 29 - OK D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#307] Configured output block pool ids 29 => OK I/flutter ( 4629): Connection succedded I/NDOP ( 4629): listening using window listener D/EGL_emulation( 4629): app_time_stats: avg=29.34ms min=15.57ms max=49.53ms count=32 I/ ( 4629): Format changed : {max-bitrate=128000, sample-rate=44100, level=0, mime=audio/mp4a-latm, profile=2, channel-count=2, bitrate=128000, csd-0=java.nio.HeapByteBuffer[pos=0 lim=2 cap=2]} E/rtmpdroid( 4629): WriteN, RTMP send error 32 (136 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 32 (41 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) E/RtmpProducer( 4629): Error while writing packet to socket E/RtmpProducer( 4629): java.net.SocketException: Connection error E/RtmpProducer( 4629): at video.api.rtmpdroid.Rtmp.write(Rtmp.kt:125) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.ext.rtmp.internal.endpoints.RtmpProducer.write(RtmpProducer.kt:64) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$muxListener$1.onOutputFrame(BaseStreamer.kt:134) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.muxers.flv.FlvMuxer.encode(FlvMuxer.kt:55) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$audioEncoderListener$1.onOutputFrame(BaseStreamer.kt:100) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.encoders.MediaCodecEncoder$encoderCallback$1.onOutputBufferAvailable(MediaCodecEncoder.kt:89) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleCallback(MediaCodec.java:1854) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleMessage(MediaCodec.java:1752) E/RtmpProducer( 4629): at android.os.Handler.dispatchMessage(Handler.java:106) E/RtmpProducer( 4629): at android.os.Looper.loopOnce(Looper.java:201) E/RtmpProducer( 4629): at android.os.Looper.loop(Looper.java:288) E/RtmpProducer( 4629): at android.os.HandlerThread.run(HandlerThread.java:67) W/GraphicBufferSource( 4629): released unpopulated slots: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63] D/VideoMediaCodecEncoder( 4629): Not running D/AudioMediaCodecEncoder( 4629): Not running I/NDOP ( 4629): listening using window listener E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#434] MediaCodec discarded an unknown buffer I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/AudioMediaCodecEncoder( 4629): createCodec: {sample-rate=44100, mime=audio/mp4a-latm, channel-count=2} D/CCodec ( 4629): allocate(c2.android.aac.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.aac.encoder] D/CCodecConfig( 4629): read media type: audio/mp4a-latm D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 8192 D/CCodecConfig( 4629): c2::u32 coding.aac-sbr-mode.value = 3 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 2048 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "audio/raw" D/CCodecConfig( 4629): string output.media-type.value = "audio/mp4a-latm" D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 1 D/CCodecConfig( 4629): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig( 4629): } I/MediaCodec( 4629): MediaCodec will operate in async mode D/MediaCodec( 4629): shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.aac.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 128000 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 4096 D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 2 W/Codec2Client( 4629): query -- param skipped: index = 1107298332. D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t max-input-size = 4096 D/CCodec ( 4629): string mime = "audio/raw" D/CCodec ( 4629): int32_t android._config-pcm-encoding = 2 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t bitrate = 128000 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t level = 0 D/CCodec ( 4629): int32_t max-bitrate = 128000 D/CCodec ( 4629): string mime = "audio/mp4a-latm" D/CCodec ( 4629): int32_t profile = 2 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/VideoMediaCodecEncoder( 4629): createCodec: {mime=video/avc, width=720, height=1280} D/CCodec ( 4629): allocate(c2.android.avc.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.avc.encoder] D/CCodecConfig( 4629): read media type: video/avc D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): ignored struct field coding.gop.values D/ReflectedParamUpdater( 4629): ignored struct field coding.qp.values D/CCodecConfig( 4629): ignoring local param raw.color (0xc2001809) as it is already supported I/CCodecConfig( 4629): query failed after returning 12 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::i32 coded.average-qp.value = 0 D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 1 D/CCodecConfig( 4629): c2::u32 coded.picture-type.value = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20492 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 20481 D/CCodecConfig( 4629): c2::u32 coded.vui.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.range = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 coding.intra-refresh.mode = 0 D/CCodecConfig( 4629): c2::float coding.intra-refresh.period = 0 D/CCodecConfig( 4629): c2::u32 coding.request-sync-frame.value = 0 D/CCodecConfig( 4629): c2::i64 coding.sync-frame-interval.value = 1000000 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "video/raw" D/CCodecConfig( 4629): string output.media-type.value = "video/avc" D/CCodecConfig( 4629): c2::u32 raw.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 raw.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 raw.color.range = 0 D/CCodecConfig( 4629): c2::u32 raw.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 raw.size.height = 16 D/CCodecConfig( 4629): c2::u32 raw.size.width = 16 D/CCodecConfig( 4629): } W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) I/MediaCodec( 4629): MediaCodec will operate in async mode D/VQApply ( 4629): raise bitrate: configured 2000000 to floor 2073600 D/VQApply ( 4629): minquality by QP: inject video-qp-max=43 D/VQApply ( 4629): minquality/target bitrate raised from 2000000 to 2073600 bps D/MediaCodec( 4629): shapeMediaFormat: deltas(6): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): int32_t bitrate = 2073600 D/MediaCodec( 4629): int32_t android._encoding-quality-level = 0 D/MediaCodec( 4629): int32_t video-qp-max = 43 D/MediaCodec( 4629): int32_t video-qp-i-max = 43 D/MediaCodec( 4629): int32_t video-qp-p-max = 46 D/MediaCodec( 4629): int32_t video-qp-b-max = 49 D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.avc.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for color-format D/CCodecConfig( 4629): no c2 equivalents for video-qp-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-i-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-p-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-b-max D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 2073600 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 30 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20499 D/CCodecConfig( 4629): c2::u32 raw.size.height = 1280 D/CCodecConfig( 4629): c2::u32 raw.size.width = 720 W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 0 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t bitrate = 2073600 D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): int32_t level = 524288 D/CCodec ( 4629): int32_t max-bitrate = 2073600 D/CCodec ( 4629): string mime = "video/avc" D/CCodec ( 4629): int32_t profile = 65536 D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 13 values (BAD_INDEX) D/CCodec ( 4629): input format changed to AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 1 D/CCodec ( 4629): int32_t color-range = 2 D/CCodec ( 4629): int32_t color-transfer = 3 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 260 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/GraphicBufferSource( 4629): setting dataspace: 0x104, acquired=0 D/CCodec ( 4629): ISConfig not changed D/HostConnection( 4629): createUnique: call D/HostConnection( 4629): HostConnection::get() New Host Connection established 0x7f7f3370aa90, tid 4717 D/HostConnection( 4629): 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_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 D/EGL_emulation( 4629): eglCreateContext: 0x7f7f3370b8d0: maj 2 min 0 rcv 2 D/EGL_emulation( 4629): eglMakeCurrent: 0x7f7f3370b8d0: ver 2 0 (tinfo 0x7f815a020280) (first time) D/EGL_emulation( 4629): app_time_stats: avg=28.43ms min=14.74ms max=45.49ms count=34 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=30.95ms max=36.29ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.77ms min=31.25ms max=51.00ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.41ms min=26.05ms max=42.32ms count=30 D/BufferPoolAccessor2.0( 4629): bufferpool2 0x7f7f83709a78 : 0(0 size) total buffers - 0(0 size) used buffers - 6/11 (recycle/alloc) - 5/12 (fetch/transfer) D/BufferPoolAccessor2.0( 4629): evictor expired: 1, evicted: 1 D/EGL_emulation( 4629): app_time_stats: avg=25.13ms min=10.25ms max=50.71ms count=35 D/BufferPoolAccessor2.0( 4629): evictor expired: 1, evicted: 0 D/EGL_emulation( 4629): app_time_stats: avg=33.36ms min=24.66ms max=49.50ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.88ms min=24.23ms max=49.03ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=30.77ms max=36.25ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=34.47ms min=31.43ms max=52.22ms count=29 D/EGL_emulation( 4629): app_time_stats: avg=33.22ms min=30.93ms max=36.74ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.91ms min=31.09ms max=50.84ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=30.26ms max=37.35ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.91ms min=32.55ms max=50.89ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.44ms min=22.09ms max=52.83ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.95ms min=28.33ms max=34.64ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.69ms min=13.79ms max=51.63ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.13ms min=15.71ms max=45.82ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.53ms min=19.02ms max=56.77ms count=27 D/EGL_emulation( 4629): app_time_stats: avg=32.86ms min=22.73ms max=46.68ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.45ms min=18.10ms max=51.29ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=31.94ms min=19.75ms max=46.69ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=23.14ms max=50.70ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.11ms min=16.21ms max=51.51ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.97ms min=26.03ms max=35.90ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=31.86ms max=35.90ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.63ms min=15.71ms max=48.49ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.37ms min=30.50ms max=37.26ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.38ms min=27.19ms max=46.24ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.25ms min=18.88ms max=48.23ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.63ms min=28.01ms max=48.92ms count=30 W/System ( 4629): A resource failed to call Surface.release. D/EGL_emulation( 4629): app_time_stats: avg=33.31ms min=31.18ms max=35.14ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.99ms min=31.53ms max=53.03ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.27ms min=31.57ms max=36.04ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=31.56ms max=35.62ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.85ms min=23.79ms max=47.35ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.89ms min=31.73ms max=51.99ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=31.16ms max=34.90ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.31ms min=31.55ms max=35.84ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.81ms min=21.01ms max=50.71ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=30.88ms max=35.80ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.90ms min=21.71ms max=49.96ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=31.68ms max=35.29ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.78ms min=26.04ms max=49.86ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=32.14ms max=34.82ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.63ms min=20.39ms max=49.64ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.53ms min=22.47ms max=49.35ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.22ms min=30.11ms max=35.01ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.71ms min=20.82ms max=52.05ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.26ms min=31.28ms max=34.90ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.20ms min=18.19ms max=48.75ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.79ms min=31.59ms max=51.18ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.41ms min=10.08ms max=50.89ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.92ms min=31.79ms max=51.16ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=31.24ms max=35.12ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.81ms min=31.28ms max=51.67ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=31.84ms max=34.48ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.93ms min=32.00ms max=51.79ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=32.01ms max=35.23ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.59ms min=25.54ms max=49.22ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=32.27ms max=34.45ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.95ms min=21.36ms max=49.23ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=29.41ms max=36.12ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.79ms min=30.73ms max=48.39ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.16ms min=23.70ms max=47.63ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=34.02ms min=31.11ms max=55.58ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=28.19ms max=38.61ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.08ms min=18.55ms max=48.60ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.08ms min=17.95ms max=42.31ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.96ms max=35.21ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.92ms min=32.18ms max=50.66ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=31.70ms max=35.53ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=30.60ms max=35.87ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.82ms min=29.31ms max=51.25ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=32.24ms max=34.45ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.77ms min=24.93ms max=52.33ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.79ms min=30.66ms max=48.60ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=18.46ms max=49.54ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.15ms min=29.22ms max=37.67ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.50ms min=15.29ms max=52.17ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.78ms min=23.26ms max=49.49ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.98ms max=34.24ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.72ms min=15.18ms max=52.50ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.31ms min=31.99ms max=35.23ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.80ms min=31.73ms max=48.15ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.55ms max=34.70ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.60ms min=26.61ms max=52.33ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=31.65ms max=35.32ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.81ms min=31.34ms max=47.61ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=31.95ms max=34.31ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.93ms min=32.51ms max=51.95ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=31.63ms max=35.16ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.77ms min=30.97ms max=47.34ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=31.53ms max=35.00ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.94ms min=28.42ms max=52.64ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=31.25ms max=35.30ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.80ms min=24.46ms max=48.22ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=30.18ms max=36.24ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.93ms min=31.69ms max=51.81ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.27ms min=20.73ms max=46.42ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.26ms min=24.00ms max=49.18ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.61ms min=19.22ms max=50.84ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=32.32ms max=34.67ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.36ms min=31.72ms max=34.96ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.89ms min=31.93ms max=49.73ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.80ms min=31.55ms max=47.87ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=30.30ms max=35.26ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.88ms min=22.01ms max=51.59ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=34.02ms min=31.51ms max=52.12ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.74ms min=14.89ms max=51.15ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=30.80ms max=35.74ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.92ms min=31.70ms max=51.53ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.78ms min=23.85ms max=47.73ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=34.39ms min=31.53ms max=63.87ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.93ms min=25.11ms max=52.96ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=31.55ms max=35.41ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.27ms min=19.16ms max=47.37ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.09ms min=20.48ms max=43.01ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.91ms min=30.53ms max=51.00ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.63ms max=34.52ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.83ms min=30.80ms max=48.58ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.28ms min=22.12ms max=44.39ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=31.78ms max=35.03ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.89ms min=27.70ms max=48.93ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=18.42ms max=49.22ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.62ms min=31.85ms max=41.92ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.93ms min=31.56ms max=51.68ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=27.92ms max=37.85ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.41ms min=16.59ms max=55.81ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.91ms min=31.94ms max=52.17ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=25.28ms max=42.45ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=30.70ms max=35.08ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.79ms min=31.67ms max=47.69ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.95ms min=32.37ms max=52.23ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=31.25ms max=34.84ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=18.69ms max=48.03ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=32.26ms max=34.62ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.82ms min=27.21ms max=51.56ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.31ms max=35.63ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.89ms min=30.93ms max=51.00ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.86ms min=29.68ms max=51.79ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=31.68ms max=35.88ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.72ms min=30.71ms max=47.85ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.92ms min=31.52ms max=47.21ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.01ms min=26.08ms max=53.22ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.24ms min=31.46ms max=36.53ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.40ms min=15.59ms max=49.88ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=29.64ms max=36.76ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.59ms min=17.33ms max=50.71ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.72ms min=31.85ms max=46.03ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.54ms min=26.22ms max=48.03ms count=30 D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. W/Codec2Client( 4629): query -- param skipped: index = 3254792206. W/Codec2Client( 4629): query -- param skipped: index = 3254792194. D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] Created input block pool with allocatorID 16 => poolID 19 - OK (0) I/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] Created output block pool with allocatorID 16 => poolID 30 - OK D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] Configured output block pool ids 30 => OK D/BufferPoolAccessor2.0( 4629): bufferpool2 0x7f7f83709a78 : 0(0 size) total buffers - 0(0 size) used buffers - 6/11 (recycle/alloc) - 5/12 (fetch/transfer) D/BufferPoolAccessor2.0( 4629): Destruction - bufferpool2 0x7f7f83709a78 cached: 0/0M, 0/0% in use; allocs: 11, 55% recycled; transfers: 12, 58% unfetched D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#776] Using basic input block pool with poolID 1 => got 1 - OK (0) I/CCodecBufferChannel( 4629): [c2.android.avc.encoder#776] Created output block pool with allocatorID 16 => poolID 31 - OK D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#776] Configured output block pool ids 31 => OK I/flutter ( 4629): Connection succedded I/NDOP ( 4629): listening using window listener I/ ( 4629): Format changed : {max-bitrate=128000, sample-rate=44100, level=0, mime=audio/mp4a-latm, profile=2, channel-count=2, bitrate=128000, csd-0=java.nio.HeapByteBuffer[pos=0 lim=2 cap=2]} E/rtmpdroid( 4629): WriteN, RTMP send error 32 (136 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 32 (41 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) E/RtmpProducer( 4629): Error while writing packet to socket E/RtmpProducer( 4629): java.net.SocketException: Connection error E/RtmpProducer( 4629): at video.api.rtmpdroid.Rtmp.write(Rtmp.kt:125) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.ext.rtmp.internal.endpoints.RtmpProducer.write(RtmpProducer.kt:64) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$muxListener$1.onOutputFrame(BaseStreamer.kt:134) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.muxers.flv.FlvMuxer.encode(FlvMuxer.kt:55) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$audioEncoderListener$1.onOutputFrame(BaseStreamer.kt:100) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.encoders.MediaCodecEncoder$encoderCallback$1.onOutputBufferAvailable(MediaCodecEncoder.kt:89) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleCallback(MediaCodec.java:1854) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleMessage(MediaCodec.java:1752) E/RtmpProducer( 4629): at android.os.Handler.dispatchMessage(Handler.java:106) E/RtmpProducer( 4629): at android.os.Looper.loopOnce(Looper.java:201) E/RtmpProducer( 4629): at android.os.Looper.loop(Looper.java:288) E/RtmpProducer( 4629): at android.os.HandlerThread.run(HandlerThread.java:67) W/GraphicBufferSource( 4629): released unpopulated slots: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63] D/VideoMediaCodecEncoder( 4629): Not running D/AudioMediaCodecEncoder( 4629): Not running I/NDOP ( 4629): listening using window listener E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#740] MediaCodec discarded an unknown buffer I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/AudioMediaCodecEncoder( 4629): createCodec: {sample-rate=44100, mime=audio/mp4a-latm, channel-count=2} D/CCodec ( 4629): allocate(c2.android.aac.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.aac.encoder] D/CCodecConfig( 4629): read media type: audio/mp4a-latm D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 8192 D/CCodecConfig( 4629): c2::u32 coding.aac-sbr-mode.value = 3 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 2048 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "audio/raw" D/CCodecConfig( 4629): string output.media-type.value = "audio/mp4a-latm" D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 1 D/CCodecConfig( 4629): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig( 4629): } I/MediaCodec( 4629): MediaCodec will operate in async mode D/MediaCodec( 4629): shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.aac.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 128000 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 4096 D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 2 W/Codec2Client( 4629): query -- param skipped: index = 1107298332. D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t max-input-size = 4096 D/CCodec ( 4629): string mime = "audio/raw" D/CCodec ( 4629): int32_t android._config-pcm-encoding = 2 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t bitrate = 128000 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t level = 0 D/CCodec ( 4629): int32_t max-bitrate = 128000 D/CCodec ( 4629): string mime = "audio/mp4a-latm" D/CCodec ( 4629): int32_t profile = 2 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/VideoMediaCodecEncoder( 4629): createCodec: {mime=video/avc, width=720, height=1280} D/CCodec ( 4629): allocate(c2.android.avc.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.avc.encoder] D/CCodecConfig( 4629): read media type: video/avc D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): ignored struct field coding.gop.values D/ReflectedParamUpdater( 4629): ignored struct field coding.qp.values D/CCodecConfig( 4629): ignoring local param raw.color (0xc2001809) as it is already supported I/CCodecConfig( 4629): query failed after returning 12 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::i32 coded.average-qp.value = 0 D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 1 D/CCodecConfig( 4629): c2::u32 coded.picture-type.value = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20492 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 20481 D/CCodecConfig( 4629): c2::u32 coded.vui.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.range = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 coding.intra-refresh.mode = 0 D/CCodecConfig( 4629): c2::float coding.intra-refresh.period = 0 D/CCodecConfig( 4629): c2::u32 coding.request-sync-frame.value = 0 D/CCodecConfig( 4629): c2::i64 coding.sync-frame-interval.value = 1000000 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "video/raw" D/CCodecConfig( 4629): string output.media-type.value = "video/avc" D/CCodecConfig( 4629): c2::u32 raw.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 raw.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 raw.color.range = 0 D/CCodecConfig( 4629): c2::u32 raw.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 raw.size.height = 16 D/CCodecConfig( 4629): c2::u32 raw.size.width = 16 D/CCodecConfig( 4629): } W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) I/MediaCodec( 4629): MediaCodec will operate in async mode D/VQApply ( 4629): raise bitrate: configured 2000000 to floor 2073600 D/VQApply ( 4629): minquality by QP: inject video-qp-max=43 D/VQApply ( 4629): minquality/target bitrate raised from 2000000 to 2073600 bps D/MediaCodec( 4629): shapeMediaFormat: deltas(6): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): int32_t bitrate = 2073600 D/MediaCodec( 4629): int32_t android._encoding-quality-level = 0 D/MediaCodec( 4629): int32_t video-qp-max = 43 D/MediaCodec( 4629): int32_t video-qp-i-max = 43 D/MediaCodec( 4629): int32_t video-qp-p-max = 46 D/MediaCodec( 4629): int32_t video-qp-b-max = 49 D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.avc.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for color-format D/CCodecConfig( 4629): no c2 equivalents for video-qp-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-i-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-p-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-b-max D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 2073600 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 30 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20499 D/CCodecConfig( 4629): c2::u32 raw.size.height = 1280 D/CCodecConfig( 4629): c2::u32 raw.size.width = 720 W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 0 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t bitrate = 2073600 D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): int32_t level = 524288 D/CCodec ( 4629): int32_t max-bitrate = 2073600 D/CCodec ( 4629): string mime = "video/avc" D/CCodec ( 4629): int32_t profile = 65536 D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 13 values (BAD_INDEX) D/CCodec ( 4629): input format changed to AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 1 D/CCodec ( 4629): int32_t color-range = 2 D/CCodec ( 4629): int32_t color-transfer = 3 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 260 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/GraphicBufferSource( 4629): setting dataspace: 0x104, acquired=0 D/CCodec ( 4629): ISConfig not changed D/HostConnection( 4629): createUnique: call D/HostConnection( 4629): HostConnection::get() New Host Connection established 0x7f7f336ffb10, tid 4717 D/HostConnection( 4629): 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_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 D/EGL_emulation( 4629): eglCreateContext: 0x7f7f33705810: maj 2 min 0 rcv 2 D/EGL_emulation( 4629): eglMakeCurrent: 0x7f7f33705810: ver 2 0 (tinfo 0x7f815a020280) (first time) D/EGL_emulation( 4629): app_time_stats: avg=23.65ms min=9.53ms max=51.61ms count=37 D/EGL_emulation( 4629): app_time_stats: avg=29.88ms min=13.51ms max=34.16ms count=33 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=27.92ms max=42.08ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.90ms min=29.67ms max=49.25ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.31ms min=28.34ms max=44.25ms count=31 D/BufferPoolAccessor2.0( 4629): bufferpool2 0x7f7f8371f0b8 : 0(0 size) total buffers - 0(0 size) used buffers - 6/11 (recycle/alloc) - 5/12 (fetch/transfer) D/BufferPoolAccessor2.0( 4629): evictor expired: 1, evicted: 1 D/EGL_emulation( 4629): app_time_stats: avg=25.19ms min=8.62ms max=37.58ms count=37 D/BufferPoolAccessor2.0( 4629): evictor expired: 1, evicted: 0 D/EGL_emulation( 4629): app_time_stats: avg=34.03ms min=29.79ms max=50.75ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.20ms min=29.19ms max=36.08ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.88ms min=30.17ms max=50.63ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=30.89ms max=35.01ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.88ms min=29.70ms max=51.07ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.40ms min=30.89ms max=36.60ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.80ms min=29.56ms max=53.11ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=30.30ms max=35.71ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.88ms min=30.07ms max=48.96ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.88ms min=22.39ms max=46.26ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.97ms min=30.92ms max=49.67ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=29.73ms max=36.07ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.76ms min=30.33ms max=50.93ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.37ms min=28.40ms max=39.02ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.59ms min=19.40ms max=49.71ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.55ms min=26.36ms max=41.25ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.24ms min=30.17ms max=35.16ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.84ms min=24.69ms max=47.68ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=31.47ms max=34.98ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.86ms min=29.68ms max=50.72ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.83ms min=31.48ms max=50.45ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.43ms max=36.16ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=30.09ms max=35.71ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.87ms min=31.21ms max=50.54ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.42ms min=31.26ms max=34.61ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.22ms min=29.77ms max=34.68ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.89ms min=31.48ms max=50.32ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.22ms min=26.97ms max=46.15ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=21.33ms max=50.64ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.32ms max=35.65ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.85ms min=30.69ms max=48.25ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.28ms min=30.42ms max=35.44ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.71ms min=23.61ms max=51.80ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=30.90ms max=35.10ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.82ms min=30.46ms max=53.34ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.39ms min=30.36ms max=35.95ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.89ms min=23.16ms max=51.64ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.89ms min=26.97ms max=41.03ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.56ms min=15.93ms max=48.94ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=34.56ms min=24.90ms max=61.40ms count=29 D/EGL_emulation( 4629): app_time_stats: avg=33.05ms min=25.97ms max=47.13ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.68ms min=21.71ms max=52.14ms count=30 I/NDOP ( 4629): listening using window listener Reloaded 1 of 660 libraries in 883ms (compile: 131 ms, reload: 304 ms, reassemble: 214 ms). D/EGL_emulation( 4629): app_time_stats: avg=53.75ms min=13.38ms max=278.59ms count=18 D/EGL_emulation( 4629): app_time_stats: avg=33.02ms min=14.91ms max=45.18ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.31ms min=31.66ms max=35.40ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.86ms min=32.29ms max=50.58ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.28ms min=23.00ms max=45.46ms count=30 I/flutter ( 4629): start D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. W/Codec2Client( 4629): query -- param skipped: index = 3254792206. W/Codec2Client( 4629): query -- param skipped: index = 3254792194. D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] Created input block pool with allocatorID 16 => poolID 20 - OK (0) D/BufferPoolAccessor2.0( 4629): bufferpool2 0x7f7f8371f0b8 : 0(0 size) total buffers - 0(0 size) used buffers - 6/11 (recycle/alloc) - 5/12 (fetch/transfer) D/BufferPoolAccessor2.0( 4629): Destruction - bufferpool2 0x7f7f8371f0b8 cached: 0/0M, 0/0% in use; allocs: 11, 55% recycled; transfers: 12, 58% unfetched I/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] Created output block pool with allocatorID 16 => poolID 32 - OK D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] Configured output block pool ids 32 => OK D/EGL_emulation( 4629): app_time_stats: avg=29.12ms min=13.14ms max=45.00ms count=32 D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#262] Using basic input block pool with poolID 1 => got 1 - OK (0) I/CCodecBufferChannel( 4629): [c2.android.avc.encoder#262] Created output block pool with allocatorID 16 => poolID 33 - OK D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#262] Configured output block pool ids 33 => OK I/flutter ( 4629): Connection succedded I/NDOP ( 4629): listening using window listener I/ ( 4629): Format changed : {max-bitrate=128000, sample-rate=44100, level=0, mime=audio/mp4a-latm, profile=2, channel-count=2, bitrate=128000, csd-0=java.nio.HeapByteBuffer[pos=0 lim=2 cap=2]} E/rtmpdroid( 4629): WriteN, RTMP send error 32 (136 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 32 (41 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) E/RtmpProducer( 4629): Error while writing packet to socket E/RtmpProducer( 4629): java.net.SocketException: Connection error E/RtmpProducer( 4629): at video.api.rtmpdroid.Rtmp.write(Rtmp.kt:125) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.ext.rtmp.internal.endpoints.RtmpProducer.write(RtmpProducer.kt:64) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$muxListener$1.onOutputFrame(BaseStreamer.kt:134) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.muxers.flv.FlvMuxer.encode(FlvMuxer.kt:55) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$audioEncoderListener$1.onOutputFrame(BaseStreamer.kt:100) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.encoders.MediaCodecEncoder$encoderCallback$1.onOutputBufferAvailable(MediaCodecEncoder.kt:89) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleCallback(MediaCodec.java:1854) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleMessage(MediaCodec.java:1752) E/RtmpProducer( 4629): at android.os.Handler.dispatchMessage(Handler.java:106) E/RtmpProducer( 4629): at android.os.Looper.loopOnce(Looper.java:201) E/RtmpProducer( 4629): at android.os.Looper.loop(Looper.java:288) E/RtmpProducer( 4629): at android.os.HandlerThread.run(HandlerThread.java:67) W/GraphicBufferSource( 4629): released unpopulated slots: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63] D/VideoMediaCodecEncoder( 4629): Not running D/AudioMediaCodecEncoder( 4629): Not running E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#204] MediaCodec discarded an unknown buffer I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/AudioMediaCodecEncoder( 4629): createCodec: {sample-rate=44100, mime=audio/mp4a-latm, channel-count=2} D/CCodec ( 4629): allocate(c2.android.aac.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.aac.encoder] D/CCodecConfig( 4629): read media type: audio/mp4a-latm D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 8192 D/CCodecConfig( 4629): c2::u32 coding.aac-sbr-mode.value = 3 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 2048 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "audio/raw" D/CCodecConfig( 4629): string output.media-type.value = "audio/mp4a-latm" D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 1 D/CCodecConfig( 4629): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig( 4629): } I/MediaCodec( 4629): MediaCodec will operate in async mode D/MediaCodec( 4629): shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.aac.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 128000 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 4096 D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 2 W/Codec2Client( 4629): query -- param skipped: index = 1107298332. D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t max-input-size = 4096 D/CCodec ( 4629): string mime = "audio/raw" D/CCodec ( 4629): int32_t android._config-pcm-encoding = 2 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t bitrate = 128000 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t level = 0 D/CCodec ( 4629): int32_t max-bitrate = 128000 D/CCodec ( 4629): string mime = "audio/mp4a-latm" D/CCodec ( 4629): int32_t profile = 2 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/VideoMediaCodecEncoder( 4629): createCodec: {mime=video/avc, width=720, height=1280} D/CCodec ( 4629): allocate(c2.android.avc.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.avc.encoder] D/CCodecConfig( 4629): read media type: video/avc D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): ignored struct field coding.gop.values D/ReflectedParamUpdater( 4629): ignored struct field coding.qp.values D/CCodecConfig( 4629): ignoring local param raw.color (0xc2001809) as it is already supported I/CCodecConfig( 4629): query failed after returning 12 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::i32 coded.average-qp.value = 0 D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 1 D/CCodecConfig( 4629): c2::u32 coded.picture-type.value = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20492 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 20481 D/CCodecConfig( 4629): c2::u32 coded.vui.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.range = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 coding.intra-refresh.mode = 0 D/CCodecConfig( 4629): c2::float coding.intra-refresh.period = 0 D/CCodecConfig( 4629): c2::u32 coding.request-sync-frame.value = 0 D/CCodecConfig( 4629): c2::i64 coding.sync-frame-interval.value = 1000000 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "video/raw" D/CCodecConfig( 4629): string output.media-type.value = "video/avc" D/CCodecConfig( 4629): c2::u32 raw.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 raw.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 raw.color.range = 0 D/CCodecConfig( 4629): c2::u32 raw.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 raw.size.height = 16 D/CCodecConfig( 4629): c2::u32 raw.size.width = 16 D/CCodecConfig( 4629): } W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) I/MediaCodec( 4629): MediaCodec will operate in async mode D/VQApply ( 4629): raise bitrate: configured 2000000 to floor 2073600 D/VQApply ( 4629): minquality by QP: inject video-qp-max=43 D/VQApply ( 4629): minquality/target bitrate raised from 2000000 to 2073600 bps D/MediaCodec( 4629): shapeMediaFormat: deltas(6): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): int32_t bitrate = 2073600 D/MediaCodec( 4629): int32_t android._encoding-quality-level = 0 D/MediaCodec( 4629): int32_t video-qp-max = 43 D/MediaCodec( 4629): int32_t video-qp-i-max = 43 D/MediaCodec( 4629): int32_t video-qp-p-max = 46 D/MediaCodec( 4629): int32_t video-qp-b-max = 49 D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.avc.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for color-format D/CCodecConfig( 4629): no c2 equivalents for video-qp-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-i-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-p-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-b-max D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 2073600 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 30 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20499 D/CCodecConfig( 4629): c2::u32 raw.size.height = 1280 D/CCodecConfig( 4629): c2::u32 raw.size.width = 720 W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 0 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t bitrate = 2073600 D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): int32_t level = 524288 D/CCodec ( 4629): int32_t max-bitrate = 2073600 D/CCodec ( 4629): string mime = "video/avc" D/CCodec ( 4629): int32_t profile = 65536 D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 13 values (BAD_INDEX) D/CCodec ( 4629): input format changed to AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 1 D/CCodec ( 4629): int32_t color-range = 2 D/CCodec ( 4629): int32_t color-transfer = 3 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 260 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/GraphicBufferSource( 4629): setting dataspace: 0x104, acquired=0 D/CCodec ( 4629): ISConfig not changed D/HostConnection( 4629): createUnique: call D/HostConnection( 4629): HostConnection::get() New Host Connection established 0x7f7f3370db50, tid 4717 I/NDOP ( 4629): listening using window listener D/HostConnection( 4629): 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_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 D/EGL_emulation( 4629): eglCreateContext: 0x7f7f33709e90: maj 2 min 0 rcv 2 D/EGL_emulation( 4629): eglMakeCurrent: 0x7f7f33709e90: ver 2 0 (tinfo 0x7f815a020280) (first time) D/EGL_emulation( 4629): app_time_stats: avg=26.74ms min=12.93ms max=92.63ms count=34 D/EGL_emulation( 4629): app_time_stats: avg=32.94ms min=18.57ms max=50.28ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.03ms min=15.31ms max=50.84ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.37ms min=29.48ms max=36.93ms count=31 D/BufferPoolAccessor2.0( 4629): bufferpool2 0x7f7f837387b8 : 0(0 size) total buffers - 0(0 size) used buffers - 6/11 (recycle/alloc) - 5/14 (fetch/transfer) D/BufferPoolAccessor2.0( 4629): evictor expired: 1, evicted: 1 D/EGL_emulation( 4629): app_time_stats: avg=27.10ms min=8.34ms max=48.66ms count=35 D/BufferPoolAccessor2.0( 4629): evictor expired: 1, evicted: 0 D/EGL_emulation( 4629): app_time_stats: avg=33.69ms min=21.81ms max=50.93ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.38ms min=31.47ms max=36.70ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.64ms min=13.96ms max=50.67ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.42ms min=31.53ms max=36.56ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.83ms min=30.80ms max=49.09ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=30.10ms max=36.37ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.81ms min=30.15ms max=50.39ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.13ms min=16.44ms max=45.26ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.37ms min=22.34ms max=51.34ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.84ms min=31.49ms max=46.39ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=29.86ms max=36.64ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.72ms min=16.79ms max=51.05ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=31.98ms max=34.68ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.86ms min=32.07ms max=51.43ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=32.43ms max=34.15ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.58ms min=32.23ms max=41.35ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.57ms min=25.10ms max=50.37ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.27ms min=30.83ms max=35.70ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.91ms min=27.04ms max=50.00ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=30.53ms max=35.68ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.83ms min=32.11ms max=50.42ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=30.87ms max=36.67ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.38ms min=30.61ms max=35.73ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.87ms min=31.17ms max=50.66ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=34.35ms min=31.35ms max=50.33ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.73ms min=28.16ms max=36.04ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.11ms min=22.61ms max=48.54ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.74ms min=16.07ms max=52.07ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=30.73ms max=35.35ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.42ms min=17.99ms max=49.02ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.37ms min=29.72ms max=36.11ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.36ms min=30.69ms max=35.64ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.59ms min=23.05ms max=50.64ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.27ms min=31.83ms max=34.50ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=35.03ms min=30.93ms max=54.30ms count=29 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.88ms max=34.23ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.87ms min=31.95ms max=50.77ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=31.27ms max=34.75ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.70ms min=26.71ms max=50.62ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=31.03ms max=35.72ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.94ms min=25.12ms max=48.58ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.27ms min=30.62ms max=36.03ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.85ms min=31.75ms max=50.26ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=30.68ms max=35.13ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.87ms min=19.60ms max=54.33ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=32.05ms max=35.19ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.89ms min=30.77ms max=50.49ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=30.23ms max=35.00ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.70ms min=19.17ms max=48.03ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.25ms min=30.62ms max=36.24ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=34.06ms min=31.23ms max=56.56ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.22ms min=30.59ms max=35.78ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.91ms min=30.10ms max=49.07ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=29.49ms max=36.19ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.84ms min=27.37ms max=51.38ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=30.19ms max=35.33ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.25ms min=30.91ms max=34.07ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.66ms min=20.89ms max=51.08ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.25ms min=16.76ms max=49.55ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.28ms min=25.89ms max=53.91ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.88ms min=32.82ms max=50.88ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.27ms min=20.33ms max=44.85ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.13ms min=14.77ms max=52.18ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.99ms min=20.62ms max=50.03ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.17ms min=30.39ms max=35.88ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.95ms min=24.31ms max=50.20ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.26ms min=26.17ms max=43.54ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=30.23ms max=36.49ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.97ms min=31.34ms max=51.19ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.24ms min=19.86ms max=50.02ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.82ms min=29.40ms max=45.68ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=31.18ms max=35.76ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.93ms min=31.42ms max=51.31ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.28ms min=30.89ms max=36.90ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.92ms min=30.73ms max=50.42ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.96ms min=9.62ms max=64.37ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.87ms min=30.48ms max=50.75ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.42ms min=31.59ms max=35.75ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.62ms min=22.61ms max=49.96ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.06ms min=23.52ms max=43.41ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.27ms min=14.99ms max=52.30ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.20ms min=31.35ms max=34.28ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.84ms min=30.79ms max=49.83ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.17ms min=20.43ms max=45.29ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.98ms min=30.51ms max=49.76ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.20ms min=31.18ms max=35.25ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.31ms min=30.91ms max=35.40ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=34.36ms min=31.26ms max=50.41ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=32.69ms min=25.30ms max=35.65ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=34.24ms min=19.20ms max=54.85ms count=29 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=30.71ms max=36.64ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.70ms min=18.19ms max=50.85ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.55ms min=31.75ms max=40.47ms count=30 I/flutter ( 4629): start D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. W/Codec2Client( 4629): query -- param skipped: index = 3254792206. W/Codec2Client( 4629): query -- param skipped: index = 3254792194. D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] Created input block pool with allocatorID 16 => poolID 21 - OK (0) D/BufferPoolAccessor2.0( 4629): bufferpool2 0x7f7f837387b8 : 0(0 size) total buffers - 0(0 size) used buffers - 6/11 (recycle/alloc) - 5/14 (fetch/transfer) D/BufferPoolAccessor2.0( 4629): Destruction - bufferpool2 0x7f7f837387b8 cached: 0/0M, 0/0% in use; allocs: 11, 55% recycled; transfers: 14, 64% unfetched I/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] Created output block pool with allocatorID 16 => poolID 34 - OK D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] Configured output block pool ids 34 => OK D/MediaCodec( 4629): keep callback message for reclaim W/Codec2Client( 4629): query -- param skipped: index = 1342179345. W/Codec2Client( 4629): query -- param skipped: index = 2415921170. D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#599] Using basic input block pool with poolID 1 => got 1 - OK (0) I/CCodecBufferChannel( 4629): [c2.android.avc.encoder#599] Created output block pool with allocatorID 16 => poolID 35 - OK D/CCodecBufferChannel( 4629): [c2.android.avc.encoder#599] Configured output block pool ids 35 => OK I/flutter ( 4629): Connection succedded I/NDOP ( 4629): listening using window listener I/ ( 4629): Format changed : {max-bitrate=128000, sample-rate=44100, level=0, mime=audio/mp4a-latm, profile=2, channel-count=2, bitrate=128000, csd-0=java.nio.HeapByteBuffer[pos=0 lim=2 cap=2]} E/rtmpdroid( 4629): WriteN, RTMP send error 32 (136 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 32 (41 bytes) E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) E/RtmpProducer( 4629): Error while writing packet to socket E/RtmpProducer( 4629): java.net.SocketException: Connection error E/RtmpProducer( 4629): at video.api.rtmpdroid.Rtmp.write(Rtmp.kt:125) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.ext.rtmp.internal.endpoints.RtmpProducer.write(RtmpProducer.kt:64) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$muxListener$1.onOutputFrame(BaseStreamer.kt:134) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.muxers.flv.FlvMuxer.encode(FlvMuxer.kt:55) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$audioEncoderListener$1.onOutputFrame(BaseStreamer.kt:100) E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.encoders.MediaCodecEncoder$encoderCallback$1.onOutputBufferAvailable(MediaCodecEncoder.kt:89) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleCallback(MediaCodec.java:1854) E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleMessage(MediaCodec.java:1752) E/RtmpProducer( 4629): at android.os.Handler.dispatchMessage(Handler.java:106) E/RtmpProducer( 4629): at android.os.Looper.loopOnce(Looper.java:201) E/RtmpProducer( 4629): at android.os.Looper.loop(Looper.java:288) E/RtmpProducer( 4629): at android.os.HandlerThread.run(HandlerThread.java:67) W/GraphicBufferSource( 4629): released unpopulated slots: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63] D/VideoMediaCodecEncoder( 4629): Not running D/AudioMediaCodecEncoder( 4629): Not running I/NDOP ( 4629): listening using window listener E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes) D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] MediaCodec discarded an unknown buffer D/CCodecBufferChannel( 4629): [c2.android.aac.encoder#714] MediaCodec discarded an unknown buffer I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/AudioMediaCodecEncoder( 4629): createCodec: {sample-rate=44100, mime=audio/mp4a-latm, channel-count=2} D/CCodec ( 4629): allocate(c2.android.aac.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.aac.encoder] D/CCodecConfig( 4629): read media type: audio/mp4a-latm D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 8192 D/CCodecConfig( 4629): c2::u32 coding.aac-sbr-mode.value = 3 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 2048 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "audio/raw" D/CCodecConfig( 4629): string output.media-type.value = "audio/mp4a-latm" D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 1 D/CCodecConfig( 4629): c2::u32 raw.sample-rate.value = 44100 D/CCodecConfig( 4629): } I/MediaCodec( 4629): MediaCodec will operate in async mode D/MediaCodec( 4629): shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.aac.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 128000 D/CCodecConfig( 4629): c2::u32 input.buffers.max-size.value = 4096 D/CCodecConfig( 4629): c2::u32 raw.channel-count.value = 2 W/Codec2Client( 4629): query -- param skipped: index = 1107298332. D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t max-input-size = 4096 D/CCodec ( 4629): string mime = "audio/raw" D/CCodec ( 4629): int32_t android._config-pcm-encoding = 2 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t sample-rate = 44100 D/CCodec ( 4629): int32_t bitrate = 128000 D/CCodec ( 4629): int32_t channel-count = 2 D/CCodec ( 4629): int32_t level = 0 D/CCodec ( 4629): int32_t max-bitrate = 128000 D/CCodec ( 4629): string mime = "audio/mp4a-latm" D/CCodec ( 4629): int32_t profile = 2 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 9 values (BAD_INDEX) I/hw-BpHwBinder( 4629): onLastStrongRef automatically unlinking death recipients E/VideoMediaCodecEncoder( 4629): createCodec: {mime=video/avc, width=720, height=1280} D/CCodec ( 4629): allocate(c2.android.avc.encoder) I/CCodec ( 4629): setting up 'default' as default (vendor) store I/CCodec ( 4629): Created component [c2.android.avc.encoder] D/CCodecConfig( 4629): read media type: video/avc D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.max-count.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.subscribed-indices.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: input.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.allocator-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: output.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): extent() != 1 for single value type: algo.buffers.pool-ids.values D/ReflectedParamUpdater( 4629): ignored struct field coding.gop.values D/ReflectedParamUpdater( 4629): ignored struct field coding.qp.values D/CCodecConfig( 4629): ignoring local param raw.color (0xc2001809) as it is already supported I/CCodecConfig( 4629): query failed after returning 12 values (BAD_INDEX) D/CCodecConfig( 4629): c2 config diff is Dict { D/CCodecConfig( 4629): c2::i32 coded.average-qp.value = 0 D/CCodecConfig( 4629): c2::u32 coded.bitrate.value = 64000 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 1 D/CCodecConfig( 4629): c2::u32 coded.picture-type.value = 0 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20492 D/CCodecConfig( 4629): c2::u32 coded.pl.profile = 20481 D/CCodecConfig( 4629): c2::u32 coded.vui.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.range = 0 D/CCodecConfig( 4629): c2::u32 coded.vui.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 coding.intra-refresh.mode = 0 D/CCodecConfig( 4629): c2::float coding.intra-refresh.period = 0 D/CCodecConfig( 4629): c2::u32 coding.request-sync-frame.value = 0 D/CCodecConfig( 4629): c2::i64 coding.sync-frame-interval.value = 1000000 D/CCodecConfig( 4629): c2::u32 input.delay.value = 0 D/CCodecConfig( 4629): string input.media-type.value = "video/raw" D/CCodecConfig( 4629): string output.media-type.value = "video/avc" D/CCodecConfig( 4629): c2::u32 raw.color.matrix = 0 D/CCodecConfig( 4629): c2::u32 raw.color.primaries = 0 D/CCodecConfig( 4629): c2::u32 raw.color.range = 0 D/CCodecConfig( 4629): c2::u32 raw.color.transfer = 0 D/CCodecConfig( 4629): c2::u32 raw.size.height = 16 D/CCodecConfig( 4629): c2::u32 raw.size.width = 16 D/CCodecConfig( 4629): } W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) I/MediaCodec( 4629): MediaCodec will operate in async mode D/VQApply ( 4629): raise bitrate: configured 2000000 to floor 2073600 D/VQApply ( 4629): minquality by QP: inject video-qp-max=43 D/VQApply ( 4629): minquality/target bitrate raised from 2000000 to 2073600 bps D/MediaCodec( 4629): shapeMediaFormat: deltas(6): AMessage(what = 0x00000000) = { D/MediaCodec( 4629): int32_t bitrate = 2073600 D/MediaCodec( 4629): int32_t android._encoding-quality-level = 0 D/MediaCodec( 4629): int32_t video-qp-max = 43 D/MediaCodec( 4629): int32_t video-qp-i-max = 43 D/MediaCodec( 4629): int32_t video-qp-p-max = 46 D/MediaCodec( 4629): int32_t video-qp-b-max = 49 D/MediaCodec( 4629): } D/CCodec ( 4629): [c2.android.avc.encoder] buffers are bound to CCodec for this session D/CCodecConfig( 4629): no c2 equivalents for color-format D/CCodecConfig( 4629): no c2 equivalents for video-qp-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-i-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-p-max D/CCodecConfig( 4629): no c2 equivalents for video-qp-b-max D/CCodecConfig( 4629): no c2 equivalents for flags D/CCodecConfig( 4629): no c2 equivalents for encoder D/CCodecConfig( 4629): c2 config diff is c2::u32 coded.bitrate.value = 2073600 D/CCodecConfig( 4629): c2::float coded.frame-rate.value = 30 D/CCodecConfig( 4629): c2::u32 coded.pl.level = 20499 D/CCodecConfig( 4629): c2::u32 raw.size.height = 1280 D/CCodecConfig( 4629): c2::u32 raw.size.width = 720 W/ColorUtils( 4629): expected specified color aspects (0:0:0:0) D/CCodec ( 4629): encoding statistics level = 0 D/CCodec ( 4629): setup formats input: AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 0 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/CCodec ( 4629): setup formats output: AMessage(what = 0x00000000) = { D/CCodec ( 4629): int32_t bitrate = 2073600 D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 0 D/CCodec ( 4629): int32_t color-range = 0 D/CCodec ( 4629): int32_t color-transfer = 0 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): int32_t level = 524288 D/CCodec ( 4629): int32_t max-bitrate = 2073600 D/CCodec ( 4629): string mime = "video/avc" D/CCodec ( 4629): int32_t profile = 65536 D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): } I/CCodecConfig( 4629): query failed after returning 13 values (BAD_INDEX) D/CCodec ( 4629): input format changed to AMessage(what = 0x00000000) = { D/CCodec ( 4629): Rect crop(0, 0, 719, 1279) D/CCodec ( 4629): int32_t color-standard = 1 D/CCodec ( 4629): int32_t color-range = 2 D/CCodec ( 4629): int32_t color-transfer = 3 D/CCodec ( 4629): int32_t frame-rate = 30 D/CCodec ( 4629): int32_t height = 1280 D/CCodec ( 4629): int32_t intra-refresh-period = 0 D/CCodec ( 4629): string mime = "video/raw" D/CCodec ( 4629): int32_t video-qp-average = 0 D/CCodec ( 4629): int32_t width = 720 D/CCodec ( 4629): int32_t android._dataspace = 260 D/CCodec ( 4629): int32_t using-sw-read-often = 1 D/CCodec ( 4629): int64_t android._C2MemoryUsage = 1 D/CCodec ( 4629): int32_t color-format = 2130708361 D/CCodec ( 4629): int32_t android._color-format = 2130708361 D/CCodec ( 4629): } D/GraphicBufferSource( 4629): setting dataspace: 0x104, acquired=0 D/CCodec ( 4629): ISConfig not changed D/HostConnection( 4629): createUnique: call D/HostConnection( 4629): HostConnection::get() New Host Connection established 0x7f7f33701310, tid 4717 D/HostConnection( 4629): 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_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_has_shared_slots_host_memory_allocator ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit ANDROID_EMU_vulkan_queue_submit_with_commands ANDROID_EMU_sync_buffer_data ANDROID_EMU_read_color_buffer_dma ANDROID_EMU_hwc_multi_configs GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_gles_max_version_2 D/EGL_emulation( 4629): eglCreateContext: 0x7f7f337058d0: maj 2 min 0 rcv 2 D/EGL_emulation( 4629): eglMakeCurrent: 0x7f7f337058d0: ver 2 0 (tinfo 0x7f815a020280) (first time) D/EGL_emulation( 4629): app_time_stats: avg=22.57ms min=8.77ms max=54.28ms count=39 D/EGL_emulation( 4629): app_time_stats: avg=33.50ms min=26.02ms max=47.30ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.26ms min=17.64ms max=52.04ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.47ms min=31.31ms max=34.98ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=28.52ms min=16.66ms max=42.76ms count=34 D/BufferPoolAccessor2.0( 4629): bufferpool2 0x7f7f836fa0b8 : 0(0 size) total buffers - 0(0 size) used buffers - 6/11 (recycle/alloc) - 5/14 (fetch/transfer) D/BufferPoolAccessor2.0( 4629): evictor expired: 1, evicted: 1 D/EGL_emulation( 4629): app_time_stats: avg=32.40ms min=19.67ms max=36.62ms count=31 D/BufferPoolAccessor2.0( 4629): evictor expired: 1, evicted: 0 D/EGL_emulation( 4629): app_time_stats: avg=33.71ms min=17.84ms max=49.17ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.34ms min=30.69ms max=36.14ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.04ms min=25.18ms max=41.50ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.92ms min=31.69ms max=51.06ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=30.02ms max=35.45ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.90ms min=29.83ms max=52.14ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=30.64ms max=35.80ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.24ms min=29.98ms max=36.39ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.97ms min=31.19ms max=46.69ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.22ms min=30.39ms max=35.74ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.67ms min=17.74ms max=49.83ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=30.43ms max=37.25ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.69ms min=16.80ms max=50.73ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=32.68ms max=34.37ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.31ms min=28.25ms max=37.60ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.87ms min=30.99ms max=50.81ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=21.14ms max=51.07ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.89ms min=30.35ms max=50.13ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=31.87ms max=35.06ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.30ms min=32.25ms max=34.57ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.98ms min=30.73ms max=50.78ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.22ms min=28.89ms max=37.69ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.88ms min=31.63ms max=50.51ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.11ms max=36.12ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.38ms min=31.98ms max=35.32ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.63ms min=22.57ms max=49.43ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.88ms min=28.94ms max=50.67ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=30.49ms max=34.73ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.17ms min=17.05ms max=48.72ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.43ms min=16.95ms max=52.67ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=32.69ms max=34.25ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.87ms min=28.04ms max=63.07ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=31.89ms max=34.71ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.50ms min=31.99ms max=36.71ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.37ms min=16.06ms max=53.33ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=31.32ms max=34.77ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.97ms min=31.99ms max=50.67ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.53ms min=20.00ms max=50.71ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=30.06ms max=37.05ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.89ms min=23.02ms max=51.61ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.40ms min=30.59ms max=39.44ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.25ms min=30.21ms max=35.59ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.81ms min=31.31ms max=50.15ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=28.20ms max=37.84ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.96ms min=27.65ms max=52.58ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.25ms min=27.45ms max=44.20ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.82ms min=30.95ms max=48.40ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.33ms min=30.80ms max=36.27ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=15.31ms max=51.69ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.68ms min=31.45ms max=43.86ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.28ms min=30.16ms max=34.80ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=34.53ms min=27.47ms max=47.56ms count=29 D/EGL_emulation( 4629): app_time_stats: avg=32.71ms min=13.54ms max=52.63ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.28ms min=31.30ms max=37.39ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.86ms min=31.65ms max=48.73ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.36ms min=29.35ms max=38.54ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.73ms min=21.62ms max=52.38ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.35ms min=27.50ms max=44.51ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.11ms min=24.25ms max=48.74ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.67ms min=18.07ms max=50.60ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.29ms min=29.70ms max=35.40ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.98ms min=26.36ms max=45.65ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.20ms min=30.52ms max=35.56ms count=31 D/EGL_emulation( 4629): app_time_stats: avg=33.90ms min=30.29ms max=50.35ms count=30 D/EGL_emulation( 4629): app_time_stats: avg=33.32ms min=31.16ms max=35.47ms count=31

ThibaultBee commented 1 year ago

Hi, The reason it does not stream it that it can't write data to the server:

E/rtmpdroid( 4629): WriteN, RTMP send error 32 (136 bytes)
E/rtmpdroid( 4629): WriteN, RTMP send error 32 (41 bytes)
E/rtmpdroid( 4629): WriteN, RTMP send error 9 (42 bytes)
E/RtmpProducer( 4629): Error while writing packet to socket
E/RtmpProducer( 4629): java.net.SocketException: Connection error
E/RtmpProducer( 4629): at video.api.rtmpdroid.Rtmp.write(Rtmp.kt:125)
E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.ext.rtmp.internal.endpoints.RtmpProducer.write(RtmpProducer.kt:64)
E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$muxListener$1.onOutputFrame(BaseStreamer.kt:134)
E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.muxers.flv.FlvMuxer.encode(FlvMuxer.kt:55)
E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.streamers.bases.BaseStreamer$audioEncoderListener$1.onOutputFrame(BaseStreamer.kt:100)
E/RtmpProducer( 4629): at io.github.thibaultbee.streampack.internal.encoders.MediaCodecEncoder$encoderCallback$1.onOutputBufferAvailable(MediaCodecEncoder.kt:89)
E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleCallback(MediaCodec.java:1854)
E/RtmpProducer( 4629): at android.media.MediaCodec$EventHandler.handleMessage(MediaCodec.java:1752)
E/RtmpProducer( 4629): at android.os.Handler.dispatchMessage(Handler.java:106)
E/RtmpProducer( 4629): at android.os.Looper.loopOnce(Looper.java:201)
E/RtmpProducer( 4629): at android.os.Looper.loop(Looper.java:288)
E/RtmpProducer( 4629): at android.os.HandlerThread.run(HandlerThread.java:67)

Could you test with the example in the main branch?

jokermt235 commented 1 year ago

buildscript { ext.kotlin_version = '1.7.10' repositories { google() mavenCentral() }

dependencies {
    classpath 'com.android.tools.build:gradle:7.1.2'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

} Hi I Almost have the same error as above : ISConfig not changed I/BufferQueueProducer( 9798): GraphicBufferSource connect: api=1 producerControlledByApp=true I/flutter ( 9798): Error: failed to start stream: java.net.ConnectException: Failed to connectStream

ThibaultBee commented 1 year ago

Hi,

It is not exactly the same issue. Your issue happens in connectStream and the other happens when try to write data. What server are you trying to connect?

Anyway, could you test with the example in the main branch?

jokermt235 commented 1 year ago

Yes I did server is working at 100% when player trying to publish it creates the stream for 1 or 2 seconds and after that it stops streaming and i see the error from java channel

ThibaultBee commented 1 year ago

Could you test with version v1.1.0?

helendeguinion1 commented 1 year ago

Hi I cannot stream either using the sample RTMP url or my own RTMP url got this error, anyone experience this as well? Error: failed to start stream: java.net.ConnectException: Failed to connectStream

jokermt235 commented 1 year ago

Hi I cannot stream either using the sample RTMP url or my own RTMP url got this error, anyone experience this as well? Error: failed to start stream: java.net.ConnectException: Failed to connectStream

almost the same error

ThibaultBee commented 1 year ago

The main reasons connectStream errors happen is because:

For the application name, please, verify that your URL is formatted as following: rtmp://url/appName

Anyway, that mean the server rejects you. Please check with your server to understand what is happening.

helendeguinion1 commented 1 year ago

Hi what value should I passed for the stream key? The previous package that I used is not requiring me to pass the said key.

jokermt235 commented 1 year ago

No way I used many types of key even if the right key is used still have the same error I used other lib but that lib was very slow and ha much bufferization and cost many energy This lib is stable but the error that it makes do not allow to stream video from phone camera properly

ThibaultBee commented 1 year ago

@helendeguinion1 If the RTMP url is rtmp://url/appName/streamKey, just split it in 2 parts:

@jokermt235 I am just trying to help. You don't have to be like this. As I said, the server rejects you. You have to dig to understand why is this happening. So you can't connect the lib to the server but the library is slow. That doesn't really make sense. Also, according to your logs, you are trying to run it in an Android emulator, which is indeed really slow.

jokermt235 commented 1 year ago

No That is not right I trying to run on my android physical REDMI NOTE 8 device The issue not a stream key, If i were a junior or middle developer I would say the option of key is have place to be. But I've advanced skills in programming This channel do not work on Android but works on IOS

jokermt235 commented 1 year ago

We have hundred of streams each running in separate url and believe I got the error from each other by the way I see the traffic is starting on that rtmp protocol for a few seconds but when the error is occurring the traffic stops sudden !

jokermt235 commented 1 year ago

I tried to play on vlc every thing is working properly I can cast my web camera to that stream But when I try to do it on android device it doest wont to work!