TP-Link Tapo C220 2-Way Audio Issue
I followed https://github.com/AlexxIT/go2rtc#source-tapo and it seems 2-Way audio worked for many users. However its not working for me. Not sure if I am making any mistake here.
My go2rtc config:
streams:
# TPLink Tapo C220
tapo1:
- rtsp://tpadmin:<Local_Plain_Password>@192.168.5.225:554/stream1
- "ffmpeg:tapo1#video=copy#audio=opus"
- tapo://<Cloud_Plain_Password>@192.168.5.225 <<-THis does load the stream
# - tapo://tpadmin:<Cloud_MD5_Password>@192.168.5.225 <<-This does not load the stream. Cloud Password is correct
go2rtc info:
{
"producers": [
{
"id": 2,
"format_name": "rtsp",
"protocol": "rtsp+tcp",
"remote_addr": "192.168.5.225:554",
"url": "rtsp://tpadmin:<Local_Plain_Password>@192.168.5.225:554/stream1",
"sdp": "v=0\r\no=- 14665860 31787219 1 IN IP4 192.168.5.225\r\ns=Session streamed by \"TP-LINK RTSP Server\"\r\nt=0 0\r\nm=video 0 RTP/AVP 96\r\nc=IN IP4 0.0.0.0\r\nb=AS:4096\r\na=range:npt=0-\r\na=control:track1\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1; profile-level-id=640032; sprop-parameter-sets=Z2QAMqzSAKAC1oQAAA+kAAHVOBA=,aOqMKyCs\r\nm=audio 0 RTP/AVP 8\r\na=rtpmap:8 PCMA/8000\r\na=control:track2\r\n",
"user_agent": "go2rtc/1.9.4",
"medias": [
"video, recvonly, H264",
"audio, recvonly, PCMA/8000"
],
"receivers": [
{
"id": 3,
"codec": {
"codec_name": "h264",
"codec_type": "video",
"level": 50,
"profile": "High"
},
"childs": [
4
]
},
{
"id": 5,
"codec": {
"codec_name": "pcm_alaw",
"codec_type": "audio",
"sample_rate": 8000
},
"childs": [
6
]
}
]
},
{
"url": "ffmpeg:camera_go2rtc_loft#audio=aac"
},
{
"url": "tapo://tpadmin:<Cloud_MD5_Password>@192.168.5.225"
}
],
"consumers": [
{
"id": 1,
"format_name": "probe",
"protocol": "http",
"remote_addr": "172.30.32.2:57708 forwarded 192.168.4.53, 172.30.32.1",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"medias": [
"video, sendonly, ALL",
"audio, sendonly, ALL",
"audio, recvonly, ANY"
],
"senders": [
{
"id": 4,
"codec": {
"codec_name": "h264",
"codec_type": "video",
"level": 50,
"profile": "High"
},
"parent": 3
},
{
"id": 6,
"codec": {
"codec_name": "pcm_alaw",
"codec_type": "audio",
"sample_rate": 8000
},
"parent": 5
}
]
}
]
}
Hello, Try changing audio to AAC instead of opus, this works for me :)
Have a nice day, Azerty
And I only use the tapo:// line, not the rtsp one :)
FYI There apears to be an issue with the tapo cloud password with newer firmware https://github.com/JurajNyiri/HomeAssistant-Tapo-Control/issues/551
The correct problem with updating Tapo cameras firmware was mentioned above.