Closed kevsestrella closed 1 year ago
If audio is enabled, you must connect to the server socket twice (to get two sockets, the first one for video, the second one for audio).
If audio is enabled, you must connect to the server socket twice (to get two sockets, the first one for video, the second one for audio).
it means we have to run :
adb forward tcp:8000 localabstract:scrcpy
adb push C:/ProgramData/scrcpy-win64-v2.0/scrcpy-server-v2.0 /data/local/tmp/scrcpy-server-v2.0.jar
adb shell CLASSPATH=/data/local/tmp/scrcpy-server-v2.0.jar app_process / com.genymobile.scrcpy.Server 2.0 tunnel_forward=true control=false audio=false
2. And open new host to connect control-socket: (8001 turn on control=true audio=true )
adb forward tcp:8001 localabstract:scrcpy adb push C:/ProgramData/scrcpy-win64-v2.0/scrcpy-server-v2.0 /data/local/tmp/scrcpy-server-v2.0.jar adb shell CLASSPATH=/data/local/tmp/scrcpy-server-v2.0.jar app_process / com.genymobile.scrcpy.Server 2.0 tunnel_forward=true control=true audio=true
is my way correct?
No, run the command once, but connect twice to localhost:8000 to open 2 sockets (or 3 if you also enable control).
No, run the command once, but connect twice to localhost:8000 to open 2 sockets (or 3 if you also enable control).
I got it. I succeeded when stream screen and control with one device. How can i get video stream and control two , three or more device?
You must execute all these commands for each device.
Thanks, this seems to run for me, but no audio. scrcpy works fine though. I ran the following commands
adb -s 192.168.1.19:5555 shell CLASSPATH=/data/local/tmp/vlc-scrcpy-server.jar \
app_process / com.genymobile.scrcpy.Server 2.0 \
tunnel_forward=true control=false cleanup=false \
max_size=1920 raw_video_stream=true
mpv tcp://localhost:123
mpv -v tcp://localhost:123
Logcat during the commands:
3-28 00:51:04.699 3826 3826 D AndroidRuntime: Calling main entry com.genymobile.scrcpy.Server
03-28 00:51:04.701 3826 3826 I scrcpy : Device: Xiaomi Mi 9T (Android 13)
03-28 00:50:52.853 0 0 I binder : 3826:3826 ioctl 40046210 7ff5899c50 returned -22
03-28 00:50:53.745 0 0 I QG-K : process_udata_work: udata update: QG_SOC=17 QG_SYS_SOC=1746 last_catchup_soc=18
03-28 00:50:53.745 0 0 I QG-K : qg_process_tcss_soc: TCSS: Quit - enabled=0 sys_soc=1746 tcss_entry_count=0 fifo_i_ua=145263 bat_health=0
03-28 00:50:53.745 0 0 I QG-K : qg_process_bass_soc: BASS Quit: enabled=0 fifo_i_ua=145263 sys_soc=17 msoc=18 batt_soc=1784
03-28 00:50:53.745 0 0 I QG-K : qg_adjust_sys_soc: sys_soc=1746 adjusted sys_soc=17
03-28 00:50:53.745 0 0 I QG-K : qg_scale_soc: SOC scale: Start msoc=18 catch_up_soc=17 delta_soc=1
03-28 00:50:53.745 0 0 I QG-K : update_msoc: SOC scale: Update maint_soc=-22 msoc=17 catch_up_soc=17 delta_soc=1
03-28 00:50:53.745 0 0 I QG-K : scale_soc_stop: SOC scale stopped: msoc=17 catch_up_soc=17
03-28 00:50:53.746 0 0 I QG-K : qg_status_change_work: charge_status=2 charge_done=0
03-28 00:50:53.746 0 0 I : fv calibrate = 0, fv = 4340000
03-28 00:50:53.746 0 0 I pm6150_charger: smblib_set_charge_param: float voltage = 4340000 (0x4a)
03-28 00:50:53.747 0 0 I QG-K : qg_store_soc_params: SDAM write param 0 value=1
03-28 00:50:53.747 0 0 I QG-K : qg_store_soc_params: SDAM write param 1 value=17
03-28 00:50:53.747 0 0 I QG-K : qg_store_soc_params: SDAM write param 2 value=325
03-28 00:50:53.747 0 0 I QG-K : qg_store_soc_params: SDAM write param 3 value=152
03-28 00:50:53.747 0 0 I QG-K : qg_store_soc_params: SDAM write param 4 value=3722000
03-28 00:50:53.747 0 0 I QG-K : qg_store_soc_params: SDAM write param 5 value=145784
03-28 00:50:53.747 0 0 I QG-K : qg_store_soc_params: SDAM write param 6 value=11218737
03-28 00:50:53.748 0 0 E SMB1390 : smb1390_ilim_vote_cb: Client missing
03-28 00:50:53.748 0 0 I pm6150_charger: smblib_run_aicl: re-running AICL
03-28 00:50:53.750 0 0 I QG-K : qg_get_power: v_min=2800000 v_ocv=3722000 rbatt=152000 esr=86000 power=16984210
03-28 00:50:53.750 0 0 I QG-K : qg_get_power: v_min=2800000 v_ocv=3722000 rbatt=152000 esr=86000 power=30018604
03-28 00:50:53.750 0 0 E QG-K : qg_get_ffc_iterm_for_chg: ffc_terminal_current other is 830
03-28 00:50:53.754 0 0 I QG-K : qg_charge_full_update: msoc=17 health=1 charge_full=0 charge_done=0 charge_status=2
03-28 00:50:53.756 0 0 E QCOM-STEPCHG: handle_jeita: BATT_TEMP = 325 FCC = 3500000uA FV = 4400000uV
03-28 00:50:53.758 0 0 I QG-K : process_udata_work: udata update: batt_soc=1784 cc_soc=1761 full_soc=9099 qg_esr=86 batt_temp=325
03-28 00:50:53.761 0 0 W healthd : battery l=18 v=3707 t=32.5 h=2 st=3 c=105285 fc=3141000 cc=983 chg=
03-28 00:50:53.769 0 0 W healthd : battery l=18 v=3707 t=32.6 h=2 st=3 c=105285 fc=3141000 cc=983 chg=
03-28 00:50:53.776 0 0 W healthd : battery l=18 v=3707 t=32.5 h=2 st=3 c=105285 fc=3141000 cc=983 chg=
03-28 00:51:05.756 916 916 E WifiHAL : get_wifi_interface_info: QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE not found
03-28 00:51:05.756 916 916 E WifiHAL : nl80211: requestResponse->nl_recvmsgs failed: -5
03-28 00:51:05.759 1733 2004 E WifiVendorHal: getWifiLinkLayerStats_1_6_Internal(l.1199) failed {.code = ERROR_INVALID_ARGS, .description = }
03-28 00:51:05.881 2083 2166 D LocalImageResolver: Couldn't use ImageDecoder for drawable, falling back to non-resized load.
03-28 00:51:05.883 2083 2166 D LocalImageResolver: Couldn't use ImageDecoder for drawable, falling back to non-resized load.
03-28 00:51:06.924 16910 16933 I Finsky : [1225] ksw.run(17): Stats for Executor: BlockingExecutor nfs@8e66a98[Running, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 412]
03-28 00:51:06.925 16910 16933 I Finsky : [1225] ksw.run(17): Stats for Executor: LightweightExecutor nfs@825e2f1[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 368065]
03-28 00:51:06.925 16910 16933 I Finsky : [1225] ksw.run(17): Stats for Executor: bgExecutor nfs@aad3ed6[Running, pool size = 4, active threads = 0, queued tasks = 0, completed tasks = 9407]
03-28 00:51:08.785 916 916 E WifiHAL : get_wifi_interface_info: QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE not found
03-28 00:51:08.785 916 916 E WifiHAL : nl80211: requestResponse->nl_recvmsgs failed: -5
03-28 00:51:08.787 1733 2004 E WifiVendorHal: getWifiLinkLayerStats_1_6_Internal(l.1199) failed {.code = ERROR_INVALID_ARGS, .description = }
03-28 00:51:11.808 916 916 E WifiHAL : get_wifi_interface_info: QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE not found
03-28 00:51:11.808 916 916 E WifiHAL : nl80211: requestResponse->nl_recvmsgs failed: -5
03-28 00:51:11.811 1733 2004 E WifiVendorHal: getWifiLinkLayerStats_1_6_Internal(l.1199) failed {.code = ERROR_INVALID_ARGS, .description = }
03-28 00:51:00.135 0 0 I QG-K : qg_battery_soc_smooth_tracking: soc:18, last_soc:18, raw_soc:17, soc_changed:1, update_now:0, charge_status:2, batt_ma:151
03-28 00:51:00.135 0 0 E QG-K : soc_monitor_work: soc:17, raw_soc:17, c:151, s:2
03-28 00:51:00.136 0 0 I QG-K : qg_status_change_work: charge_status=2 charge_done=0
03-28 00:51:00.136 0 0 I : fv calibrate = 0, fv = 4340000
03-28 00:51:00.136 0 0 I pm6150_charger: smblib_set_charge_param: float voltage = 4340000 (0x4a)
03-28 00:51:00.136 0 0 E SMB1390 : smb1390_ilim_vote_cb: Client missing
03-28 00:51:00.136 0 0 I pm6150_charger: smblib_run_aicl: re-running AICL
03-28 00:51:00.141 0 0 I QG-K : qg_charge_full_update: msoc=17 health=1 charge_full=0 charge_done=0 charge_status=2
03-28 00:51:00.143 0 0 E QCOM-STEPCHG: handle_jeita: BATT_TEMP = 325 FCC = 3500000uA FV = 4400000uV
03-28 00:51:00.147 0 0 W healthd : battery l=17 v=3698 t=32.5 h=2 st=3 c=151977 fc=3141000 cc=983 chg=
03-28 00:51:00.156 0 0 W healthd : battery l=17 v=3698 t=32.5 h=2 st=3 c=151977 fc=3141000 cc=983 chg=
03-28 00:51:12.182 916 916 E WifiHAL : get_wifi_interface_info: QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE not found
03-28 00:51:12.182 916 916 E WifiHAL : nl80211: requestResponse->nl_recvmsgs failed: -5
03-28 00:51:12.183 1733 2004 E WifiVendorHal: getWifiLinkLayerStats_1_6_Internal(l.1199) failed {.code = ERROR_INVALID_ARGS, .description = }
03-28 00:51:12.185 1733 1901 W BatteryExternalStatsWorker: error reading Bluetooth stats: 9
03-28 00:51:12.290 2083 2166 D LocalImageResolver: Couldn't use ImageDecoder for drawable, falling back to non-resized load.
03-28 00:51:12.293 2083 2166 D LocalImageResolver: Couldn't use ImageDecoder for drawable, falling back to non-resized load.
03-28 00:51:14.839 916 916 E WifiHAL : get_wifi_interface_info: QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE not found
03-28 00:51:14.839 916 916 E WifiHAL : nl80211: requestResponse->nl_recvmsgs failed: -5
03-28 00:51:14.841 1733 2004 E WifiVendorHal: getWifiLinkLayerStats_1_6_Internal(l.1199) failed {.code = ERROR_INVALID_ARGS, .description = }
03-28 00:51:17.696 3826 3826 D MtpDeviceJNI: register_android_mtp_MtpDevice
03-28 00:51:17.700 3826 3853 D MediaCodecList: codecHandlesFormat: no format, so no extra checks
03-28 00:51:17.700 3826 3826 D MediaCodecList: codecHandlesFormat: no format, so no extra checks
03-28 00:51:17.700 3826 3826 D MediaCodecList: codecHandlesFormat: no format, so no extra checks
03-28 00:51:17.700 3826 3826 D MediaCodecList: codecHandlesFormat: no format, so no extra checks
03-28 00:51:17.702 3826 3856 D CCodec : allocate(c2.android.opus.encoder)
03-28 00:51:17.703 3826 3857 I OMXClient: IOmx service obtained
03-28 00:51:17.703 3826 3856 I Codec2Client: Available Codec2 services: "default" "software"
03-28 00:51:05.856 0 0 I binder : 3826:3857 ioctl 40046210 7a90c23474 returned -22
03-28 00:51:17.704 1140 23301 I OMXStore: makeComponentInstance(OMX.qcom.video.encoder.avc) in android.hardwar process
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInstance: Enter
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInt32: Returning default
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInstance: Enter
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInt32 Config name: vidc_enc_log_in value: 0
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInstance: Enter
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInt32 Config name: vidc_enc_log_out value: 0
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInstance: Enter
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInt32 Config name: vidc_enc_csc_custom_matrix value: 0
03-28 00:51:17.705 3826 3856 I CCodec : setting up 'default' as default (vendor) store
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInstance: Enter
03-28 00:51:17.705 1140 23301 D PlatformConfig: getInt32: Returning default
03-28 00:51:17.706 1140 23301 D PlatformConfig: getInstance: Enter
03-28 00:51:17.706 1140 23301 D PlatformConfig: getInt32: Returning default
03-28 00:51:05.860 0 0 I msm_vidc: info: Opening video instance: 0000000000000000, 0
03-28 00:51:17.711 1187 29295 V C2Store : in init
03-28 00:51:17.711 1187 29295 V C2Store : loading dll
03-28 00:51:17.713 1140 23301 I OMX-VENC: Component_init : OMX.qcom.video.encoder.avc : return = 0x0
03-28 00:51:05.865 0 0 I msm_vidc: fw: <VFW_E:HostDr:unkn:--------:-> VenusHostDriver_SetSysProperty(1009): QC_IMAGE_VERSION_STRING=VIDEO.IR.1.2-00040-PROD-1.351356.1
03-28 00:51:05.865 0 0 I msm_vidc: fw: <VFW_E:HostDr:unkn:--------:->
03-28 00:51:05.865 0 0 I msm_vidc: fw: <VFW_E:HostDr:unkn:--------:-> VenusHostDriver_SetSysProperty(1012): BUILD_TIME: Dec 1 2020 01:19:44
03-28 00:51:05.865 0 0 I msm_vidc: fw: <VFW_E:HostDr:unkn:--------:->
03-28 00:51:05.865 0 0 I msm_vidc: fw: <VFW_E:HostDr:unkn:--------:-> VenusHostDriver_SetSysProperty(1009): QC_IMAGE_VERSION_STRING=VIDEO.IR.1.2-00040-PROD-1.351356.1
03-28 00:51:05.865 0 0 I msm_vidc: fw: <VFW_E:HostDr:unkn:--------:->
03-28 00:51:05.865 0 0 I msm_vidc: fw: <VFW_E:HostDr:unkn:--------:-> VenusHostDriver_SetSysProperty(1012): BUILD_TIME: Dec 1 2020 01:19:44
03-28 00:51:05.865 0 0 I msm_vidc: fw: <VFW_E:HostDr:unkn:--------:->
03-28 00:51:17.715 3826 3856 I CCodec : Created component [c2.android.opus.encoder]
03-28 00:51:17.715 3826 3856 D CCodecConfig: read media type: audio/opus
03-28 00:51:17.716 3826 3826 D scrcpy : Using encoder: 'OMX.qcom.video.encoder.avc'
03-28 00:51:17.718 3826 3856 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.max-count.values
03-28 00:51:17.718 3826 3856 D ReflectedParamUpdater: extent() != 1 for single value type: output.subscribed-indices.values
03-28 00:51:17.718 3826 3856 D ReflectedParamUpdater: extent() != 1 for single value type: input.buffers.allocator-ids.values
03-28 00:51:17.719 3826 3856 D ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.allocator-ids.values
03-28 00:51:17.719 3826 3856 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.allocator-ids.values
03-28 00:51:17.719 3826 3856 D ReflectedParamUpdater: extent() != 1 for single value type: output.buffers.pool-ids.values
03-28 00:51:17.719 3826 3856 D ReflectedParamUpdater: extent() != 1 for single value type: algo.buffers.pool-ids.values
03-28 00:51:17.721 3826 3856 I CCodecConfig: query failed after returning 9 values (BAD_INDEX)
03-28 00:51:17.721 3826 3856 D CCodecConfig: c2 config diff is Dict {
03-28 00:51:17.721 3826 3856 D CCodecConfig: c2::u32 algo.bitrate-mode.value = 3
03-28 00:51:17.721 3826 3856 D CCodecConfig: c2::u32 algo.complexity.value = 10
03-28 00:51:17.721 3826 3856 D CCodecConfig: c2::u32 coded.bitrate.value = 128000
03-28 00:51:17.721 3826 3856 D CCodecConfig: c2::u32 input.buffers.max-size.value = 3840
03-28 00:51:17.721 3826 3856 D CCodecConfig: c2::u32 input.delay.value = 0
03-28 00:51:17.721 3826 3856 D CCodecConfig: string input.media-type.value = "audio/raw"
03-28 00:51:17.721 3826 3856 D CCodecConfig: string output.media-type.value = "audio/opus"
03-28 00:51:17.721 3826 3856 D CCodecConfig: c2::u32 raw.channel-count.value = 1
03-28 00:51:17.721 3826 3856 D CCodecConfig: c2::u32 raw.sample-rate.value = 48000
03-28 00:51:17.721 3826 3856 D CCodecConfig: }
03-28 00:51:17.723 3826 3853 D scrcpy : Using audio encoder: 'c2.android.opus.encoder'
03-28 00:51:17.724 3826 3856 I MediaCodec: MediaCodec will operate in async mode
03-28 00:51:17.728 3826 3826 D CodecSeeding: Seed: codec OMX.qcom.video.encoder.avc, mediatype video/avc, overrideable 1
03-28 00:51:17.728 3826 3826 D CodecProperties: setTuningValue(vq-target-bpp,0)
03-28 00:51:17.728 3826 3826 D CodecProperties: setTuningValue(vq-target-bpp-1080p,1.90)
03-28 00:51:17.728 3826 3826 D CodecProperties: setTuningValue(vq-target-bpp-720p,2.25)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-target-bpp-540p,2.65)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-target-bpp-480p,3.00)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-target-bpp-320x240,0)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-target-qpmax,-1)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-target-qpmax-1080p,45)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-target-qpmax-720p,43)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-target-qpmax-540p,42)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-target-qpmax-480p,38)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-bitrate-phaseout,1.75)
03-28 00:51:17.729 3826 3826 D CodecProperties: setTuningValue(vq-boost-missing-qp,0.20)
03-28 00:51:17.729 3826 3826 D CodecProperties: setFeatureValue(_vq_eligible.device,1)
03-28 00:51:17.729 3826 3826 D CodecProperties: setFeatureValue(_quality.target,1)
03-28 00:51:17.729 3826 3826 D CodecSeeding: Seed: codec OMX.qcom.video.encoder.avc, mediatype video/avc, overrideable 0
03-28 00:51:17.729 3826 3853 D CodecSeeding: Seed: codec c2.android.opus.encoder, mediatype audio/opus, overrideable 1
03-28 00:51:17.729 3826 3853 D CodecProperties: setFeatureValue(_vq_eligible.device,1)
03-28 00:51:17.729 3826 3853 D CodecProperties: setFeatureValue(_quality.target,1)
03-28 00:51:17.729 3826 3853 D CodecSeeding: Seed: codec c2.android.opus.encoder, mediatype audio/opus, overrideable 0
03-28 00:51:17.729 3826 3826 D MediaCodec: shapeMediaFormat: deltas(1): AMessage(what = 0x00000000) = {
03-28 00:51:17.729 3826 3826 D MediaCodec: int32_t android._encoding-quality-level = 0
03-28 00:51:17.729 3826 3826 D MediaCodec: }
03-28 00:51:17.729 3826 3853 D MediaCodec: shapeMediaFormat: deltas(0): AMessage(what = 0x00000000) = {
03-28 00:51:17.729 3826 3853 D MediaCodec: }
03-28 00:51:17.729 3826 3856 D CCodec : [c2.android.opus.encoder] buffers are bound to CCodec for this session
03-28 00:51:17.730 3826 3856 D CCodecConfig: no c2 equivalents for flags
03-28 00:51:17.730 3826 3856 D CCodecConfig: no c2 equivalents for encoder
03-28 00:51:17.730 1140 23301 I OMX-VENC: WARN: Enable/Disable allocate-native-handle allowed only in secure session
03-28 00:51:17.730 1140 23301 E OMXNodeInstance: setParameter(0xf1448134:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Input:0 en=0) ERROR: UnsupportedSetting(0x80001019)
03-28 00:51:17.730 1140 23301 I OMX-VENC: WARN: Enable/Disable allocate-native-handle allowed only in secure session
03-28 00:51:17.730 1140 23301 E OMXNodeInstance: setParameter(0xf1448134:qcom.encoder.avc, OMX.google.android.index.allocateNativeHandle(0x7f00005d): Output:1 en=0) ERROR: UnsupportedSetting(0x80001019)
03-28 00:51:17.730 1140 23301 I OMX-VENC: WARN: set_parameter: metamode is valid for input port only
03-28 00:51:17.730 1140 23301 W OMXNodeInstance: [0xf1448134:qcom.encoder.avc] component does not support metadata mode; using fallback
03-28 00:51:17.730 3826 3857 W OMXUtils: do not know color format 0x7fa30c06 = 2141391878
03-28 00:51:17.730 3826 3856 D CCodecConfig: c2 config diff is c2::u32 raw.channel-count.value = 2
03-28 00:51:17.731 3826 3857 W OMXUtils: do not know color format 0x7fa30c04 = 2141391876
03-28 00:51:17.731 3826 3857 W OMXUtils: do not know color format 0x7fa30c00 = 2141391872
03-28 00:51:17.731 3826 3857 W OMXUtils: do not know color format 0x7fa30c09 = 2141391881
03-28 00:51:17.731 3826 3856 W Codec2Client: query -- param skipped: index = 1107298332.
03-28 00:51:17.731 3826 3856 D CCodec : encoding statistics level = 0
03-28 00:51:17.731 3826 3856 D CCodec : setup formats input: AMessage(what = 0x00000000) = {
03-28 00:51:17.731 3826 3856 D CCodec : int32_t channel-count = 2
03-28 00:51:17.731 3826 3856 D CCodec : int32_t flac-compression-level = 10
03-28 00:51:17.731 3826 3856 D CCodec : int32_t max-input-size = 3840
03-28 00:51:17.731 3826 3856 D CCodec : string mime = "audio/raw"
03-28 00:51:17.731 3826 3856 D CCodec : int32_t sample-rate = 48000
03-28 00:51:17.731 3826 3856 D CCodec : int32_t android._config-pcm-encoding = 2
03-28 00:51:17.731 3826 3856 D CCodec : }
03-28 00:51:17.731 3826 3857 W OMXUtils: do not know color format 0x7fa30c0a = 2141391882
03-28 00:51:17.731 3826 3856 D CCodec : setup formats output: AMessage(what = 0x00000000) = {
03-28 00:51:17.731 3826 3856 D CCodec : int32_t bitrate = 128000
03-28 00:51:17.731 3826 3856 D CCodec : int32_t bitrate-mode = 1
03-28 00:51:17.731 3826 3856 D CCodec : int32_t channel-count = 2
03-28 00:51:17.731 3826 3856 D CCodec : int32_t flac-compression-level = 10
03-28 00:51:17.731 3826 3856 D CCodec : int32_t max-bitrate = 128000
03-28 00:51:17.731 3826 3856 D CCodec : string mime = "audio/opus"
03-28 00:51:17.731 3826 3856 D CCodec : int32_t sample-rate = 48000
03-28 00:51:17.731 3826 3856 D CCodec : }
03-28 00:51:17.732 3826 3856 I CCodecConfig: query failed after returning 9 values (BAD_INDEX)
03-28 00:51:17.732 3826 3857 W OMXUtils: do not know color format 0x7fa30c08 = 2141391880
03-28 00:51:17.732 3826 3857 W OMXUtils: do not know color format 0x7fa30c07 = 2141391879
03-28 00:51:17.732 3826 3857 W OMXUtils: do not know color format 0x7f000789 = 2130708361
03-28 00:51:17.733 1140 23301 I OMX-VENC: venc_dev: WARN: Unsupported eColorFormat 0x7f000789
03-28 00:51:17.736 3826 3857 I ACodec : setupAVCEncoderParameters with [profile: Baseline] [level: Level1]
03-28 00:51:17.737 3826 3857 I ACodec : [OMX.qcom.video.encoder.avc] cannot encode HDR static metadata. Ignoring.
03-28 00:51:17.737 3826 3857 I ACodec : setupVideoEncoder succeeded
03-28 00:51:17.738 3826 3857 W OMXUtils: do not know color format 0x7f000789 = 2130708361
03-28 00:51:17.742 883 25579 D r_submix: adev_open_input_stream(addr=0)
03-28 00:51:17.742 883 25579 I r_submix: adev_open_input_stream(): about to create pipe at index 9, rate 48000, pipe size 4096
03-28 00:51:17.742 883 25579 D r_submix: submix_audio_device_create_pipe_l(addr=0, idx=9)
03-28 00:51:17.742 883 25579 D r_submix: now using address 0 for route 9
03-28 00:51:17.743 1140 23301 E OMX-VENC: ERROR: unsupported index 1870659589
03-28 00:51:17.743 1140 23301 E OMXNodeInstance: getConfig(0xf1448134:qcom.encoder.avc, ConfigLatency(0x6f800005)) ERROR: UnsupportedIndex(0x8000101a)
03-28 00:51:17.744 969 3873 I AudioFlinger: AudioFlinger's thread 0xb40000712997dbb0 tid=3873 ready to run
03-28 00:51:17.745 883 25579 I r_submix: in_standby()
03-28 00:51:17.746 969 22589 D AudioPolicyService: not monitoring app op for uid 2000 and source 8
03-28 00:51:17.747 883 25579 I r_submix: in_standby()
03-28 00:51:17.753 1140 23301 E OMXNodeInstance: getConfig(0xf1448134:qcom.encoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
03-28 00:51:17.754 1140 23301 I OMX-VENC: venc_dev: venc_get_consumer_usage 0x0
03-28 00:51:17.754 1140 23301 D GraphicBufferSource: setting dataspace: 0x104, acquired=0
03-28 00:51:17.754 1140 23301 I OMX-VENC: venc_dev: venc_get_consumer_usage 0x0
03-28 00:51:17.754 1140 23301 D GraphicBufferSource: requesting color aspects (R:2(Limited), P:1(BT709_5), M:1(BT709_5), T:3(SMPTE170M))
03-28 00:51:17.757 969 22589 W RefBase : RefBase: Explicit destruction, weak count = 0 (in 0x6e75330f80). Use sp<> to manage this object.
03-28 00:51:17.757 969 22589 W RefBase : CallStack::getCurrentInternal not linked, returning null
03-28 00:51:17.757 969 22589 W RefBase : CallStack::logStackInternal not linked
03-28 00:51:17.758 883 25579 D audio_hw_primary: adev_set_parameters: enter: 0=;connect=32768
03-28 00:51:17.758 883 25579 D audio_hw_hfp: hfp_set_parameters: enter
03-28 00:51:17.758 883 25579 D audio_hw_extn: audio_extn_fm_set_parameters: Enter
03-28 00:51:17.759 969 22589 I AudioFlinger: openOutput() this 0xb400006facc56960, module 26 Device AUDIO_DEVICE_OUT_REMOTE_SUBMIX, @:0, SamplingRate 48000, Format 0x000001, Channels 0x3, flags 0
03-28 00:51:17.759 883 25579 D r_submix: adev_open_output_stream(address=0)
03-28 00:51:17.759 883 25579 I r_submix: adev_open_output_stream(): about to create pipe at index 9, rate 48000, pipe size 4096
03-28 00:51:17.759 883 25579 D r_submix: submix_audio_device_create_pipe_l(addr=0, idx=9)
03-28 00:51:17.759 883 25579 D r_submix: now using address 0 for route 9
03-28 00:51:17.760 969 22589 I AudioFlinger: HAL output buffer size 1024 frames, normal sink buffer size 1024 frames
03-28 00:51:17.760 969 22589 D AudioFlinger: Failed to add event callback
03-28 00:51:17.761 969 3877 I AudioFlinger: AudioFlinger's thread 0xb40000712c6f59b0 tid=3877 ready to run
03-28 00:51:17.763 969 3877 D AudioFlinger: ro.audio.silent is ignored since no output device is set
03-28 00:51:17.764 883 25579 I r_submix: out_standby()
03-28 00:51:17.765 969 3877 D AudioFlinger: ro.audio.silent is ignored since no output device is set
03-28 00:51:17.769 980 980 W H2BGraphicBufferProducer: getConsumerUsage is not fully supported
03-28 00:51:17.773 969 22589 W AudioFlinger: moveEffectChain_l() effect chain for session 0 not on source thread 0xb40000713584b9b0
03-28 00:51:17.774 969 22589 I AudioFlinger: HAL output buffer size 1024 frames, normal sink buffer size 1024 frames
03-28 00:51:17.775 969 22589 D AF::TrackHandle: OpPlayAudio: not muting track:3309 usage:0 for service UID 1041
03-28 00:51:17.776 969 22589 D AF::TrackHandle: OpPlayAudio: not muting track:3310 usage:0 for service UID 1041
03-28 00:51:17.777 969 22589 D AudioFlinger: Failed to add event callback
03-28 00:51:17.778 969 3880 I AudioFlinger: AudioFlinger's thread 0xb400007129629960 tid=3880 ready to run
03-28 00:51:17.781 969 3880 D AudioFlinger: ro.audio.silent is ignored since no output device is set
03-28 00:51:17.783 969 3880 D AudioFlinger: ro.audio.silent is ignored since no output device is set
03-28 00:51:17.796 1140 3863 I OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
03-28 00:51:17.796 1113 1011 W ResourceManagerService: Ignoring request to add new resource entry with value <= 0
03-28 00:51:17.796 1140 3863 I OMX-VENC: venc_dev: id = 10035230, value = 4294967295, min = 0, max = 5
03-28 00:51:17.796 1140 3863 I OMX-VENC: venc_dev: id = 10035243, value = 4294967295, min = 0, max = 5
03-28 00:51:17.796 1140 3863 I OMX-VENC: venc_dev: WARN: TemporalLayer: Invalid settings, hardware doesn't support 0 temporal layers
03-28 00:51:17.796 1140 3863 I OMX-VENC: venc_dev: id = 10035242, value = 4294967295, min = 0, max = 0
03-28 00:51:17.796 1140 3863 I OMX-VENC: venc_dev: id = 10035230, value = 4294967295, min = 0, max = 5
03-28 00:51:17.796 1140 3863 I OMX-VENC: venc_dev: id = 10035243, value = 4294967295, min = 0, max = 5
03-28 00:51:17.796 1140 3863 I OMX-VENC: venc_dev: WARN: TemporalLayer: Invalid settings, hardware doesn't support 0 temporal layers
03-28 00:51:17.796 1140 3863 D GraphicBufferSource: got buffer with new dataSpace #104
03-28 00:51:17.796 1140 3865 I OMX-VENC: get_config (dataspace changed): ColorSpace: Recommend 601 for RGBA8888
03-28 00:51:17.796 1140 3865 D OMXNodeInstance: Codec resolved it to (R:2(??), P:3(??), M:3(??), T:3(??)) err=0(NO_ERROR)
03-28 00:51:17.796 1140 3865 E OMXNodeInstance: setConfig(0xf1448134:qcom.encoder.avc, ??(0x7f000062)) ERROR: UnsupportedSetting(0x80001019)
03-28 00:51:17.796 3826 3857 D ACodec : dataspace changed to 0x10c10000 (R:2(Limited), P:3(BT601_6_625), M:3(BT601_6), T:3(SMPTE170M)) (R:2(Limited), S:2(BT601_625), T:3(SMPTE_170M))
03-28 00:51:17.797 1140 3863 W C2DColorConvert: calcYSize: Format not supported , 6
03-28 00:51:17.830 969 3877 D AudioFlinger: ro.audio.silent will be ignored for threads on AUDIO_DEVICE_OUT_REMOTE_SUBMIX
03-28 00:51:17.835 883 25579 D audio_hw_primary: adev_get_parameters:0;routing=32768;supEncapsulationMetadataTypes;supEncapsulationModes
03-28 00:51:17.835 883 25579 D audio_hw_spkr_prot: fbsp_get_parameters: Speaker protection disabled
03-28 00:51:17.835 883 25579 D soundtrigger: audio_extn_sound_trigger_get_parameters input string<supEncapsulationModes=;routing=32768;supEncapsulationMetadataTypes=;0=>
03-28 00:51:17.835 883 25579 D soundtrigger: extract_sm_handle input string <supEncapsulationModes=;routing=32768;supEncapsulationMetadataTypes=;0=> param string <supEncapsulationModes=;routing=32768;supEncapsulationMetadataTypes=;0=>
03-28 00:51:17.835 883 25579 D audio_hw_extn: audio_extn_fm_get_parameters: Enter
03-28 00:51:17.835 883 25579 D audio_hw_extn: audio_extn_get_parameters: returns
03-28 00:51:17.835 883 25579 D audio_hw_primary: adev_get_parameters: exit: returns -
03-28 00:51:17.842 3826 3853 D MediaCodec: keep callback message for reclaim
03-28 00:51:17.843 3826 3856 W Codec2Client: query -- param skipped: index = 1342179345.
03-28 00:51:17.843 3826 3856 W Codec2Client: query -- param skipped: index = 2415921170.
03-28 00:51:17.844 3826 3856 W Codec2Client: query -- param skipped: index = 3254792206.
03-28 00:51:17.844 3826 3856 W Codec2Client: query -- param skipped: index = 3254792194.
03-28 00:51:17.844 3826 3856 D C2Store : Using ION
03-28 00:51:17.844 1733 2070 I AudioService.RecordingActivityMonitor: rec update riid:12319 uid:2000 session:9049 src:REMOTE_SUBMIX not silenced pack:com.android.shell
03-28 00:51:17.845 3826 3856 D CCodecBufferChannel: [c2.android.opus.encoder#837] Created input block pool with allocatorID 16 => poolID 17 - OK (0)
03-28 00:51:17.847 3826 3856 I CCodecBufferChannel: [c2.android.opus.encoder#837] Created output block pool with allocatorID 16 => poolID 634 - OK
03-28 00:51:17.848 3826 3856 D CCodecBufferChannel: [c2.android.opus.encoder#837] Configured output block pool ids 634 => OK
03-28 00:51:17.849 1187 3866 D SimpleC2Component: Using output block pool with poolID 634 => got 634 - 0
03-28 00:51:17.851 3376 3546 D AudioFx-AudioOutputChangeListener: onAudioOutputChanged id: 6546 type: 25 name: remote-submix address: 0 [android.media.AudioDeviceInfo@19b1]
03-28 00:51:17.854 1733 1733 I Telecom : WiredHeadsetManager: ACTION_HEADSET_PLUG event, plugged in: false, : WHC.oADA@Kl0
03-28 00:51:17.855 916 916 E WifiHAL : get_wifi_interface_info: QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE not found
03-28 00:51:17.855 916 916 E WifiHAL : nl80211: requestResponse->nl_recvmsgs failed: -5
03-28 00:51:17.856 1733 2004 E WifiVendorHal: getWifiLinkLayerStats_1_6_Internal(l.1199) failed {.code = ERROR_INVALID_ARGS, .description = }
I will close this, last comment I gave is different to the original issue that I had, which was answered and is appreciated. Thanks!
Environment
Describe the bug I'm trying to run server to feed it into ffmpeg, I tried what searching has given me, but nothing happens when doing so in 2.0, unless
audio=false
is added. Is there a way to run server with audio enabled? I have also tried this on a Mi 9T Android 13 version btw.