RenderHeads / UnityPlugin-AVProMovieCapture

AVPro Movie Capture is a Unity Plugin for advanced video capture to AVI/MP4/MOV files
https://renderheads.com/products/avpro-movie-capture/
43 stars 8 forks source link

[Bug] On certain Android devices, movie recording with audio corrupts files. #357

Closed kkkkoyo closed 4 months ago

kkkkoyo commented 5 months ago

Unity Version

Unity 2022.3.10f1

AVPro Movie Capture Version

5.2.0-full

Which platform(s) are you using?

Android

Which OS version(s) are you using?

Android12

Which rendering API(s) are you using?

OpenGLES

Hardware

SO-51C

Which capture component are you using?

Capture From WebCamTexture

Capture mode

Realtime

Which output mode are you using?

Video file

Video codecs

H264

Audio source

Microphone

Audio codecs

AAC

Any other component configuration

No response

The issue

ScreenShot

Saved Movie

https://github.com/RenderHeads/UnityPlugin-AVProMovieCapture/assets/19504762/696b18b8-1444-4bbb-9b26-4c2a0c12b193

Log output

0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of main
2024/01/12 12:28:47.010 1217 1276 Warn Unity [AVProMovieCapture] 'OutputPath.RelativeToProject' is not supported on Android, defaulting to 'OutputPath.RelativeToPeristentData'
2024/01/12 12:28:47.010 1217 1276 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:GetFolder(OutputPath, String)
2024/01/12 12:28:47.010 1217 1276 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:GenerateFilePath(OutputPath, String, String)
2024/01/12 12:28:47.010 1217 1276 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:GenerateFilename()
2024/01/12 12:28:47.010 1217 1276 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureFromTexture:PrepareCapture()
2024/01/12 12:28:47.010 1217 1276 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureFromWebCamTexture:PrepareCapture()
2024/01/12 12:28:47.010 1217 1276 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
2024/01/12 12:28:47.010 1217 1276 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/12 12:28:47.010 1217 1276 Warn Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/12 12:28:47.010 1217 1276 Warn Unity 
2024/01/12 12:28:47.011 1217 1276 Info Unity [AVProMovieCapture]: finalDirectory = /storage/emulated/0/Android/data/jp.test.inc.appname/files/Captures
2024/01/12 12:28:47.011 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:GenerateFilename()
2024/01/12 12:28:47.011 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureFromTexture:PrepareCapture()
2024/01/12 12:28:47.011 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureFromWebCamTexture:PrepareCapture()
2024/01/12 12:28:47.011 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
2024/01/12 12:28:47.011 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/12 12:28:47.011 1217 1276 Info Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/12 12:28:47.011 1217 1276 Info Unity 
2024/01/12 12:28:47.013 1217 1276 Info Unity [AVProMovieCapture] Start File Capture: 640x480 @ 30.00fps [RGBA32] vcodec:'H264' audio source:'Default Microphone' acodec:'AAC' to file: '/storage/emulated/0/Android/data/jp.test.inc.appname/files/Captures/Demo4Webcam-0_2024-01-12_12-28-47_640x480.mp4'
2024/01/12 12:28:47.013 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:PrepareCapture()
2024/01/12 12:28:47.013 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureFromWebCamTexture:PrepareCapture()
2024/01/12 12:28:47.013 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
2024/01/12 12:28:47.013 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/12 12:28:47.013 1217 1276 Info Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/12 12:28:47.013 1217 1276 Info Unity 
2024/01/12 12:28:47.013 1217 1276 Info AVProMovieCapture ??????? (PluginInterface.cpp:70) AVPMC_CreateRecorderVideo - 5.2.0-full
2024/01/12 12:28:47.013 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:49) IVideoRecorder::newVideoRecorder - android api level is 31
2024/01/12 12:28:47.013 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:56) IVideoRecorder::newVideoRecorder - creating video recorder for API 28
2024/01/12 12:28:47.013 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:1102) VideoRecorder::createMuxer - creating file at: /storage/emulated/0/Android/data/jp.test.inc.appname/files/Captures/Demo4Webcam-0_2024-01-12_12-28-47_640x480.mp4
2024/01/12 12:28:47.014 1217 1276 Debug MPEG4Writer PreAllocation enabled
2024/01/12 12:28:47.014 1217 1276 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - media codec name: c2.qti.avc.encoder
2024/01/12 12:28:47.017 1217 1276 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - supported bitrates: [1-220,000,000]
2024/01/12 12:28:47.018 1217 1276 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - supported widths: [128-8,192]
2024/01/12 12:28:47.019 1217 1276 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - supported heights: [128-8,192]
2024/01/12 12:28:47.019 1217 1276 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - width alignment: 2
2024/01/12 12:28:47.020 1217 1276 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - height alignment: 2
2024/01/12 12:28:47.024 1217 7553 Debug CCodec allocate(c2.qti.avc.encoder)
2024/01/12 12:28:47.033 1217 7553 Info CCodec setting up 'default' as default (vendor) store
2024/01/12 12:28:47.067 1217 7553 Info CCodec Created component [c2.qti.avc.encoder]
2024/01/12 12:28:47.067 1217 7553 Debug CCodecConfig read media type: video/avc
2024/01/12 12:28:47.074 1217 7553 Debug ReflectedParamUpdater ignored struct field coding.gop.values
2024/01/12 12:28:47.075 1217 7553 Debug ReflectedParamUpdater ignored struct field coding.qp.values
2024/01/12 12:28:47.075 1217 7553 Debug ReflectedParamUpdater extent() != 1 for single value type: output.buffers.pool-ids.values
2024/01/12 12:28:47.083 1217 7553 Debug ReflectedParamUpdater extent() != 1 for single value type: vendor.qti-ext-enc-info-metadata-cvp.reserved
2024/01/12 12:28:47.086 1217 7553 Debug ReflectedParamUpdater extent() != 1 for single value type: vendor.qti-ext-enc-temporal-layer-bitrate.layerBitrates
2024/01/12 12:28:47.087 1217 7553 Debug CCodecConfig ignoring local param raw.color (0xc2001809) as it is already supported
2024/01/12 12:28:47.089 1217 7553 Info CCodecConfig query failed after returning 23 values (BAD_INDEX)
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig c2 config diff is Dict {
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 algo.bitrate-mode.value = 3
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 algo.complexity.value = 100
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::i32 algo.priority.value = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::float algo.rate.value = 30
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 algo.secure-mode.value = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 coded.bitrate.value = 20000000
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::float coded.frame-rate.value = 30
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 coded.pl.level = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 coded.pl.profile = 20484
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 coded.vui.color.matrix = 255
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 coded.vui.color.primaries = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 coded.vui.color.range = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 coded.vui.color.transfer = 255
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 coding.intra-refresh.mode = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::float coding.intra-refresh.period = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 coding.request-sync-frame.value = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::i64 coding.sync-frame-interval.value = 1000000
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   Buffer coding.temporal-layering = {
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig     00000000:  10 00 00 00 07 20 01 52  00 00 00 00 00 00 00 00  ..... .R........
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   }
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 default.color.matrix = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 default.color.primaries = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 default.color.range = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 default.color.transfer = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   c2::u32 input.delay.value = 0
2024/01/12 12:28:47.089 1217 7553 Debug CCodecConfig   string input.media-type.value = 
2024/01/12 12:28:47.089 1217 7553 Warn ColorUtils expected specified color aspects (0:0:255:255)
2024/01/12 12:28:47.095 1217 1276 Debug VQApply minquality: codec claims to implement minquality=1
2024/01/12 12:28:47.095 1217 1276 Debug MediaCodec shapeMediaFormat: deltas(1): AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.095 1217 1276 Debug MediaCodec     int32_t android._encoding-quality-level = 1
2024/01/12 12:28:47.095 1217 1276 Debug MediaCodec   }
2024/01/12 12:28:47.095 1217 7553 Debug CCodec [c2.qti.avc.encoder] buffers are bound to CCodec for this session
2024/01/12 12:28:47.096 1217 7553 Debug CCodecConfig no c2 equivalents for color-format
2024/01/12 12:28:47.096 1217 7553 Debug CCodecConfig no c2 equivalents for flags
2024/01/12 12:28:47.096 1217 7553 Debug CCodecConfig no c2 equivalents for encoder
2024/01/12 12:28:47.099 1217 7553 Debug CCodecConfig c2 config diff is   c2::u32 coded.bitrate.value = 2500000
2024/01/12 12:28:47.099 1217 7553 Debug CCodecConfig   c2::u32 raw.pixel-format.value = 2141391876
2024/01/12 12:28:47.099 1217 7553 Debug CCodecConfig   c2::u32 raw.size.height = 480
2024/01/12 12:28:47.099 1217 7553 Debug CCodecConfig   c2::u32 raw.size.width = 640
2024/01/12 12:28:47.099 1217 7553 Warn ColorUtils expected specified color aspects (0:0:255:255)
2024/01/12 12:28:47.101 1217 7553 Warn Codec2Client query -- param skipped: index = 3254781982.
2024/01/12 12:28:47.103 1217 7553 Debug BufferPoolAccessor2.0 Destruction - bufferpool2 0xb40000797d5e0568 cached: 0/0M, 0/0% in use; allocs: 1, 0% recycled; transfers: 0, 0% unfetched
2024/01/12 12:28:47.104 1217 7553 Debug CCodec setup formats input: AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t android._color-format = 2141391876
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   Rect crop(0, 0, 639, 479)
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t color-standard = 130816
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t color-range = 0
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t color-transfer = 65791
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t width = 640
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t android._dataspace = 12648448
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t feature-secure-playback = 0
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t frame-rate = 30
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t height = 480
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t intra-refresh-period = 0
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   string mime = "video/raw"
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t priority = 0
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   Buffer hdr-static-info = {
2024/01/12 12:28:47.104 1217 7553 Debug CCodec     00000000:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
2024/01/12 12:28:47.104 1217 7553 Debug CCodec     00000010:  00 00 00 00 00 00 00 00  00                       .........
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   }
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int64_t android._C2MemoryUsage = 4503599631631104
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t color-format = 2135033992
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t stride = 640
2024/01/12 12:28:47.104 1217 7553 Debug CCodec   int32_t slice-height = 480
2024/01/12 12:28:47.104 1217 7553 Debug CCodec }
2024/01/12 12:28:47.105 1217 7553 Debug CCodec setup formats output: AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t bitrate = 2500000
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t bitrate-mode = 1
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   Rect crop(0, 0, 639, 479)
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t width = 640
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t color-standard = 130816
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t color-range = 0
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t color-transfer = 65791
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t feature-secure-playback = 0
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t frame-rate = 30
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t height = 480
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t intra-refresh-period = 0
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t max-bitrate = 2500000
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   string mime = "video/avc"
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t priority = 0
2024/01/12 12:28:47.105 1217 7553 Debug CCodec   int32_t profile = 8
2024/01/12 12:28:47.105 1217 7553 Debug CCodec }
2024/01/12 12:28:47.106 1217 7553 Info CCodecConfig query failed after returning 24 values (BAD_INDEX)
2024/01/12 12:28:47.137 1217 7553 Warn Codec2Client query -- param skipped: index = 1342179345.
2024/01/12 12:28:47.137 1217 7553 Warn Codec2Client query -- param skipped: index = 2415921170.
2024/01/12 12:28:47.137 1217 7553 Warn Codec2Client query -- param skipped: index = 1610614798.
2024/01/12 12:28:47.139 1217 7553 Debug CCodecBufferChannel [c2.qti.avc.encoder#79] Query input allocators returned 0 params => BAD_INDEX (6)
2024/01/12 12:28:47.139 1217 7553 Debug CCodecBufferChannel [c2.qti.avc.encoder#79] Using basic input block pool with poolID 1 => got 1 - OK (0)
2024/01/12 12:28:47.142 1217 7553 Debug CCodecBufferChannel [c2.qti.avc.encoder#79] Query output allocators returned 0 params => BAD_INDEX (6)
2024/01/12 12:28:47.143 1217 7553 Info CCodecBufferChannel [c2.qti.avc.encoder#79] Created output block pool with allocatorID 16 => poolID 947 - OK
2024/01/12 12:28:47.144 1217 7553 Debug CCodecBufferChannel [c2.qti.avc.encoder#79] Configured output block pool ids 947 => OK
2024/01/12 12:28:47.148 1217 7553 Debug CCodecBufferChannel [c2.qti.avc.encoder#79] start: updating output delay 4
2024/01/12 12:28:47.154 1217 7553 Debug CCodecBuffers [c2.qti.avc.encoder#79:2D-BB-Input] updating image-data
2024/01/12 12:28:47.154 1217 7553 Debug CCodecBuffers [c2.qti.avc.encoder#79:2D-BB-Input] updating stride = 640, width: 640, height: 480
2024/01/12 12:28:47.154 1217 7553 Debug CCodecBuffers [c2.qti.avc.encoder#79:2D-BB-Input] updating vstride = 480
2024/01/12 12:28:47.170 1217 7553 Debug CCodecBuffers [c2.qti.avc.encoder#79:2D-BB-Input[N]] updating image-data
2024/01/12 12:28:47.170 1217 7553 Debug CCodecBuffers [c2.qti.avc.encoder#79:2D-BB-Input[N]] updating stride = 640, width: 640, height: 480
2024/01/12 12:28:47.170 1217 7553 Debug CCodecBuffers [c2.qti.avc.encoder#79:2D-BB-Input[N]] updating vstride = 480
2024/01/12 12:28:47.170 1217 7551 Debug CCodecBufferChannel [c2.qti.avc.encoder#79] MediaCodec discarded an unknown buffer
2024/01/12 12:28:47.173 1217 7551 Debug CCodecBufferChannel [c2.qti.avc.encoder#79] MediaCodec discarded an unknown buffer
2024/01/12 12:28:47.173 1217 7551 Debug CCodecBufferChannel [c2.qti.avc.encoder#79] MediaCodec discarded an unknown buffer
2024/01/12 12:28:47.173 1217 7551 Debug CCodecBufferChannel [c2.qti.avc.encoder#79] MediaCodec discarded an unknown buffer
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? Manager.GetVideoCodecImageCapabilities - Colour format is YUV8_420_Biplanar
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:503) VideoRecorder::createVideoCodec - Media format:
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:504) VideoRecorder::createVideoCodec   - MIME type:        video/avc
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:505) VideoRecorder::createVideoCodec   - Width:            640
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:506) VideoRecorder::createVideoCodec   - Height:           480
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:507) VideoRecorder::createVideoCodec   - Frame rate:       30.000000
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:508) VideoRecorder::createVideoCodec   - Bitrate:          2500000
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:509) VideoRecorder::createVideoCodec   - I-Frame interval: 1.000000
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:510) VideoRecorder::createVideoCodec   - Stride:           640
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:511) VideoRecorder::createVideoCodec   - Slice height:     480
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:512) VideoRecorder::createVideoCodec   - Colour range:     Limited
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:513) VideoRecorder::createVideoCodec   - Profile:          8
2024/01/12 12:28:47.183 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:514) VideoRecorder::createVideoCodec   - Level:            100
2024/01/12 12:28:47.186 1217 7558 Info hw-BpHwBinder onLastStrongRef automatically unlinking death recipients
2024/01/12 12:28:47.186 1217 1276 Debug MediaCodec MediaCodec::reclaim(0xb4000079ed6fc240) c2.qti.avc.encoder
2024/01/12 12:28:47.197 1217 7560 Debug CCodec allocate(c2.qti.avc.encoder)
2024/01/12 12:28:47.201 1217 7560 Info CCodec setting up 'default' as default (vendor) store
2024/01/12 12:28:47.211 1217 7560 Info CCodec Created component [c2.qti.avc.encoder]
2024/01/12 12:28:47.213 1217 7560 Debug CCodecConfig read media type: video/avc
2024/01/12 12:28:47.217 1217 7560 Debug ReflectedParamUpdater ignored struct field coding.qp.values
2024/01/12 12:28:47.222 1217 7560 Debug ReflectedParamUpdater extent() != 1 for single value type: output.buffers.pool-ids.values
2024/01/12 12:28:47.234 1217 7560 Debug ReflectedParamUpdater extent() != 1 for single value type: vendor.qti-ext-enc-temporal-layer-bitrate.layerBitrates
2024/01/12 12:28:47.241 1217 7560 Debug ReflectedParamUpdater ignored struct field coding.gop.values
2024/01/12 12:28:47.246 1217 7560 Debug ReflectedParamUpdater extent() != 1 for single value type: vendor.qti-ext-enc-info-metadata-cvp.reserved
2024/01/12 12:28:47.246 1217 7560 Debug CCodecConfig ignoring local param raw.color (0xc2001809) as it is already supported
2024/01/12 12:28:47.249 1217 7560 Info CCodecConfig query failed after returning 23 values (BAD_INDEX)
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig c2 config diff is Dict {
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 algo.bitrate-mode.value = 3
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 algo.complexity.value = 100
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::i32 algo.priority.value = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::float algo.rate.value = 30
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 algo.secure-mode.value = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 coded.bitrate.value = 20000000
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::float coded.frame-rate.value = 30
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 coded.pl.level = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 coded.pl.profile = 20484
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 coded.vui.color.matrix = 255
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 coded.vui.color.primaries = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 coded.vui.color.range = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 coded.vui.color.transfer = 255
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 coding.intra-refresh.mode = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::float coding.intra-refresh.period = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 coding.request-sync-frame.value = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::i64 coding.sync-frame-interval.value = 1000000
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   Buffer coding.temporal-layering = {
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig     00000000:  10 00 00 00 07 20 01 52  00 00 00 00 00 00 00 00  ..... .R........
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   }
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 default.color.matrix = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 default.color.primaries = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 default.color.range = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 default.color.transfer = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   c2::u32 input.delay.value = 0
2024/01/12 12:28:47.249 1217 7560 Debug CCodecConfig   string input.media-type.value = 
2024/01/12 12:28:47.250 1217 7560 Warn ColorUtils expected specified color aspects (0:0:255:255)
2024/01/12 12:28:47.258 1217 1276 Debug VQApply minquality: codec claims to implement minquality=1
2024/01/12 12:28:47.258 1217 1276 Debug MediaCodec shapeMediaFormat: deltas(1): AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.258 1217 1276 Debug MediaCodec     int32_t android._encoding-quality-level = 1
2024/01/12 12:28:47.258 1217 1276 Debug MediaCodec   }
2024/01/12 12:28:47.259 1217 7560 Debug CCodec [c2.qti.avc.encoder] buffers are bound to CCodec for this session
2024/01/12 12:28:47.261 1217 7560 Debug CCodecConfig no c2 equivalents for color-format
2024/01/12 12:28:47.261 1217 7560 Debug CCodecConfig no c2 equivalents for color-standard
2024/01/12 12:28:47.261 1217 7560 Debug CCodecConfig no c2 equivalents for flags
2024/01/12 12:28:47.261 1217 7560 Debug CCodecConfig no c2 equivalents for encoder
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig c2 config diff is   c2::u32 coded.bitrate.value = 2500000
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 coded.pl.level = 20488
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 coded.vui.color.matrix = 1
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 coded.vui.color.primaries = 1
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 coded.vui.color.range = 2
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 coded.vui.color.transfer = 3
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 raw.color.matrix = 1
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 raw.color.primaries = 1
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 raw.color.range = 2
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 raw.color.transfer = 3
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 raw.pixel-format.value = 2141391876
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 raw.size.height = 480
2024/01/12 12:28:47.270 1217 7560 Debug CCodecConfig   c2::u32 raw.size.width = 640
2024/01/12 12:28:47.277 1217 7560 Warn Codec2Client query -- param skipped: index = 3254781982.
2024/01/12 12:28:47.279 1217 7560 Debug BufferPoolAccessor2.0 Destruction - bufferpool2 0xb40000797d6c5da8 cached: 0/0M, 0/0% in use; allocs: 1, 0% recycled; transfers: 0, 0% unfetched
2024/01/12 12:28:47.280 1217 7560 Debug CCodec setup formats input: AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t android._color-format = 2141391876
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   Rect crop(0, 0, 639, 479)
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t color-standard = 1
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t color-range = 2
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t color-transfer = 3
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t width = 640
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t android._dataspace = 260
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t feature-secure-playback = 0
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t frame-rate = 30
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t height = 480
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t intra-refresh-period = 0
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   string mime = "video/raw"
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t priority = 0
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   Buffer hdr-static-info = {
2024/01/12 12:28:47.280 1217 7560 Debug CCodec     00000000:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
2024/01/12 12:28:47.280 1217 7560 Debug CCodec     00000010:  00 00 00 00 00 00 00 00  00                       .........
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   }
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int64_t android._C2MemoryUsage = 4503599631631104
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t color-format = 2135033992
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t stride = 640
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t slice-height = 480
2024/01/12 12:28:47.280 1217 7560 Debug CCodec }
2024/01/12 12:28:47.280 1217 7560 Debug CCodec setup formats output: AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t bitrate = 2500000
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t bitrate-mode = 1
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   Rect crop(0, 0, 639, 479)
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t width = 640
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t color-standard = 1
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t color-range = 2
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t color-transfer = 3
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t feature-secure-playback = 0
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t frame-rate = 30
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t height = 480
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t intra-refresh-period = 0
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t max-bitrate = 2500000
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   string mime = "video/avc"
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t priority = 0
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t profile = 8
2024/01/12 12:28:47.280 1217 7560 Debug CCodec   int32_t level = 256
2024/01/12 12:28:47.280 1217 7560 Debug CCodec }
2024/01/12 12:28:47.280 1217 7560 Info CCodecConfig query failed after returning 24 values (BAD_INDEX)
2024/01/12 12:28:47.281 1217 1276 Info AVProMovieCapture ??????? (VideoRecorderAPI28.cpp:228) VideoRecorderAPI28::createVideoCodecPostConfigure - codec name is: c2.qti.avc.encoder
2024/01/12 12:28:47.281 1217 7559 Info MediaCodec MediaCodec will operate in async mode
2024/01/12 12:28:47.281 1217 1276 Debug MediaCodec keep callback message for reclaim
2024/01/12 12:28:47.285 1217 7560 Warn Codec2Client query -- param skipped: index = 1342179345.
2024/01/12 12:28:47.285 1217 7560 Warn Codec2Client query -- param skipped: index = 2415921170.
2024/01/12 12:28:47.285 1217 7560 Warn Codec2Client query -- param skipped: index = 1610614798.
2024/01/12 12:28:47.286 1217 7560 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] Query input allocators returned 0 params => BAD_INDEX (6)
2024/01/12 12:28:47.286 1217 7560 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] Using basic input block pool with poolID 1 => got 1 - OK (0)
2024/01/12 12:28:47.287 1217 7560 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] Query output allocators returned 0 params => BAD_INDEX (6)
2024/01/12 12:28:47.290 1217 7560 Info CCodecBufferChannel [c2.qti.avc.encoder#775] Created output block pool with allocatorID 16 => poolID 948 - OK
2024/01/12 12:28:47.290 1217 7560 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] Configured output block pool ids 948 => OK
2024/01/12 12:28:47.291 1217 7560 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] start: updating output delay 4
2024/01/12 12:28:47.293 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:622) VideoRecorder::createVideoCodec - plane 0 row stride: 640
2024/01/12 12:28:47.293 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:623) VideoRecorder::createVideoCodec - plane 1 row stride: 640
2024/01/12 12:28:47.293 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:624) VideoRecorder::createVideoCodec - slice height:       480
2024/01/12 12:28:47.293 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:625) VideoRecorder::createVideoCodec - pixel format:       YUV8_420_BiPlanar
2024/01/12 12:28:47.296 1217 7560 Debug CCodecBuffers [c2.qti.avc.encoder#775:2D-BB-Input] updating image-data
2024/01/12 12:28:47.296 1217 7560 Debug CCodecBuffers [c2.qti.avc.encoder#775:2D-BB-Input] updating stride = 640, width: 640, height: 480
2024/01/12 12:28:47.296 1217 7560 Debug CCodecBuffers [c2.qti.avc.encoder#775:2D-BB-Input] updating vstride = 480
2024/01/12 12:28:47.300 1217 7565 Debug CCodec allocate(c2.android.aac.encoder)
2024/01/12 12:28:47.315 1217 7560 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] flushed work; ignored.
2024/01/12 12:28:47.317 1217 7565 Info CCodec setting up 'default' as default (vendor) store
2024/01/12 12:28:47.320 1217 7565 Info CCodec Created component [c2.android.aac.encoder]
2024/01/12 12:28:47.321 1217 7565 Debug CCodecConfig read media type: audio/mp4a-latm
2024/01/12 12:28:47.331 1217 7565 Debug ReflectedParamUpdater extent() != 1 for single value type: algo.buffers.max-count.values
2024/01/12 12:28:47.334 1217 7565 Debug ReflectedParamUpdater extent() != 1 for single value type: output.subscribed-indices.values
2024/01/12 12:28:47.334 1217 7565 Debug ReflectedParamUpdater extent() != 1 for single value type: input.buffers.allocator-ids.values
2024/01/12 12:28:47.334 1217 7565 Debug ReflectedParamUpdater extent() != 1 for single value type: output.buffers.allocator-ids.values
2024/01/12 12:28:47.335 1217 7565 Debug ReflectedParamUpdater extent() != 1 for single value type: algo.buffers.allocator-ids.values
2024/01/12 12:28:47.335 1217 7565 Debug ReflectedParamUpdater extent() != 1 for single value type: output.buffers.pool-ids.values
2024/01/12 12:28:47.336 1217 7565 Debug ReflectedParamUpdater extent() != 1 for single value type: algo.buffers.pool-ids.values
2024/01/12 12:28:47.342 1217 7565 Info CCodecConfig query failed after returning 9 values (BAD_INDEX)
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig c2 config diff is Dict {
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   c2::u32 coded.bitrate.value = 64000
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   c2::u32 coded.pl.level = 0
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   c2::u32 coded.pl.profile = 8192
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   c2::u32 coding.aac-sbr-mode.value = 3
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   c2::u32 input.buffers.max-size.value = 2048
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   c2::u32 input.delay.value = 0
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   string input.media-type.value = "audio/raw"
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   string output.media-type.value = "audio/mp4a-latm"
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   c2::u32 raw.channel-count.value = 1
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig   c2::u32 raw.sample-rate.value = 44100
2024/01/12 12:28:47.342 1217 7565 Debug CCodecConfig }
2024/01/12 12:28:47.343 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:924) VideoRecorder::createAudioCodec - Media format:
2024/01/12 12:28:47.343 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:925) VideoRecorder::createAudioCodec   - MIME type:        audio/mp4a-latm
2024/01/12 12:28:47.343 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:926) VideoRecorder::createAudioCodec   - Channels:         1
2024/01/12 12:28:47.343 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:927) VideoRecorder::createAudioCodec   - Sample rate:      44100
2024/01/12 12:28:47.343 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:928) VideoRecorder::createAudioCodec   - Bitrate:          128000
2024/01/12 12:28:47.343 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:929) VideoRecorder::createAudioCodec   - Max input size:   65536
2024/01/12 12:28:47.343 1217 1276 Info AVProMovieCapture ??????? (VideoRecorder.cpp:930) VideoRecorder::createAudioCodec   - PCM encoding:     PCMEncoding16Bit
2024/01/12 12:28:47.343 1217 1276 Debug MediaCodec shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.343 1217 1276 Debug MediaCodec   }
2024/01/12 12:28:47.343 1217 7565 Debug CCodec [c2.android.aac.encoder] buffers are bound to CCodec for this session
2024/01/12 12:28:47.343 1217 7565 Debug CCodecConfig no c2 equivalents for flags
2024/01/12 12:28:47.343 1217 7565 Debug CCodecConfig no c2 equivalents for encoder
2024/01/12 12:28:47.345 1217 7565 Debug CCodecConfig c2 config diff is   c2::u32 coded.bitrate.value = 128000
2024/01/12 12:28:47.346 1217 7565 Warn Codec2Client query -- param skipped: index = 1107298332.
2024/01/12 12:28:47.346 1217 7565 Debug CCodec setup formats input: AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t sample-rate = 44100
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t channel-count = 1
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t max-input-size = 65536
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   string mime = "audio/raw"
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t android._config-pcm-encoding = 2
2024/01/12 12:28:47.346 1217 7565 Debug CCodec }
2024/01/12 12:28:47.346 1217 7565 Debug CCodec setup formats output: AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t sample-rate = 44100
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t bitrate = 128000
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t channel-count = 1
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t level = 0
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t max-bitrate = 128000
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   string mime = "audio/mp4a-latm"
2024/01/12 12:28:47.346 1217 7565 Debug CCodec   int32_t profile = 2
2024/01/12 12:28:47.346 1217 7565 Debug CCodec }
2024/01/12 12:28:47.347 1217 7565 Info CCodecConfig query failed after returning 9 values (BAD_INDEX)
2024/01/12 12:28:47.347 1217 7565 Info MediaCodec MediaCodec will operate in async mode
2024/01/12 12:28:47.347 1217 1276 Debug MediaCodec keep callback message for reclaim
2024/01/12 12:28:47.348 1217 7565 Warn Codec2Client query -- param skipped: index = 1342179345.
2024/01/12 12:28:47.349 1217 7565 Warn Codec2Client query -- param skipped: index = 2415921170.
2024/01/12 12:28:47.349 1217 7565 Warn Codec2Client query -- param skipped: index = 3254792206.
2024/01/12 12:28:47.349 1217 7565 Warn Codec2Client query -- param skipped: index = 3254792194.
2024/01/12 12:28:47.350 1217 7565 Debug CCodecBufferChannel [c2.android.aac.encoder#462] Created input block pool with allocatorID 16 => poolID 49 - OK (0)
2024/01/12 12:28:47.352 1217 7565 Info CCodecBufferChannel [c2.android.aac.encoder#462] Created output block pool with allocatorID 16 => poolID 233 - OK
2024/01/12 12:28:47.352 1217 7565 Debug CCodecBufferChannel [c2.android.aac.encoder#462] Configured output block pool ids 233 => OK
2024/01/12 12:28:47.352 1217 7565 Debug CCodecBufferChannel [c2.android.aac.encoder#462] start: updating output delay 0
2024/01/12 12:28:47.354 1217 7565 Info CCodecBufferChannel pipelineRoom(3) is <= numClientBuffers(3). Not signalling any more buffers to client
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel [c2.android.aac.encoder#462] sending CSD : output format changed to AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel   int32_t sample-rate = 44100
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel   int32_t bitrate = 128000
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel   int32_t channel-count = 1
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel   int32_t level = 0
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel   int32_t max-bitrate = 128000
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel   string mime = "audio/mp4a-latm"
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel   int32_t profile = 2
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel   Buffer csd-0 = {
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel     00000000:  12 08                                             ..
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel   }
2024/01/12 12:28:47.354 1217 7565 Debug CCodecBufferChannel }
2024/01/12 12:28:47.354 1217 1276 Warn libOpenSLES Leaving Object::GetInterface (SL_RESULT_FEATURE_UNSUPPORTED)
2024/01/12 12:28:47.355 1217 1276 Warn libOpenSLES Conversion from OpenSL ES positional channel mask 0x4 to Android mask 0 loses channels
2024/01/12 12:28:47.355 1217 1276 Info libOpenSLES Emulating old channel mask behavior (ignoring positional mask 0x4, using default mask 0x10 based on channel count of 1)
2024/01/12 12:28:47.411 1217 1276 Info AudioRecord createRecord_l(1882026607): AUDIO_INPUT_FLAG_FAST successful; frameCount 0 -> 4096
2024/01/12 12:28:47.412 1217 1276 Info AVProMovieCapture ??????? (PluginState.cpp:71) PluginState::RegisterRecorder - Registered handle 38672
2024/01/12 12:28:47.412 1217 1276 Info AVProMovieCapture ??????? (PluginInterface.cpp:212) AVPMC_CreateRecorderVideo: newRecorderHandle = 38672
2024/01/12 12:28:47.554 1217 7570 Info AVProMovieCapture ??????? (VideoRecorder.cpp:714) VideoRecorder::videoCaptureThread - got input buffer of size: 460800
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] onWorkDone: updating output delay 4
2024/01/12 12:28:47.578 1217 7560 Debug Codec2-OutputBufferQueue set max dequeue count 11 from update
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] sending CSD : output format changed to AMessage(what = 0x00000000) = {
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t bitrate = 2500000
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t bitrate-mode = 1
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   Rect crop(0, 0, 639, 479)
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t width = 640
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t color-standard = 1
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t color-range = 2
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t color-transfer = 3
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t feature-secure-playback = 0
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t frame-rate = 30
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t height = 480
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t intra-refresh-period = 0
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t max-bitrate = 2500000
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   string mime = "video/avc"
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t priority = 0
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t profile = 8
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   int32_t level = 256
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   Buffer csd-0 = {
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel     00000000:  00 00 00 01 67 64 00 1e  ac b4 05 01 ed 35 01 01  ....gd.......5..
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel     00000010:  01 40 3f 94 0a ce e6 b2  80 23 68 50 9a 80        .@?......#hP..
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   }
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   Buffer csd-1 = {
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel     00000000:  00 00 00 01 68 ee 06 f2  c0                       ....h....
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel   }
2024/01/12 12:28:47.578 1217 7560 Debug CCodecBufferChannel }
2024/01/12 12:28:47.580 1217 7572 Error Utils csd0 too small
2024/01/12 12:28:47.580 1217 7572 Error ExtendedUtils csd0 too small
2024/01/12 12:28:47.580 1217 7572 Debug MPEG4Writer fpathconf _PC_FILESIZEBITS:64
2024/01/12 12:28:47.580 1217 7572 Debug MPEG4Writer File size limit set to 4503599627370495 bytes implicitly
2024/01/12 12:28:47.580 1217 7572 Debug MPEG4Writer MP4WtrCtrlHlpLooper Started
2024/01/12 12:28:47.580 1217 7572 Info MPEG4Writer limits: 4503599627370495/0 bytes/us, bit rate: -1 bps and the estimated moov size 3192 bytes
2024/01/12 12:28:47.609 1217 7580 Info MPEG4Writer setStartTimestampUs: 0
2024/01/12 12:28:47.609 1217 7580 Info MPEG4Writer Earliest track starting time: 0
2024/01/12 12:28:48.369 1217 1572 Debug PipelineWatcher onInputBufferReleased: frameIndex not found (29); ignored
2024/01/12 12:28:50.324 1217 1556 Debug CCodecBufferChannel [c2.android.aac.encoder#462] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0]
2024/01/12 12:28:50.325 1217 1556 Debug PipelineWatcher DEBUG: elapsed 0 / 4
2024/01/12 12:28:50.327 1217 1556 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] DEBUG: elapsed: n=8 [in=0 pipeline=0 out=4]
2024/01/12 12:28:50.327 1217 1556 Debug PipelineWatcher DEBUG: elapsed 0 / 8
2024/01/12 12:28:50.509 1217 1572 Debug PipelineWatcher onInputBufferReleased: frameIndex not found (97); ignored
2024/01/12 12:28:51.781 1217 7489 Warn Unity Camera2: Capture session failed Regular reason 0
2024/01/12 12:28:52.110 1217 1566 Debug BufferPoolAccessor2.0 evictor expired: 1, evicted: 0
2024/01/12 12:28:53.114 1217 1566 Debug BufferPoolAccessor2.0 bufferpool2 0xb40000797d6817d8 : 4(262144 size) total buffers - 4(262144 size) used buffers - 1/5 (recycle/alloc) - 0/0 (fetch/transfer)
2024/01/12 12:28:53.114 1217 1566 Debug BufferPoolAccessor2.0 evictor expired: 2, evicted: 1
2024/01/12 12:28:53.656 1217 1556 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] DEBUG: elapsed: n=8 [in=0 pipeline=0 out=4]
2024/01/12 12:28:53.656 1217 1556 Debug PipelineWatcher DEBUG: elapsed 1 / 8
2024/01/12 12:28:56.126 1217 7489 Warn Unity Camera2: Capture session failed Regular reason 0
2024/01/12 12:28:56.927 1217 1572 Debug PipelineWatcher onInputBufferReleased: frameIndex not found (290); ignored
2024/01/12 12:28:56.964 1217 1556 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] DEBUG: elapsed: n=8 [in=0 pipeline=0 out=4]
2024/01/12 12:28:56.964 1217 1556 Debug PipelineWatcher DEBUG: elapsed 0 / 8
2024/01/12 12:28:57.395 1217 7489 Warn Unity Camera2: Capture session failed Regular reason 0
2024/01/12 12:28:58.168 1217 1572 Debug PipelineWatcher onInputBufferReleased: frameIndex not found (327); ignored
2024/01/12 12:29:00.271 1217 7489 Warn Unity Camera2: Capture session failed Regular reason 0
2024/01/12 12:29:00.285 1217 1556 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] DEBUG: elapsed: n=8 [in=0 pipeline=0 out=4]
2024/01/12 12:29:00.285 1217 1556 Debug PipelineWatcher DEBUG: elapsed 1 / 8
2024/01/12 12:29:00.736 1217 7489 Warn Unity Camera2: Capture session failed Regular reason 0
2024/01/12 12:29:00.932 1217 7489 Warn Unity Camera2: Capture session failed Regular reason 0
2024/01/12 12:29:01.217 1217 1276 Info Unity [AVProMovieCapture] Stopping capture 38672
2024/01/12 12:29:01.217 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StopCapture(Boolean, Boolean, Boolean)
2024/01/12 12:29:01.217 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:DrawPauseResumeButtons()
2024/01/12 12:29:01.217 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:GUI_RecordingStatus()
2024/01/12 12:29:01.217 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/12 12:29:01.217 1217 1276 Info Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/12 12:29:01.217 1217 1276 Info Unity 
2024/01/12 12:29:01.234 1217 7581 Verbose MediaWriter Track event err/info msg:101, trackId:2, type:1000,val:0
2024/01/12 12:29:01.234 1217 7581 Info MPEG4Writer Received total/0-length (0/0) buffers and encoded 0 frames. - Audio
2024/01/12 12:29:01.234 1217 7581 Info MPEG4Writer Audio track drift time: 0 us
2024/01/12 12:29:01.235 1217 7580 Verbose MediaWriter Track event err/info msg:101, trackId:1, type:1000,val:0
2024/01/12 12:29:01.235 1217 7580 Info MPEG4Writer Received total/0-length (419/1) buffers and encoded 419 frames. - Video
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer reset()
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer Audio track stopping. Stop source
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer Audio track source stopping
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer Audio track source stopped
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer Audio track stopped. Status:0. Stop source
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer Video track stopping. Stop source
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer Video track source stopping
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer Video track source stopped
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer Video track stopped. Status:0. Stop source
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer Duration from tracks range is [0, 13685136] us
2024/01/12 12:29:01.236 1217 7578 Debug MPEG4Writer 0 chunks are written in the last batch
2024/01/12 12:29:01.236 1217 7572 Debug MPEG4Writer WriterThread stopped. Status:0
2024/01/12 12:29:01.236 1217 7572 Info MPEG4Writer Adjust the moov start time from 0 us -> 0 us
2024/01/12 12:29:01.239 1217 7572 Info MPEG4Writer The mp4 file will not be streamable.
2024/01/12 12:29:01.239 1217 7572 Info MPEG4Writer MOOV atom was written to the file
2024/01/12 12:29:01.239 1217 7572 Debug MPEG4Writer release()
2024/01/12 12:29:01.239 1217 7572 Debug MPEG4Writer ftruncate mPreAllocateFileEndOffset:94768 mOffset:93577 mMdatEndOffset:87312 diff:1191
2024/01/12 12:29:01.244 1217 7572 Debug MPEG4Writer final fsync() takes 4 ms, file size 93577
2024/01/12 12:29:01.245 1217 7572 Debug MPEG4Writer MP4WtrCtrlHlpLooper stopped
2024/01/12 12:29:01.245 1217 7572 Debug MPEG4Writer Top 5 write durations(microseconds): #1:94 #2:168 #3:308 #4:327 #5:2412
2024/01/12 12:29:01.245 1217 7572 Debug MPEG4Writer reset()
2024/01/12 12:29:01.245 1217 7572 Debug MPEG4Writer Video track stopping. Stop source
2024/01/12 12:29:01.245 1217 7572 Error MPEG4Writer Stop() called but track is not started or stopped
2024/01/12 12:29:01.249 1217 7572 Debug MPEG4Writer Audio track stopping. Stop source
2024/01/12 12:29:01.249 1217 7572 Error MPEG4Writer Stop() called but track is not started or stopped
2024/01/12 12:29:02.220 1217 7559 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] MediaCodec discarded an unknown buffer
2024/01/12 12:29:02.221 1217 7559 Debug CCodecBufferChannel [c2.qti.avc.encoder#775] MediaCodec discarded an unknown buffer
2024/01/12 12:29:02.242 1217 7565 Debug CCodecBufferChannel [c2.android.aac.encoder#462] MediaCodec discarded an unknown buffer
2024/01/12 12:29:02.242 1217 7565 Debug CCodecBufferChannel [c2.android.aac.encoder#462] MediaCodec discarded an unknown buffer
2024/01/12 12:29:02.242 1217 7565 Debug CCodecBufferChannel [c2.android.aac.encoder#462] MediaCodec discarded an unknown buffer
2024/01/12 12:29:02.242 1217 7922 Info hw-BpHwBinder onLastStrongRef automatically unlinking death recipients
2024/01/12 12:29:02.247 1217 7565 Debug BufferPoolAccessor2.0 bufferpool2 0xb40000797d6817d8 : 0(0 size) total buffers - 0(0 size) used buffers - 1/5 (recycle/alloc) - 0/0 (fetch/transfer)
2024/01/12 12:29:02.247 1217 7565 Debug BufferPoolAccessor2.0 Destruction - bufferpool2 0xb40000797d6817d8 cached: 0/0M, 0/0% in use; allocs: 5, 20% recycled; transfers: 0, 0% unfetched
2024/01/12 12:29:02.253 1217 7924 Info hw-BpHwBinder onLastStrongRef automatically unlinking death recipients
2024/01/12 12:29:02.262 1217 1276 Info AVProMovieCapture ??????? (PluginState.cpp:82) Deregistered handle 38672
2024/01/12 12:29:02.282 1217 1276 Info Unity [AVProMovieCapture] File processing complete
2024/01/12 12:29:02.282 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:Process(Stream, Stream)
2024/01/12 12:29:02.282 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:ProcessFile(String, String, Options)
2024/01/12 12:29:02.282 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:ProcessFile(String, Boolean, Options)
2024/01/12 12:29:02.282 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:ApplyPostOperations(String, VideoEncoderHints, String)
2024/01/12 12:29:02.282 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StopCapture(Boolean, Boolean, Boolean)
2024/01/12 12:29:02.282 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:DrawPauseResumeButtons()
2024/01/12 12:29:02.282 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:GUI_RecordingStatus()
2024/01/12 12:29:02.282 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/12 12:29:02.282 1217 1276 Info Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/12 12:29:02.282 1217 1276 Info Unity 
2024/01/12 12:29:02.294 1217 1276 Info Unity [AVProMovieCapture] - Moving file from: '/storage/emulated/0/Android/data/jp.test.inc.appname/files/Captures/Demo4Webcam-0_2024-01-12_12-28-47_640x480.mp4', to: '/storage/emulated/0/Android/data/jp.test.inc.appname/files/Captures/Demo4Webcam-0_2024-01-12_12-28-47_640x480.mp4'
2024/01/12 12:29:02.294 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:ProcessFile(String, Boolean, Options)
2024/01/12 12:29:02.294 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:ApplyPostOperations(String, VideoEncoderHints, String)
2024/01/12 12:29:02.294 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StopCapture(Boolean, Boolean, Boolean)
2024/01/12 12:29:02.294 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:DrawPauseResumeButtons()
2024/01/12 12:29:02.294 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:GUI_RecordingStatus()
2024/01/12 12:29:02.294 1217 1276 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/12 12:29:02.294 1217 1276 Info Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/12 12:29:02.294 1217 1276 Info Unity 
2024/01/12 12:29:07.248 1217 1566 Debug BufferPoolAccessor2.0 evictor expired: 1, evicted: 0
Chris-RH commented 5 months ago

We are looking into this. Its a difficult one, because there’s no error output from our code so as far we’re concerned the mic set-up worked. So it is most likely something to do with the microphone hardware. At the moment we're not sure how far we can get with solving this one without having the hardware to hand.

kkkkoyo commented 5 months ago

Thank you for confirming. I look forward to working with you.

kkkkoyo commented 5 months ago

I tried again by uninstalling and re-downloading the app. The video was successfully saved, but no audio was included. MediaInfo shows it as having Audio, but when I look at the waveform, it contains nothing. I have already allowed microphone permissions from the settings. I will add a log as well, just to be sure.

https://github.com/RenderHeads/UnityPlugin-AVProMovieCapture/assets/19504762/7661f277-1622-43b1-a1ec-4ec6f8496a02


0001/01/01 00:00:00.000 -1 -1 Info  --------- beginning of main
2024/01/17 12:28:34.103 6377 6443 Warn Unity [AVProMovieCapture] 'OutputPath.RelativeToProject' is not supported on Android, defaulting to 'OutputPath.RelativeToPeristentData'
2024/01/17 12:28:34.103 6377 6443 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:GetFolder(OutputPath, String)
2024/01/17 12:28:34.103 6377 6443 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:GenerateFilePath(OutputPath, String, String)
2024/01/17 12:28:34.103 6377 6443 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:GenerateFilename()
2024/01/17 12:28:34.103 6377 6443 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureFromTexture:PrepareCapture()
2024/01/17 12:28:34.103 6377 6443 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureFromWebCamTexture:PrepareCapture()
2024/01/17 12:28:34.103 6377 6443 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
2024/01/17 12:28:34.103 6377 6443 Warn Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/17 12:28:34.103 6377 6443 Warn Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/17 12:28:34.103 6377 6443 Warn Unity 
2024/01/17 12:28:34.104 6377 6443 Info Unity [AVProMovieCapture]: finalDirectory = /storage/emulated/0/Android/data/jp.curiosity_inc.pettweet/files/Captures
2024/01/17 12:28:34.104 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:GenerateFilename()
2024/01/17 12:28:34.104 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureFromTexture:PrepareCapture()
2024/01/17 12:28:34.104 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureFromWebCamTexture:PrepareCapture()
2024/01/17 12:28:34.104 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
2024/01/17 12:28:34.104 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/17 12:28:34.104 6377 6443 Info Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/17 12:28:34.104 6377 6443 Info Unity 
2024/01/17 12:28:34.107 6377 6443 Info Unity [AVProMovieCapture] Start File Capture: 640x480 @ 30.00fps [RGBA32] vcodec:'H264' audio source:'Unity' 48000hz 2 channels acodec:'AAC' to file: '/storage/emulated/0/Android/data/jp.curiosity_inc.pettweet/files/Captures/Demo4Webcam-0_2024-01-17_12-28-34_640x480.mp4'
2024/01/17 12:28:34.107 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:PrepareCapture()
2024/01/17 12:28:34.107 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureFromWebCamTexture:PrepareCapture()
2024/01/17 12:28:34.107 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StartCapture()
2024/01/17 12:28:34.107 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/17 12:28:34.107 6377 6443 Info Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/17 12:28:34.107 6377 6443 Info Unity 
2024/01/17 12:28:34.107 6377 6443 Info AVProMovieCapture ??????? (PluginInterface.cpp:70) AVPMC_CreateRecorderVideo - 5.2.0-full
2024/01/17 12:28:34.107 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:49) IVideoRecorder::newVideoRecorder - android api level is 31
2024/01/17 12:28:34.107 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:56) IVideoRecorder::newVideoRecorder - creating video recorder for API 28
2024/01/17 12:28:34.107 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:1102) VideoRecorder::createMuxer - creating file at: /storage/emulated/0/Android/data/jp.curiosity_inc.pettweet/files/Captures/Demo4Webcam-0_2024-01-17_12-28-34_640x480.mp4
2024/01/17 12:28:34.108 6377 6443 Debug MPEG4Writer PreAllocation enabled
2024/01/17 12:28:34.108 6377 6443 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - media codec name: c2.qti.avc.encoder
2024/01/17 12:28:34.109 6377 6443 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - supported bitrates: [1-220,000,000]
2024/01/17 12:28:34.110 6377 6443 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - supported widths: [128-8,192]
2024/01/17 12:28:34.110 6377 6443 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - supported heights: [128-8,192]
2024/01/17 12:28:34.111 6377 6443 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - width alignment: 2
2024/01/17 12:28:34.111 6377 6443 Info AVProMovieCapture ??????? Manager.GetFormatAdjustmentForEncode - height alignment: 2
2024/01/17 12:28:34.113 6377 7128 Debug CCodec allocate(c2.qti.avc.encoder)
2024/01/17 12:28:34.115 6377 7128 Info CCodec setting up 'default' as default (vendor) store
2024/01/17 12:28:34.118 6377 7128 Info CCodec Created component [c2.qti.avc.encoder]
2024/01/17 12:28:34.118 6377 7128 Debug CCodecConfig read media type: video/avc
2024/01/17 12:28:34.120 6377 7128 Debug ReflectedParamUpdater extent() != 1 for single value type: vendor.qti-ext-enc-info-metadata-cvp.reserved
2024/01/17 12:28:34.120 6377 7128 Debug ReflectedParamUpdater extent() != 1 for single value type: vendor.qti-ext-enc-temporal-layer-bitrate.layerBitrates
2024/01/17 12:28:34.124 6377 7128 Debug ReflectedParamUpdater ignored struct field coding.qp.values
2024/01/17 12:28:34.125 6377 7128 Debug ReflectedParamUpdater ignored struct field coding.gop.values
2024/01/17 12:28:34.126 6377 7128 Debug ReflectedParamUpdater extent() != 1 for single value type: output.buffers.pool-ids.values
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig ignoring local param raw.color (0xc2001809) as it is already supported
2024/01/17 12:28:34.126 6377 7128 Info CCodecConfig query failed after returning 23 values (BAD_INDEX)
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig c2 config diff is Dict {
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 algo.bitrate-mode.value = 3
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 algo.complexity.value = 100
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::i32 algo.priority.value = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::float algo.rate.value = 30
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 algo.secure-mode.value = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 coded.bitrate.value = 20000000
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::float coded.frame-rate.value = 30
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 coded.pl.level = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 coded.pl.profile = 20484
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 coded.vui.color.matrix = 255
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 coded.vui.color.primaries = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 coded.vui.color.range = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 coded.vui.color.transfer = 255
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 coding.intra-refresh.mode = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::float coding.intra-refresh.period = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 coding.request-sync-frame.value = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::i64 coding.sync-frame-interval.value = 1000000
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   Buffer coding.temporal-layering = {
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig     00000000:  10 00 00 00 07 20 01 52  00 00 00 00 00 00 00 00  ..... .R........
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   }
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 default.color.matrix = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 default.color.primaries = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 default.color.range = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 default.color.transfer = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   c2::u32 input.delay.value = 0
2024/01/17 12:28:34.126 6377 7128 Debug CCodecConfig   string input.media-type.value = 
2024/01/17 12:28:34.127 6377 7128 Warn ColorUtils expected specified color aspects (0:0:255:255)
2024/01/17 12:28:34.128 6377 6443 Debug VQApply minquality: codec claims to implement minquality=1
2024/01/17 12:28:34.128 6377 6443 Debug MediaCodec shapeMediaFormat: deltas(1): AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.128 6377 6443 Debug MediaCodec     int32_t android._encoding-quality-level = 1
2024/01/17 12:28:34.128 6377 6443 Debug MediaCodec   }
2024/01/17 12:28:34.128 6377 7128 Debug CCodec [c2.qti.avc.encoder] buffers are bound to CCodec for this session
2024/01/17 12:28:34.128 6377 7128 Debug CCodecConfig no c2 equivalents for color-format
2024/01/17 12:28:34.128 6377 7128 Debug CCodecConfig no c2 equivalents for flags
2024/01/17 12:28:34.128 6377 7128 Debug CCodecConfig no c2 equivalents for encoder
2024/01/17 12:28:34.129 6377 7128 Debug CCodecConfig c2 config diff is   c2::u32 coded.bitrate.value = 2500000
2024/01/17 12:28:34.129 6377 7128 Debug CCodecConfig   c2::u32 raw.pixel-format.value = 2141391876
2024/01/17 12:28:34.129 6377 7128 Debug CCodecConfig   c2::u32 raw.size.height = 480
2024/01/17 12:28:34.129 6377 7128 Debug CCodecConfig   c2::u32 raw.size.width = 640
2024/01/17 12:28:34.131 6377 7128 Warn ColorUtils expected specified color aspects (0:0:255:255)
2024/01/17 12:28:34.131 6377 7128 Warn Codec2Client query -- param skipped: index = 3254781982.
2024/01/17 12:28:34.133 6377 7128 Debug BufferPoolAccessor2.0 Destruction - bufferpool2 0xb40000797d6b5858 cached: 0/0M, 0/0% in use; allocs: 1, 0% recycled; transfers: 0, 0% unfetched
2024/01/17 12:28:34.133 6377 7128 Debug CCodec setup formats input: AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t android._color-format = 2141391876
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   Rect crop(0, 0, 639, 479)
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t color-standard = 130816
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t color-range = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t color-transfer = 65791
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t width = 640
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t android._dataspace = 12648448
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t feature-secure-playback = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t frame-rate = 30
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t height = 480
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t intra-refresh-period = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   string mime = "video/raw"
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t priority = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   Buffer hdr-static-info = {
2024/01/17 12:28:34.133 6377 7128 Debug CCodec     00000000:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
2024/01/17 12:28:34.133 6377 7128 Debug CCodec     00000010:  00 00 00 00 00 00 00 00  00                       .........
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   }
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int64_t android._C2MemoryUsage = 4503599631631104
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t color-format = 2135033992
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t stride = 640
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t slice-height = 480
2024/01/17 12:28:34.133 6377 7128 Debug CCodec }
2024/01/17 12:28:34.133 6377 7128 Debug CCodec setup formats output: AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t bitrate = 2500000
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t bitrate-mode = 1
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   Rect crop(0, 0, 639, 479)
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t width = 640
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t color-standard = 130816
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t color-range = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t color-transfer = 65791
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t feature-secure-playback = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t frame-rate = 30
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t height = 480
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t intra-refresh-period = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t max-bitrate = 2500000
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   string mime = "video/avc"
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t priority = 0
2024/01/17 12:28:34.133 6377 7128 Debug CCodec   int32_t profile = 8
2024/01/17 12:28:34.133 6377 7128 Debug CCodec }
2024/01/17 12:28:34.134 6377 7128 Info CCodecConfig query failed after returning 24 values (BAD_INDEX)
2024/01/17 12:28:34.139 6377 7128 Warn Codec2Client query -- param skipped: index = 1342179345.
2024/01/17 12:28:34.139 6377 7128 Warn Codec2Client query -- param skipped: index = 2415921170.
2024/01/17 12:28:34.139 6377 7128 Warn Codec2Client query -- param skipped: index = 1610614798.
2024/01/17 12:28:34.139 6377 7128 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] Query input allocators returned 0 params => BAD_INDEX (6)
2024/01/17 12:28:34.139 6377 7128 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] Using basic input block pool with poolID 1 => got 1 - OK (0)
2024/01/17 12:28:34.139 6377 7128 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] Query output allocators returned 0 params => BAD_INDEX (6)
2024/01/17 12:28:34.140 6377 7128 Info CCodecBufferChannel [c2.qti.avc.encoder#944] Created output block pool with allocatorID 16 => poolID 1088 - OK
2024/01/17 12:28:34.140 6377 7128 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] Configured output block pool ids 1088 => OK
2024/01/17 12:28:34.140 6377 7128 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] start: updating output delay 4
2024/01/17 12:28:34.142 6377 7128 Debug CCodecBuffers [c2.qti.avc.encoder#944:2D-BB-Input] updating image-data
2024/01/17 12:28:34.142 6377 7128 Debug CCodecBuffers [c2.qti.avc.encoder#944:2D-BB-Input] updating stride = 640, width: 640, height: 480
2024/01/17 12:28:34.142 6377 7128 Debug CCodecBuffers [c2.qti.avc.encoder#944:2D-BB-Input] updating vstride = 480
2024/01/17 12:28:34.148 6377 7128 Debug CCodecBuffers [c2.qti.avc.encoder#944:2D-BB-Input[N]] updating image-data
2024/01/17 12:28:34.148 6377 7128 Debug CCodecBuffers [c2.qti.avc.encoder#944:2D-BB-Input[N]] updating stride = 640, width: 640, height: 480
2024/01/17 12:28:34.148 6377 7128 Debug CCodecBuffers [c2.qti.avc.encoder#944:2D-BB-Input[N]] updating vstride = 480
2024/01/17 12:28:34.148 6377 7128 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] flushed work; ignored.
2024/01/17 12:28:34.148 6377 7127 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] MediaCodec discarded an unknown buffer
2024/01/17 12:28:34.149 6377 7127 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] MediaCodec discarded an unknown buffer
2024/01/17 12:28:34.149 6377 7127 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] MediaCodec discarded an unknown buffer
2024/01/17 12:28:34.150 6377 7127 Debug CCodecBufferChannel [c2.qti.avc.encoder#944] MediaCodec discarded an unknown buffer
2024/01/17 12:28:34.152 6377 7128 Info hw-BpHwBinder onLastStrongRef automatically unlinking death recipients
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? Manager.GetVideoCodecImageCapabilities - Colour format is YUV8_420_Biplanar
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:503) VideoRecorder::createVideoCodec - Media format:
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:504) VideoRecorder::createVideoCodec   - MIME type:        video/avc
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:505) VideoRecorder::createVideoCodec   - Width:            640
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:506) VideoRecorder::createVideoCodec   - Height:           480
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:507) VideoRecorder::createVideoCodec   - Frame rate:       30.000000
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:508) VideoRecorder::createVideoCodec   - Bitrate:          2500000
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:509) VideoRecorder::createVideoCodec   - I-Frame interval: 1.000000
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:510) VideoRecorder::createVideoCodec   - Stride:           640
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:511) VideoRecorder::createVideoCodec   - Slice height:     480
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:512) VideoRecorder::createVideoCodec   - Colour range:     Limited
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:513) VideoRecorder::createVideoCodec   - Profile:          8
2024/01/17 12:28:34.152 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:514) VideoRecorder::createVideoCodec   - Level:            100
2024/01/17 12:28:34.154 6377 7139 Debug CCodec allocate(c2.qti.avc.encoder)
2024/01/17 12:28:34.157 6377 7139 Info CCodec setting up 'default' as default (vendor) store
2024/01/17 12:28:34.159 6377 7139 Info CCodec Created component [c2.qti.avc.encoder]
2024/01/17 12:28:34.159 6377 7139 Debug CCodecConfig read media type: video/avc
2024/01/17 12:28:34.160 6377 7139 Debug ReflectedParamUpdater ignored struct field coding.gop.values
2024/01/17 12:28:34.161 6377 7139 Debug ReflectedParamUpdater extent() != 1 for single value type: output.buffers.pool-ids.values
2024/01/17 12:28:34.161 6377 7139 Debug ReflectedParamUpdater extent() != 1 for single value type: vendor.qti-ext-enc-temporal-layer-bitrate.layerBitrates
2024/01/17 12:28:34.167 6377 7139 Debug ReflectedParamUpdater ignored struct field coding.qp.values
2024/01/17 12:28:34.167 6377 7139 Debug ReflectedParamUpdater extent() != 1 for single value type: vendor.qti-ext-enc-info-metadata-cvp.reserved
2024/01/17 12:28:34.167 6377 7139 Debug CCodecConfig ignoring local param raw.color (0xc2001809) as it is already supported
2024/01/17 12:28:34.168 6377 7139 Info CCodecConfig query failed after returning 23 values (BAD_INDEX)
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig c2 config diff is Dict {
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 algo.bitrate-mode.value = 3
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 algo.complexity.value = 100
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::i32 algo.priority.value = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::float algo.rate.value = 30
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 algo.secure-mode.value = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 coded.bitrate.value = 20000000
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::float coded.frame-rate.value = 30
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 coded.pl.level = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 coded.pl.profile = 20484
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 coded.vui.color.matrix = 255
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 coded.vui.color.primaries = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 coded.vui.color.range = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 coded.vui.color.transfer = 255
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 coding.intra-refresh.mode = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::float coding.intra-refresh.period = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 coding.request-sync-frame.value = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::i64 coding.sync-frame-interval.value = 1000000
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   Buffer coding.temporal-layering = {
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig     00000000:  10 00 00 00 07 20 01 52  00 00 00 00 00 00 00 00  ..... .R........
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   }
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 default.color.matrix = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 default.color.primaries = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 default.color.range = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 default.color.transfer = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   c2::u32 input.delay.value = 0
2024/01/17 12:28:34.168 6377 7139 Debug CCodecConfig   string input.media-type.value = 
2024/01/17 12:28:34.168 6377 7139 Warn ColorUtils expected specified color aspects (0:0:255:255)
2024/01/17 12:28:34.170 6377 6443 Debug VQApply minquality: codec claims to implement minquality=1
2024/01/17 12:28:34.170 6377 6443 Debug MediaCodec shapeMediaFormat: deltas(1): AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.170 6377 6443 Debug MediaCodec     int32_t android._encoding-quality-level = 1
2024/01/17 12:28:34.170 6377 6443 Debug MediaCodec   }
2024/01/17 12:28:34.170 6377 7139 Debug CCodec [c2.qti.avc.encoder] buffers are bound to CCodec for this session
2024/01/17 12:28:34.170 6377 7139 Debug CCodecConfig no c2 equivalents for color-format
2024/01/17 12:28:34.170 6377 7139 Debug CCodecConfig no c2 equivalents for color-standard
2024/01/17 12:28:34.170 6377 7139 Debug CCodecConfig no c2 equivalents for flags
2024/01/17 12:28:34.170 6377 7139 Debug CCodecConfig no c2 equivalents for encoder
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig c2 config diff is   c2::u32 coded.bitrate.value = 2500000
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 coded.pl.level = 20488
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 coded.vui.color.matrix = 1
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 coded.vui.color.primaries = 1
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 coded.vui.color.range = 2
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 coded.vui.color.transfer = 3
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 raw.color.matrix = 1
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 raw.color.primaries = 1
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 raw.color.range = 2
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 raw.color.transfer = 3
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 raw.pixel-format.value = 2141391876
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 raw.size.height = 480
2024/01/17 12:28:34.171 6377 7139 Debug CCodecConfig   c2::u32 raw.size.width = 640
2024/01/17 12:28:34.171 6377 7139 Warn Codec2Client query -- param skipped: index = 3254781982.
2024/01/17 12:28:34.172 6377 7139 Debug BufferPoolAccessor2.0 Destruction - bufferpool2 0xb40000797d6c2ac8 cached: 0/0M, 0/0% in use; allocs: 1, 0% recycled; transfers: 0, 0% unfetched
2024/01/17 12:28:34.172 6377 7139 Debug CCodec setup formats input: AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t android._color-format = 2141391876
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   Rect crop(0, 0, 639, 479)
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t color-standard = 1
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t color-range = 2
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t color-transfer = 3
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t width = 640
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t android._dataspace = 260
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t feature-secure-playback = 0
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t frame-rate = 30
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t height = 480
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t intra-refresh-period = 0
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   string mime = "video/raw"
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t priority = 0
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   Buffer hdr-static-info = {
2024/01/17 12:28:34.172 6377 7139 Debug CCodec     00000000:  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
2024/01/17 12:28:34.172 6377 7139 Debug CCodec     00000010:  00 00 00 00 00 00 00 00  00                       .........
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   }
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int64_t android._C2MemoryUsage = 4503599631631104
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t color-format = 2135033992
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t stride = 640
2024/01/17 12:28:34.172 6377 7139 Debug CCodec   int32_t slice-height = 480
2024/01/17 12:28:34.172 6377 7139 Debug CCodec }
2024/01/17 12:28:34.173 6377 7139 Debug CCodec setup formats output: AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t bitrate = 2500000
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t bitrate-mode = 1
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   Rect crop(0, 0, 639, 479)
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t width = 640
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t color-standard = 1
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t color-range = 2
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t color-transfer = 3
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t feature-secure-playback = 0
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t frame-rate = 30
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t height = 480
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t intra-refresh-period = 0
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t max-bitrate = 2500000
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   string mime = "video/avc"
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t priority = 0
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t profile = 8
2024/01/17 12:28:34.173 6377 7139 Debug CCodec   int32_t level = 256
2024/01/17 12:28:34.173 6377 7139 Debug CCodec }
2024/01/17 12:28:34.173 6377 7139 Info CCodecConfig query failed after returning 24 values (BAD_INDEX)
2024/01/17 12:28:34.174 6377 6443 Info AVProMovieCapture ??????? (VideoRecorderAPI28.cpp:228) VideoRecorderAPI28::createVideoCodecPostConfigure - codec name is: c2.qti.avc.encoder
2024/01/17 12:28:34.174 6377 7138 Info MediaCodec MediaCodec will operate in async mode
2024/01/17 12:28:34.174 6377 6443 Debug MediaCodec keep callback message for reclaim
2024/01/17 12:28:34.175 6377 7139 Warn Codec2Client query -- param skipped: index = 1342179345.
2024/01/17 12:28:34.175 6377 7139 Warn Codec2Client query -- param skipped: index = 2415921170.
2024/01/17 12:28:34.175 6377 7139 Warn Codec2Client query -- param skipped: index = 1610614798.
2024/01/17 12:28:34.175 6377 7139 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] Query input allocators returned 0 params => BAD_INDEX (6)
2024/01/17 12:28:34.175 6377 7139 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] Using basic input block pool with poolID 1 => got 1 - OK (0)
2024/01/17 12:28:34.175 6377 7139 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] Query output allocators returned 0 params => BAD_INDEX (6)
2024/01/17 12:28:34.176 6377 7139 Info CCodecBufferChannel [c2.qti.avc.encoder#765] Created output block pool with allocatorID 16 => poolID 1089 - OK
2024/01/17 12:28:34.176 6377 7139 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] Configured output block pool ids 1089 => OK
2024/01/17 12:28:34.176 6377 7139 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] start: updating output delay 4
2024/01/17 12:28:34.177 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:622) VideoRecorder::createVideoCodec - plane 0 row stride: 640
2024/01/17 12:28:34.177 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:623) VideoRecorder::createVideoCodec - plane 1 row stride: 640
2024/01/17 12:28:34.177 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:624) VideoRecorder::createVideoCodec - slice height:       480
2024/01/17 12:28:34.177 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:625) VideoRecorder::createVideoCodec - pixel format:       YUV8_420_BiPlanar
2024/01/17 12:28:34.178 6377 7139 Debug CCodecBuffers [c2.qti.avc.encoder#765:2D-BB-Input] updating image-data
2024/01/17 12:28:34.178 6377 7139 Debug CCodecBuffers [c2.qti.avc.encoder#765:2D-BB-Input] updating stride = 640, width: 640, height: 480
2024/01/17 12:28:34.178 6377 7139 Debug CCodecBuffers [c2.qti.avc.encoder#765:2D-BB-Input] updating vstride = 480
2024/01/17 12:28:34.179 6377 7143 Debug CCodec allocate(c2.android.aac.encoder)
2024/01/17 12:28:34.181 6377 7143 Info CCodec setting up 'default' as default (vendor) store
2024/01/17 12:28:34.184 6377 7143 Info CCodec Created component [c2.android.aac.encoder]
2024/01/17 12:28:34.184 6377 7143 Debug CCodecConfig read media type: audio/mp4a-latm
2024/01/17 12:28:34.186 6377 7139 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] flushed work; ignored.
2024/01/17 12:28:34.186 6377 7143 Debug ReflectedParamUpdater extent() != 1 for single value type: algo.buffers.max-count.values
2024/01/17 12:28:34.186 6377 7143 Debug ReflectedParamUpdater extent() != 1 for single value type: output.subscribed-indices.values
2024/01/17 12:28:34.186 6377 7143 Debug ReflectedParamUpdater extent() != 1 for single value type: input.buffers.allocator-ids.values
2024/01/17 12:28:34.186 6377 7143 Debug ReflectedParamUpdater extent() != 1 for single value type: output.buffers.allocator-ids.values
2024/01/17 12:28:34.187 6377 7143 Debug ReflectedParamUpdater extent() != 1 for single value type: algo.buffers.allocator-ids.values
2024/01/17 12:28:34.187 6377 7143 Debug ReflectedParamUpdater extent() != 1 for single value type: output.buffers.pool-ids.values
2024/01/17 12:28:34.187 6377 7143 Debug ReflectedParamUpdater extent() != 1 for single value type: algo.buffers.pool-ids.values
2024/01/17 12:28:34.189 6377 7143 Info CCodecConfig query failed after returning 9 values (BAD_INDEX)
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig c2 config diff is Dict {
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   c2::u32 coded.bitrate.value = 64000
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   c2::u32 coded.pl.level = 0
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   c2::u32 coded.pl.profile = 8192
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   c2::u32 coding.aac-sbr-mode.value = 3
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   c2::u32 input.buffers.max-size.value = 2048
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   c2::u32 input.delay.value = 0
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   string input.media-type.value = "audio/raw"
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   string output.media-type.value = "audio/mp4a-latm"
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   c2::u32 raw.channel-count.value = 1
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig   c2::u32 raw.sample-rate.value = 44100
2024/01/17 12:28:34.189 6377 7143 Debug CCodecConfig }
2024/01/17 12:28:34.189 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:924) VideoRecorder::createAudioCodec - Media format:
2024/01/17 12:28:34.189 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:925) VideoRecorder::createAudioCodec   - MIME type:        audio/mp4a-latm
2024/01/17 12:28:34.189 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:926) VideoRecorder::createAudioCodec   - Channels:         2
2024/01/17 12:28:34.189 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:927) VideoRecorder::createAudioCodec   - Sample rate:      48000
2024/01/17 12:28:34.189 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:928) VideoRecorder::createAudioCodec   - Bitrate:          128000
2024/01/17 12:28:34.189 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:929) VideoRecorder::createAudioCodec   - Max input size:   65536
2024/01/17 12:28:34.189 6377 6443 Info AVProMovieCapture ??????? (VideoRecorder.cpp:930) VideoRecorder::createAudioCodec   - PCM encoding:     PCMEncoding16Bit
2024/01/17 12:28:34.189 6377 6443 Debug MediaCodec shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.189 6377 6443 Debug MediaCodec   }
2024/01/17 12:28:34.190 6377 7143 Debug CCodec [c2.android.aac.encoder] buffers are bound to CCodec for this session
2024/01/17 12:28:34.190 6377 7143 Debug CCodecConfig no c2 equivalents for flags
2024/01/17 12:28:34.190 6377 7143 Debug CCodecConfig no c2 equivalents for encoder
2024/01/17 12:28:34.190 6377 7143 Debug CCodecConfig c2 config diff is   c2::u32 coded.bitrate.value = 128000
2024/01/17 12:28:34.190 6377 7143 Debug CCodecConfig   c2::u32 input.buffers.max-size.value = 4096
2024/01/17 12:28:34.190 6377 7143 Debug CCodecConfig   c2::u32 raw.channel-count.value = 2
2024/01/17 12:28:34.190 6377 7143 Debug CCodecConfig   c2::u32 raw.sample-rate.value = 48000
2024/01/17 12:28:34.190 6377 7143 Warn Codec2Client query -- param skipped: index = 1107298332.
2024/01/17 12:28:34.190 6377 7143 Debug CCodec setup formats input: AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t sample-rate = 48000
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t channel-count = 2
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t max-input-size = 65536
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   string mime = "audio/raw"
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t android._config-pcm-encoding = 2
2024/01/17 12:28:34.190 6377 7143 Debug CCodec }
2024/01/17 12:28:34.190 6377 7143 Debug CCodec setup formats output: AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t sample-rate = 48000
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t bitrate = 128000
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t channel-count = 2
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t level = 0
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t max-bitrate = 128000
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   string mime = "audio/mp4a-latm"
2024/01/17 12:28:34.190 6377 7143 Debug CCodec   int32_t profile = 2
2024/01/17 12:28:34.190 6377 7143 Debug CCodec }
2024/01/17 12:28:34.191 6377 7143 Info CCodecConfig query failed after returning 9 values (BAD_INDEX)
2024/01/17 12:28:34.191 6377 7143 Info MediaCodec MediaCodec will operate in async mode
2024/01/17 12:28:34.191 6377 6443 Debug MediaCodec keep callback message for reclaim
2024/01/17 12:28:34.191 6377 7143 Warn Codec2Client query -- param skipped: index = 1342179345.
2024/01/17 12:28:34.191 6377 7143 Warn Codec2Client query -- param skipped: index = 2415921170.
2024/01/17 12:28:34.191 6377 7143 Warn Codec2Client query -- param skipped: index = 3254792206.
2024/01/17 12:28:34.191 6377 7143 Warn Codec2Client query -- param skipped: index = 3254792194.
2024/01/17 12:28:34.192 6377 7143 Debug CCodecBufferChannel [c2.android.aac.encoder#944] Created input block pool with allocatorID 16 => poolID 22 - OK (0)
2024/01/17 12:28:34.193 6377 6613 Debug BufferPoolAccessor2.0 bufferpool2 0xb40000797d5ee5b8 : 0(0 size) total buffers - 0(0 size) used buffers - 122/126 (recycle/alloc) - 4/242 (fetch/transfer)
2024/01/17 12:28:34.193 6377 6613 Debug BufferPoolAccessor2.0 Destruction - bufferpool2 0xb40000797d5ee5b8 cached: 0/0M, 0/0% in use; allocs: 126, 97% recycled; transfers: 242, 98% unfetched
2024/01/17 12:28:34.193 6377 7143 Info CCodecBufferChannel [c2.android.aac.encoder#944] Created output block pool with allocatorID 16 => poolID 283 - OK
2024/01/17 12:28:34.193 6377 7143 Debug CCodecBufferChannel [c2.android.aac.encoder#944] Configured output block pool ids 283 => OK
2024/01/17 12:28:34.193 6377 7143 Debug CCodecBufferChannel [c2.android.aac.encoder#944] start: updating output delay 0
2024/01/17 12:28:34.194 6377 7143 Info CCodecBufferChannel pipelineRoom(3) is <= numClientBuffers(3). Not signalling any more buffers to client
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel [c2.android.aac.encoder#944] sending CSD : output format changed to AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel   int32_t sample-rate = 48000
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel   int32_t bitrate = 128000
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel   int32_t channel-count = 2
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel   int32_t level = 0
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel   int32_t max-bitrate = 128000
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel   string mime = "audio/mp4a-latm"
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel   int32_t profile = 2
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel   Buffer csd-0 = {
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel     00000000:  11 90                                             ..
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel   }
2024/01/17 12:28:34.194 6377 7143 Debug CCodecBufferChannel }
2024/01/17 12:28:34.194 6377 6443 Info AVProMovieCapture ??????? (PluginState.cpp:71) PluginState::RegisterRecorder - Registered handle 9664
2024/01/17 12:28:34.194 6377 6443 Info AVProMovieCapture ??????? (PluginInterface.cpp:212) AVPMC_CreateRecorderVideo: newRecorderHandle = 9664
2024/01/17 12:28:34.248 6377 7145 Info AVProMovieCapture ??????? (VideoRecorder.cpp:714) VideoRecorder::videoCaptureThread - got input buffer of size: 460800
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] onWorkDone: updating output delay 4
2024/01/17 12:28:34.256 6377 7139 Debug Codec2-OutputBufferQueue set max dequeue count 11 from update
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] sending CSD : output format changed to AMessage(what = 0x00000000) = {
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t bitrate = 2500000
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t bitrate-mode = 1
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   Rect crop(0, 0, 639, 479)
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t width = 640
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t color-standard = 1
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t color-range = 2
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t color-transfer = 3
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t feature-secure-playback = 0
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t frame-rate = 30
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t height = 480
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t intra-refresh-period = 0
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t max-bitrate = 2500000
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   string mime = "video/avc"
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t prepend-sps-pps-to-idr-frames = 0
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t priority = 0
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t profile = 8
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   int32_t level = 256
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   Buffer csd-0 = {
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel     00000000:  00 00 00 01 67 64 00 1e  ac b4 05 01 ed 35 01 01  ....gd.......5..
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel     00000010:  01 40 3f 94 0a ce e6 b2  80 23 68 50 9a 80        .@?......#hP..
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   }
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   Buffer csd-1 = {
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel     00000000:  00 00 00 01 68 ee 06 f2  c0                       ....h....
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel   }
2024/01/17 12:28:34.256 6377 7139 Debug CCodecBufferChannel }
2024/01/17 12:28:34.257 6377 7148 Error Utils csd0 too small
2024/01/17 12:28:34.257 6377 7148 Error ExtendedUtils csd0 too small
2024/01/17 12:28:34.257 6377 7148 Debug MPEG4Writer fpathconf _PC_FILESIZEBITS:64
2024/01/17 12:28:34.257 6377 7148 Debug MPEG4Writer File size limit set to 4503599627370495 bytes implicitly
2024/01/17 12:28:34.257 6377 7148 Debug MPEG4Writer MP4WtrCtrlHlpLooper Started
2024/01/17 12:28:34.257 6377 7148 Info MPEG4Writer limits: 4503599627370495/0 bytes/us, bit rate: -1 bps and the estimated moov size 3192 bytes
2024/01/17 12:28:34.257 6377 7155 Info MPEG4Writer setStartTimestampUs: 0
2024/01/17 12:28:34.257 6377 7155 Info MPEG4Writer Earliest track starting time: 0
2024/01/17 12:28:34.265 6377 7156 Info MPEG4Writer setStartTimestampUs: 0
2024/01/17 12:28:37.413 6377 6608 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] DEBUG: elapsed: n=8 [in=0 pipeline=0 out=4]
2024/01/17 12:28:37.413 6377 6608 Debug PipelineWatcher DEBUG: elapsed 0 / 8
2024/01/17 12:28:37.413 6377 6608 Debug CCodecBufferChannel [c2.android.aac.encoder#944] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0]
2024/01/17 12:28:37.413 6377 6608 Debug PipelineWatcher DEBUG: elapsed 0 / 4
2024/01/17 12:28:39.133 6377 6612 Debug BufferPoolAccessor2.0 evictor expired: 1, evicted: 0
2024/01/17 12:28:39.434 6377 7143 Debug BufferPoolAccessor2.0 bufferpool2 0xb40000797d6b0768 : 4(262144 size) total buffers - 4(262144 size) used buffers - 156/160 (recycle/alloc) - 4/311 (fetch/transfer)
2024/01/17 12:28:40.133 6377 6612 Debug BufferPoolAccessor2.0 evictor expired: 2, evicted: 0
2024/01/17 12:28:40.741 6377 6608 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] DEBUG: elapsed: n=8 [in=0 pipeline=0 out=4]
2024/01/17 12:28:40.741 6377 6608 Debug PipelineWatcher DEBUG: elapsed 1 / 8
2024/01/17 12:28:40.741 6377 6608 Debug CCodecBufferChannel [c2.android.aac.encoder#944] DEBUG: elapsed: n=4 [in=0 pipeline=0 out=0]
2024/01/17 12:28:40.741 6377 6608 Debug PipelineWatcher DEBUG: elapsed 0 / 4
2024/01/17 12:28:41.419 6377 6443 Info Unity [AVProMovieCapture] Stopping capture 9664
2024/01/17 12:28:41.419 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureBase:StopCapture(Boolean, Boolean, Boolean)
2024/01/17 12:28:41.419 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:DrawPauseResumeButtons()
2024/01/17 12:28:41.419 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:GUI_RecordingStatus()
2024/01/17 12:28:41.419 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/17 12:28:41.419 6377 6443 Info Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/17 12:28:41.419 6377 6443 Info Unity 
2024/01/17 12:28:41.424 6377 7156 Verbose MediaWriter Track event err/info msg:101, trackId:2, type:1000,val:0
2024/01/17 12:28:41.424 6377 7156 Info MPEG4Writer Received total/0-length (335/0) buffers and encoded 335 frames. - Audio
2024/01/17 12:28:41.424 6377 7156 Info MPEG4Writer Audio track drift time: 0 us
2024/01/17 12:28:41.424 6377 7155 Warn MPEG4Writer lastSampleDurationUs -4787 is negative
2024/01/17 12:28:41.425 6377 7155 Verbose MediaWriter Track event err/info msg:101, trackId:1, type:1000,val:0
2024/01/17 12:28:41.425 6377 7155 Info MPEG4Writer Received total/0-length (217/1) buffers and encoded 217 frames. - Video
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer reset()
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer Audio track stopping. Stop source
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer Audio track source stopping
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer Audio track source stopped
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer Audio track stopped. Status:0. Stop source
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer Video track stopping. Stop source
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer Video track source stopping
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer Video track source stopped
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer Video track stopped. Status:0. Stop source
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer Duration from tracks range is [7146666, 7184492] us
2024/01/17 12:28:41.426 6377 7152 Debug MPEG4Writer 0 chunks are written in the last batch
2024/01/17 12:28:41.426 6377 7148 Debug MPEG4Writer WriterThread stopped. Status:0
2024/01/17 12:28:41.426 6377 7148 Info MPEG4Writer Adjust the moov start time from 0 us -> 0 us
2024/01/17 12:28:41.427 6377 7148 Info MPEG4Writer The mp4 file will not be streamable.
2024/01/17 12:28:41.427 6377 7148 Info MPEG4Writer MOOV atom was written to the file
2024/01/17 12:28:41.427 6377 7148 Debug MPEG4Writer release()
2024/01/17 12:28:41.427 6377 7148 Debug MPEG4Writer ftruncate mPreAllocateFileEndOffset:2241182 mOffset:2240178 mMdatEndOffset:2234938 diff:1004
2024/01/17 12:28:41.432 6377 7148 Debug MPEG4Writer final fsync() takes 5 ms, file size 2240178
2024/01/17 12:28:41.432 6377 7148 Debug MPEG4Writer MP4WtrCtrlHlpLooper stopped
2024/01/17 12:28:41.432 6377 7148 Debug MPEG4Writer Top 5 write durations(microseconds): #1:89 #2:129 #3:158 #4:179 #5:844
2024/01/17 12:28:41.432 6377 7148 Debug MPEG4Writer reset()
2024/01/17 12:28:41.432 6377 7148 Debug MPEG4Writer Video track stopping. Stop source
2024/01/17 12:28:41.432 6377 7148 Error MPEG4Writer Stop() called but track is not started or stopped
2024/01/17 12:28:41.432 6377 7148 Debug MPEG4Writer Audio track stopping. Stop source
2024/01/17 12:28:41.432 6377 7148 Error MPEG4Writer Stop() called but track is not started or stopped
2024/01/17 12:28:41.441 6377 7162 Info Unity [AVProMovieCapture] File processing complete
2024/01/17 12:28:41.441 6377 7162 Info Unity RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:Process(Stream, Stream)
2024/01/17 12:28:41.441 6377 7162 Info Unity RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:ProcessFile(String, String, Options)
2024/01/17 12:28:41.441 6377 7162 Info Unity RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:ProcessFile(String, Boolean, Options)
2024/01/17 12:28:41.441 6377 7162 Info Unity RenderHeads.Media.AVProMovieCapture.<>c__DisplayClass32_0:<ProcessFileAsync>b__0()
2024/01/17 12:28:41.441 6377 7162 Info Unity System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
2024/01/17 12:28:41.441 6377 7162 Info Unity 
2024/01/17 12:28:41.442 6377 7162 Info Unity [AVProMovieCapture] - Moving file from: '/storage/emulated/0/Android/data/jp.curiosity_inc.pettweet/files/Captures/Demo4Webcam-0_2024-01-17_12-28-34_640x480.mp4', to: '/storage/emulated/0/Android/data/jp.curiosity_inc.pettweet/files/Captures/Demo4Webcam-0_2024-01-17_12-28-34_640x480.mp4'
2024/01/17 12:28:41.442 6377 7162 Info Unity RenderHeads.Media.AVProMovieCapture.MP4FileProcessing:ProcessFile(String, Boolean, Options)
2024/01/17 12:28:41.442 6377 7162 Info Unity RenderHeads.Media.AVProMovieCapture.<>c__DisplayClass32_0:<ProcessFileAsync>b__0()
2024/01/17 12:28:41.442 6377 7162 Info Unity System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)
2024/01/17 12:28:41.442 6377 7162 Info Unity 
2024/01/17 12:28:41.452 6377 7138 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] MediaCodec discarded an unknown buffer
2024/01/17 12:28:41.452 6377 7138 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] MediaCodec discarded an unknown buffer
2024/01/17 12:28:41.452 6377 7138 Debug CCodecBufferChannel [c2.qti.avc.encoder#765] MediaCodec discarded an unknown buffer
2024/01/17 12:28:41.456 6377 7163 Info hw-BpHwBinder onLastStrongRef automatically unlinking death recipients
2024/01/17 12:28:41.459 6377 7143 Debug CCodecBufferChannel [c2.android.aac.encoder#944] MediaCodec discarded an unknown buffer
2024/01/17 12:28:41.459 6377 7143 Debug CCodecBufferChannel [c2.android.aac.encoder#944] MediaCodec discarded an unknown buffer
2024/01/17 12:28:41.459 6377 7143 Debug CCodecBufferChannel [c2.android.aac.encoder#944] MediaCodec discarded an unknown buffer
2024/01/17 12:28:41.459 6377 7143 Info hw-BpHwBinder onLastStrongRef automatically unlinking death recipients
2024/01/17 12:28:41.462 6377 6443 Info AVProMovieCapture ??????? (PluginState.cpp:82) Deregistered handle 9664
2024/01/17 12:28:42.717 6377 6443 Info Unity Attempting to open '/storage/emulated/0/Android/data/jp.curiosity_inc.pettweet/files/Captures/Demo4Webcam-0_2024-01-17_12-28-34_640x480.mp4'
2024/01/17 12:28:42.717 6377 6443 Info Unity RenderHeads.Media.AVProMovieCapture.CaptureGUI:MyWindow(Int32)
2024/01/17 12:28:42.717 6377 6443 Info Unity UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)
2024/01/17 12:28:42.717 6377 6443 Info Unity 
2024/01/17 12:28:42.971 6377 6443 Debug ty_inc.pettwee PlayerBase::stop() from IPlayer
2024/01/17 12:28:42.971 6377 6443 Debug AudioTrack stop(499): called with 1836432 frames delivered
2024/01/17 12:28:43.001 6377 6377 Debug MediaRouter onRestoreRoute() : route=RouteInfo{ name=???????????? ????????????, description=null, status=null, category=RouteCategory{ name=???????????? types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2024/01/17 12:28:43.002 6377 6377 Verbose MediaRouter Selecting route: RouteInfo{ name=???????????? ????????????, description=null, status=null, category=RouteCategory{ name=???????????? types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2024/01/17 12:28:43.002 6377 6377 Debug MediaRouter onRestoreRoute() : route=RouteInfo{ name=???????????? ????????????, description=null, status=null, category=RouteCategory{ name=???????????? types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2024/01/17 12:28:43.002 6377 6377 Verbose MediaRouter Selecting route: RouteInfo{ name=???????????? ????????????, description=null, status=null, category=RouteCategory{ name=???????????? types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2024/01/17 12:28:43.166 6377 6447 Warn MediaPlayerNative info/warning (3, 0)
2024/01/17 12:28:47.134 6377 6612 Debug BufferPoolAccessor2.0 bufferpool2 0xb40000797d6b0768 : 0(0 size) total buffers - 0(0 size) used buffers - 216/220 (recycle/alloc) - 4/430 (fetch/transfer)
2024/01/17 12:28:47.134 6377 6612 Debug BufferPoolAccessor2.0 evictor expired: 1, evicted: 1
2024/01/17 12:28:50.680 6377 6488 Error BufferQueueProducer [SurfaceView[jp.curiosity_inc.pettweet/com.unity3d.player.UnityPlayerActivity]#4(BLAST Consumer)4](id:18e900000008,api:0,p:-1,c:6377) detachBuffer: BufferQueue has no connected producer
2024/01/17 12:28:50.688 6377 6377 Verbose MediaPlayer resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
2024/01/17 12:28:50.688 6377 6377 Verbose MediaPlayer cleanDrmObj: mDrmObj=null mDrmSessionId=null
2024/01/17 12:28:50.688 6377 6377 Verbose MediaPlayer resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
2024/01/17 12:28:50.688 6377 6377 Verbose MediaPlayer cleanDrmObj: mDrmObj=null mDrmSessionId=null
2024/01/17 12:28:50.743 6377 6443 Warn libc Access denied finding property "persist.vendor.camera.privapp.list"
2024/01/17 12:28:50.795 6377 6377 Debug CompatibilityChangeReporter Compat change id reported: 150939131; UID 10380; state: ENABLED
2024/01/17 12:28:51.292 6377 6377 Debug MediaRouter onRestoreRoute() : route=RouteInfo{ name=???????????? ????????????, description=null, status=null, category=RouteCategory{ name=???????????? types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2024/01/17 12:28:51.292 6377 6377 Verbose MediaRouter Selecting route: RouteInfo{ name=???????????? ????????????, description=null, status=null, category=RouteCategory{ name=???????????? types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2024/01/17 12:28:51.730 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:51.754 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:51.787 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:51.817 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:51.849 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:51.883 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:51.897 6377 6377 Debug CompatibilityChangeReporter Compat change id reported: 163400105; UID 10380; state: ENABLED
2024/01/17 12:28:51.900 6377 6377 Info AssistStructure Flattened final assist data: 1008 bytes, containing 2 windows, 5 views
2024/01/17 12:28:51.919 6377 6377 Debug InputMethodManager showSoftInput() view=com.unity3d.player.y{6d01f1c VFED..CL. .F...... 16,20-849,138 #2 aid=1073741827} flags=0 reason=SHOW_SOFT_INPUT
2024/01/17 12:28:51.926 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:51.952 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:52.000 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:52.019 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:28:52.501 6377 6377 Debug InsetsController show(ime(), fromIme=true)
2024/01/17 12:28:53.861 6377 6377 Warn IInputConnectionWrapper getSurroundingText on inactive InputConnection
2024/01/17 12:28:53.902 6377 6377 Warn IInputConnectionWrapper requestCursorAnchorInfo on inactive InputConnection
2024/01/17 12:29:00.210 6377 6377 Info FIAM.Display Unbinding from activity: com.unity3d.player.UnityPlayerActivity
2024/01/17 12:29:00.211 6377 6377 Info FIAM.Headless Removing display event component
2024/01/17 12:29:00.214 6377 6428 Debug SessionLifecycleClient Sending lifecycle 2 to service
2024/01/17 12:29:00.214 6377 6446 Debug SessionLifecycleService Activity backgrounding at 58705617
2024/01/17 12:29:00.361 6377 6443 Debug ty_inc.pettwee PlayerBase::stop() from IPlayer
2024/01/17 12:29:00.361 6377 6443 Debug AudioTrack stop(499): called with 433728 frames delivered
2024/01/17 12:29:02.243 6377 7336 Info FA Application backgrounded at: timestamp_millis: 1705462140239
2024/01/17 12:29:08.711 6377 6377 Info FIAM.Headless went foreground
2024/01/17 12:29:08.712 6377 6377 Info FIAM.Display Binding to activity: com.unity3d.player.UnityPlayerActivity
2024/01/17 12:29:08.712 6377 6377 Info FIAM.Headless Setting display event component
2024/01/17 12:29:08.717 6377 6409 Debug SessionLifecycleClient Sending lifecycle 1 to service
2024/01/17 12:29:08.717 6377 6446 Debug SessionLifecycleService Activity foregrounding at 58714120.
2024/01/17 12:29:08.811 6377 6443 Warn libc Access denied finding property "persist.vendor.camera.privapp.list"
2024/01/17 12:29:09.325 6377 6377 Debug MediaRouter onRestoreRoute() : route=RouteInfo{ name=???????????? ????????????, description=null, status=null, category=RouteCategory{ name=???????????? types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2024/01/17 12:29:09.325 6377 6377 Verbose MediaRouter Selecting route: RouteInfo{ name=???????????? ????????????, description=null, status=null, category=RouteCategory{ name=???????????? types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO  groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
2024/01/17 12:29:09.779 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:29:09.818 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:29:09.863 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:29:09.896 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:29:09.929 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:29:09.946 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:29:09.979 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:29:10.013 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
2024/01/17 12:29:10.062 6377 6486 Warn qdgralloc getInterlacedFlag: getMetaData returned -22, defaulting to interlaced_flag = 0
kkkkoyo commented 5 months ago

@Chris-RH The above post was a capture and log from when Audio Souce was set to None. Sorry for the confusion. I still have not been able to resolve this issue here. Any progress on this?

Chris-RH commented 4 months ago

Are you able to get a log when using audio?

MorrisRH commented 4 months ago

From the first log you posted it looks like OpenSLES is not working correctly on your hardware, although there is no mention of it in the second log you posted.

We've changed the microphone capture implementation to use Oboe so hopefully on your hardware the more modern AAudio API will be used and resolve this issue. This will make it into the next release.

fanghuaiyi commented 4 months ago

We have the same problom with Avpro Movie Capture - Mobile Edition 5.2.0. In compatibility testing, many vivo phones failed to record video after enabling microphone recording. Therefore, we had to add an audio recording switch, allowing players to choose whether to enable audio recording. Below is the list of phone models that experienced issues during our compatibility testing. We hope that the subsequent version 5.2.1 will be able to resolve this issue. image

Chris-RH commented 4 months ago

AVPro Movie Capture 5.2.1 has been released. Please let us know if it has not fixed your issue.

kkkkoyo commented 4 months ago

Thank you very much, I upgraded to 5.2.1 and checked it and it successfully recorded with sound. Thank you very much :)

kkkkoyo commented 4 months ago

One thing, on the device (SO-51C) where the bug appeared, I can record, but for some reason, the audio is recorded in low volume. I don't think it's a problem with the device, since it's not a problem with another app. There is no problem on the other device. Do you know what this is?

Chris-RH commented 4 months ago

hmm, not sure as the same project obviously works on other devices, so its not a setup issue