Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix detection webrtc without audio #1106

Open
robert-sz-76 opened this issue May 11, 2024 · 10 comments
Open

Fix detection webrtc without audio #1106

robert-sz-76 opened this issue May 11, 2024 · 10 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@robert-sz-76
Copy link

robert-sz-76 commented May 11, 2024

After the last update I have no sound on my imou camera.
Same result for different configuration (I try hith the :554 port too):

rtcImouHd: hass://supervisor?entity_id=camera.lechange_profile000 # onvif://admin:XXXXXXX@192.168.2.105:80?subtype=Profile000 # 
rtcImou1: onvif://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=0
rtcImouSd: hass://supervisor?entity_id=camera.lechange_profile001
rtcImouOnvifHD: onvif://admin:XXXXXXX@192.168.2.105:80?subtype=Profile000
rtcImouOnvifSD: onvif://admin:XXXXXXX@192.168.2.105:80?subtype=Profile001
rtcImou0: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=0
rtcImou1: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1
rtcImou00: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=0&subtype=0
rtcImou01: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=0&subtype=1
rtcImou10: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=0
rtcImou11: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=1
rtcImou000: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=0&subtype=0&backchannel=0
rtcImou011: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=0&subtype=1&backchannel=1
rtcImou100: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=0&backchannel=0
rtcImou111: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=1&backchannel=1
go2rtc Current version: 1.9.1 
Ranger 2-A-23B2 Model: IPC-A22E-A
 Imou HD 1920:1080 SD 640:480
   HD
     rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=0&backchannel=0
     Generale
     URL: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=0&backchannel=0
     Durata: 00:00:01
     Demuxer: lavf
     Informazioni
     Nome: Media Server
     Titolo flusso: Media Server
     Stream video iniziale
     Risoluzione: 1920 x 1080
     Rapporto d'aspetto: 1.77778
     Formato: h264
     Bitrate: 0 kbps
     Frame al secondo: 15.000000
     Codec Selezionato: h264
     Stream Video
     Traccia 0
     ID: 1
     Flusso Audio Iniziale
     Formato: aac
     Bitrate: 30 kbps
     Frequenza campionamento: 16000 Hz
     Canali: 1
     Codec Selezionato: aac
     Flussi Audio
     Traccia 0
     ID: 1
   SD
     rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=1&backchannel=0
     Generale
     URL: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=1&backchannel=0
     Durata: 00:00:01
     Demuxer: lavf
     Informazioni
     Nome: Media Server
     Titolo flusso: Media Server
     Stream video iniziale
     Risoluzione: 640 x 480
     Rapporto d'aspetto: 1.33333
     Formato: h264
     Bitrate: 781 kbps
     Frame al secondo: 25.000000
     Codec Selezionato: h264
     Stream Video
     Traccia 0
     ID: 1
     Flusso Audio Iniziale
     Formato: aac
     Bitrate: 36 kbps
     Frequenza campionamento: 16000 Hz
     Canali: 1
     Codec Selezionato: aac
     Flussi Audio
     Traccia 0
     ID: 1
@AlexxIT AlexxIT added the question Further information is requested label May 12, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented May 12, 2024

You haven't provided information where you don't have audio
https://github.com/AlexxIT/go2rtc?tab=readme-ov-file#codecs-madness

@robert-sz-76
Copy link
Author

Sorry, I mean I don't receive any sound from Imou camera in go2rtc (rtcImou11: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=1 ; neither from the onvif integration). Not a single one from the configuration above have sound on stream. Accessing the camera from my desktop (linux mint - vlc rtcImou11: rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=1) the stream has sound.

@AlexxIT
Copy link
Owner

AlexxIT commented May 18, 2024

You still haven't provided information as to how you view the stream. Have you looked into my link?

@robert-sz-76
Copy link
Author

robert-sz-76 commented May 18, 2024

I think it doesn't matter where I view the stream. Still 2 upgrades ago the stream have sound no matter where I see it (Home Companion; Chrome or Firefox on Linux Mint). After the update (go2rtc and Home Assistant core) the stream have no sound no matter where I see it (Home Companion; Chrome or Firefox on Linux Mint).

Go2rtc config:

rtcImouHd: rtsp://admin:xxx@192.168.2.105:80/cam/realmonitor?channel=1&subtype=0

WebRtc card:

`type: custom:webrtc-camera`
`url: rtcImouHd`
`name: wrtcImouHD`
`muted?: false`
`ui: true`
`style: >-`
`  video {transform: rotate(90deg);} .pictureinpicture {display: none}`
`  .fullscreen {display: none}`

Did I provided information as to how I view the stream ?

@AlexxIT
Copy link
Owner

AlexxIT commented May 18, 2024

Yes. I guess you should have MSE label in the top right corner of WebRTC card. Right?
Also you can show probe info from go2rtc WebUI for your stream.

@robert-sz-76
Copy link
Author

Actually it start with MSE but after less than an second it switch to RTC. Only video.

PROBE from go2rtc WebUI:
(By the way, PROBE & INFO text color is black and background is black also)

{
  "producers": [
    {
      "type": "RTSP active producer",
      "url": "rtsp://192.168.2.105:80/cam/realmonitor?channel=1\u0026subtype=0/",
      "remote_addr": "192.168.2.105:80",
      "user_agent": "go2rtc/1.9.2",
      "sdp": "v=0\r\no=- 2229913047 2229913047 IN IP4 0.0.0.0\r\ns=Media Server\r\nc=IN IP4 0.0.0.0\r\nt=0 0\r\na=control:*\r\na=packetization-supported:DH\r\na=rtppayload-supported:DH\r\na=range:npt=now-\r\nm=video 0 RTP/AVP 96\r\na=control:trackID=0\r\na=framerate:15.000000\r\na=rtpmap:96 H264/90000\r\na=fmtp:96 packetization-mode=1;profile-level-id=4D4020;sprop-parameter-sets=Z01AIKaAUAXfiZuAgICgAAADACAAAAMD0IAA,aO48gAA=\r\na=recvonly\r\nm=audio 0 RTP/AVP 97\r\na=control:trackID=1\r\na=rtpmap:97 MPEG4-GENERIC/16000\r\na=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408\r\na=recvonly\r\n",
      "medias": [
        "video, recvonly, H.264 Main 3.2",
        "audio, recvonly, MPEG4-GENERIC/16000"
      ],
      "receivers": [
        "96 H264, bytes=0, senders=1",
        "97 MPEG4-GENERIC/16000, bytes=0, senders=1"
      ]
    }
  ],
  "consumers": [
    {
      "type": "probe",
      "remote_addr": "192.168.2.43, 172.30.32.1, 172.30.32.2:59936",
      "user_agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36",
      "medias": [
        "video, sendonly, ALL",
        "audio, sendonly, ALL",
        "audio, recvonly, ANY"
      ],
      "senders": [
        "96 H264, bytes=0, receivers=1",
        "97 MPEG4-GENERIC/16000, bytes=0, receivers=1"
      ]
    }
  ]
}

INFO from go2rtc WebUI:

{
  "producers": [
    {
      "url": "rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1\u0026subtype=0"
    }
  ],
  "consumers": []
}

LOG from go2rtc WebUI:

Streams Add Config Log 🌕
Clean Auto Update: ON Reverse Log Order: OFF


Time	Level	Message
19/05/2024, 11:03:39	trace	[api] GET /api/log 172.30.32.2:41904
19/05/2024, 11:03:41	trace	[api] GET /index.html 172.30.32.2:41904
19/05/2024, 11:03:41	trace	[api] GET / 172.30.32.2:41904
19/05/2024, 11:03:41	trace	[api] GET /main.js 172.30.32.2:41904
19/05/2024, 11:03:41	trace	[api] GET /api 172.30.32.2:41904
19/05/2024, 11:03:41	trace	[api] GET /api/streams 172.30.32.2:41904
19/05/2024, 11:03:42	trace	[api] GET /api/streams 172.30.32.2:41904
19/05/2024, 11:03:43	trace	[api] GET /api/streams 172.30.32.2:41904
19/05/2024, 11:03:43	trace	[api] GET /stream.html?src=rtcImouHd 172.30.32.2:41904
19/05/2024, 11:03:43	trace	[api] GET /video-stream.js 172.30.32.2:41904
19/05/2024, 11:03:43	trace	[api] GET /video-rtc.js 172.30.32.2:41904
19/05/2024, 11:03:43	trace	[api] GET /api/ws?src=rtcImouHd 172.30.32.2:41904
19/05/2024, 11:03:43	trace	[api] ws msg type=mse
19/05/2024, 11:03:43	trace	[mp4] new WS/MSE consumer codecs=avc1.640029,avc1.64002A,avc1.640033,mp4a.40.2,mp4a.40.5,flac,opus
19/05/2024, 11:03:43	trace	[streams] check cons=0 media=video, sendonly, H264
19/05/2024, 11:03:43	trace	[rtsp] client request:
DESCRIBE rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
User-Agent: go2rtc/1.9.2
CSeq: 1

19/05/2024, 11:03:43	trace	[api] ws msg type=webrtc/offer
19/05/2024, 11:03:43	trace	[api] ws msg type=webrtc/candidate
19/05/2024, 11:03:43	trace	[webrtc] remote candidate=candidate:1587571104 1 udp 2122260223 192.168.2.43 51786 typ host generation 0 ufrag eRfT network-id 1 network-cost 10
19/05/2024, 11:03:43	debug	[webrtc] new consumer src=rtcImouHd
19/05/2024, 11:03:43	trace	[webrtc] offer:
v=0
o=- 5060901652199423175 2 IN IP4 127.0.0.1
s=-
t=0 0
a=group:BUNDLE 0 1
a=extmap-allow-mixed
a=msid-semantic: WMS
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 35 36 37 38 102 103 104 105 106 107 108 109 127 125 39 40 41 42 43 44 45 46 47 48 112 113 114 49
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:eRfT
a=ice-pwd:g4PHQRtwI0nbQWQlzA3lKF/P
a=ice-options:trickle
a=fingerprint:sha-256 B8:0F:19:BD:DF:E6:53:1A:8D:C9:EF:EA:8A:B9:E7:CB:EA:DE:1D:93:E1:6C:00:31:BC:BF:DF:0A:DC:92:07:55
a=setup:actpass
a=mid:0
a=extmap:1 urn:ietf:params:rtp-hdrext:toffset
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:3 urn:3gpp:video-orientation
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
a=recvonly
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:96 VP8/90000
a=rtcp-fb:96 goog-remb
a=rtcp-fb:96 transport-cc
a=rtcp-fb:96 ccm fir
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=rtpmap:97 rtx/90000
a=fmtp:97 apt=96
a=rtpmap:98 VP9/90000
a=rtcp-fb:98 goog-remb
a=rtcp-fb:98 transport-cc
a=rtcp-fb:98 ccm fir
a=rtcp-fb:98 nack
a=rtcp-fb:98 nack pli
a=fmtp:98 profile-id=0
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=98
a=rtpmap:100 VP9/90000
a=rtcp-fb:100 goog-remb
a=rtcp-fb:100 transport-cc
a=rtcp-fb:100 ccm fir
a=rtcp-fb:100 nack
a=rtcp-fb:100 nack pli
a=fmtp:100 profile-id=2
a=rtpmap:101 rtx/90000
a=fmtp:101 apt=100
a=rtpmap:35 VP9/90000
a=rtcp-fb:35 goog-remb
a=rtcp-fb:35 transport-cc
a=rtcp-fb:35 ccm fir
a=rtcp-fb:35 nack
a=rtcp-fb:35 nack pli
a=fmtp:35 profile-id=1
a=rtpmap:36 rtx/90000
a=fmtp:36 apt=35
a=rtpmap:37 VP9/90000
a=rtcp-fb:37 goog-remb
a=rtcp-fb:37 transport-cc
a=rtcp-fb:37 ccm fir
a=rtcp-fb:37 nack
a=rtcp-fb:37 nack pli
a=fmtp:37 profile-id=3
a=rtpmap:38 rtx/90000
a=fmtp:38 apt=37
a=rtpmap:102 H264/90000
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtpmap:103 rtx/90000
a=fmtp:103 apt=102
a=rtpmap:104 H264/90000
a=rtcp-fb:104 goog-remb
a=rtcp-fb:104 transport-cc
a=rtcp-fb:104 ccm fir
a=rtcp-fb:104 nack
a=rtcp-fb:104 nack pli
a=fmtp:104 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42001f
a=rtpmap:105 rtx/90000
a=fmtp:105 apt=104
a=rtpmap:106 H264/90000
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtpmap:107 rtx/90000
a=fmtp:107 apt=106
a=rtpmap:108 H264/90000
a=rtcp-fb:108 goog-remb
a=rtcp-fb:108 transport-cc
a=rtcp-fb:108 ccm fir
a=rtcp-fb:108 nack
a=rtcp-fb:108 nack pli
a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
a=rtpmap:109 rtx/90000
a=fmtp:109 apt=108
a=rtpmap:127 H264/90000
a=rtcp-fb:127 goog-remb
a=rtcp-fb:127 transport-cc
a=rtcp-fb:127 ccm fir
a=rtcp-fb:127 nack
a=rtcp-fb:127 nack pli
a=fmtp:127 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=4d001f
a=rtpmap:125 rtx/90000
a=fmtp:125 apt=127
a=rtpmap:39 H264/90000
a=rtcp-fb:39 goog-remb
a=rtcp-fb:39 transport-cc
a=rtcp-fb:39 ccm fir
a=rtcp-fb:39 nack
a=rtcp-fb:39 nack pli
a=fmtp:39 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=4d001f
a=rtpmap:40 rtx/90000
a=fmtp:40 apt=39
a=rtpmap:41 H264/90000
a=rtcp-fb:41 goog-remb
a=rtcp-fb:41 transport-cc
a=rtcp-fb:41 ccm fir
a=rtcp-fb:41 nack
a=rtcp-fb:41 nack pli
a=fmtp:41 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=f4001f
a=rtpmap:42 rtx/90000
a=fmtp:42 apt=41
a=rtpmap:43 H264/90000
a=rtcp-fb:43 goog-remb
a=rtcp-fb:43 transport-cc
a=rtcp-fb:43 ccm fir
a=rtcp-fb:43 nack
a=rtcp-fb:43 nack pli
a=fmtp:43 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=f4001f
a=rtpmap:44 rtx/90000
a=fmtp:44 apt=43
a=rtpmap:45 AV1/90000
a=rtcp-fb:45 goog-remb
a=rtcp-fb:45 transport-cc
a=rtcp-fb:45 ccm fir
a=rtcp-fb:45 nack
a=rtcp-fb:45 nack pli
a=fmtp:45 level-idx=5;profile=0;tier=0
a=rtpmap:46 rtx/90000
a=fmtp:46 apt=45
a=rtpmap:47 AV1/90000
a=rtcp-fb:47 goog-remb
a=rtcp-fb:47 transport-cc
a=rtcp-fb:47 ccm fir
a=rtcp-fb:47 nack
a=rtcp-fb:47 nack pli
a=fmtp:47 level-idx=5;profile=1;tier=0
a=rtpmap:48 rtx/90000
a=fmtp:48 apt=47
a=rtpmap:112 red/90000
a=rtpmap:113 rtx/90000
a=fmtp:113 apt=112
a=rtpmap:114 ulpfec/90000
a=rtpmap:49 flexfec-03/90000
a=rtcp-fb:49 goog-remb
a=rtcp-fb:49 transport-cc
a=fmtp:49 repair-window=10000000
m=audio 9 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126
c=IN IP4 0.0.0.0
a=rtcp:9 IN IP4 0.0.0.0
a=ice-ufrag:eRfT
a=ice-pwd:g4PHQRtwI0nbQWQlzA3lKF/P
a=ice-options:trickle
a=fingerprint:sha-256 B8:0F:19:BD:DF:E6:53:1A:8D:C9:EF:EA:8A:B9:E7:CB:EA:DE:1D:93:E1:6C:00:31:BC:BF:DF:0A:DC:92:07:55
a=setup:actpass
a=mid:1
a=extmap:14 urn:ietf:params:rtp-hdrext:ssrc-audio-level
a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
a=recvonly
a=rtcp-mux
a=rtpmap:111 opus/48000/2
a=rtcp-fb:111 transport-cc
a=fmtp:111 minptime=10;useinbandfec=1
a=rtpmap:63 red/48000/2
a=fmtp:63 111/111
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:13 CN/8000
a=rtpmap:110 telephone-event/48000
a=rtpmap:126 telephone-event/8000
19/05/2024, 11:03:43	trace	[streams] check cons=1 media=video, sendonly, VP8, VP9, H264, AV1
19/05/2024, 11:03:43	trace	[api] ws msg type=webrtc/candidate
19/05/2024, 11:03:43	trace	[webrtc] remote candidate=candidate:4058679454 1 udp 1686052607 151.71.242.93 51786 typ srflx raddr 192.168.2.43 rport 51786 generation 0 ufrag eRfT network-id 1 network-cost 10
19/05/2024, 11:03:43	trace	[api] ws msg type=webrtc/candidate
19/05/2024, 11:03:43	trace	[webrtc] remote candidate=candidate:2685058356 1 tcp 1518280447 192.168.2.43 9 typ host tcptype active generation 0 ufrag eRfT network-id 1 network-cost 10
19/05/2024, 11:03:43	trace	[api] ws msg type=webrtc/candidate
19/05/2024, 11:03:43	trace	[webrtc] remote candidate=
19/05/2024, 11:03:43	trace	[rtsp] client response:
RTSP/1.0 401 Unauthorized
Cseq: 1
Www-Authenticate: Digest realm="Login to 7C1DCDCA3B5C14A2",nonce="6b4a7e2f-2df5-42e0-b250-ee6fe061bc97"

19/05/2024, 11:03:43	trace	[rtsp] client request:
DESCRIBE rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0 RTSP/1.0
CSeq: 2
Authorization: Digest username="admin", realm="Login to 7C1DCDCA3B5C14A2", nonce="6b4a7e2f-2df5-42e0-b250-ee6fe061bc97", uri="rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0", response="38019b6c655ee070a67aff2e5e5a9f3b"
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
User-Agent: go2rtc/1.9.2

19/05/2024, 11:03:43	trace	[rtsp] client response:
RTSP/1.0 200 OK
Content-Type: application/sdp
X-Accept-Dynamic-Rate: 1
Cache-Control: must-revalidate
Content-Length: 604
Cseq: 2
Content-Base: rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0/

v=0
o=- 2229913047 2229913047 IN IP4 0.0.0.0
s=Media Server
c=IN IP4 0.0.0.0
t=0 0
a=control:*
a=packetization-supported:DH
a=rtppayload-supported:DH
a=range:npt=now-
m=video 0 RTP/AVP 96
a=control:trackID=0
a=framerate:15.000000
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=4D4020;sprop-parameter-sets=Z01AIKaAUAXfiZuAgICgAAADACAAAAMD0IAA,aO48gAA=
a=recvonly
m=audio 0 RTP/AVP 97
a=control:trackID=1
a=rtpmap:97 MPEG4-GENERIC/16000
a=fmtp:97 streamtype=5;profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3;config=1408
a=recvonly
19/05/2024, 11:03:43	trace	[streams] check cons=0 prod=0 media=video, recvonly, H.264 Main 3.2
19/05/2024, 11:03:43	trace	[streams] match cons=0 <= prod=0
19/05/2024, 11:03:43	trace	[streams] check cons=1 prod=0 media=video, recvonly, H.264 Main 3.2
19/05/2024, 11:03:43	trace	[streams] match cons=1 <= prod=0
19/05/2024, 11:03:43	trace	[rtsp] client request:
SETUP rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0/trackID=0 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
CSeq: 3
Authorization: Digest username="admin", realm="Login to 7C1DCDCA3B5C14A2", nonce="6b4a7e2f-2df5-42e0-b250-ee6fe061bc97", uri="rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0/trackID=0", response="fb79e22ff6642203edb3723cb79f963c"

19/05/2024, 11:03:43	trace	[rtsp] client response:
RTSP/1.0 200 OK
Cseq: 3
Session: 2439585660;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=9c2f99a9
X-Dynamic-Rate: 1

19/05/2024, 11:03:43	trace	[streams] check cons=0 media=audio, sendonly, MPEG4-GENERIC, PCMA, PCMU, L16, PCML, OPUS
19/05/2024, 11:03:43	trace	[streams] check cons=0 prod=0 media=video, recvonly, H.264 Main 3.2
19/05/2024, 11:03:43	trace	[streams] check cons=0 prod=0 media=audio, recvonly, MPEG4-GENERIC/16000
19/05/2024, 11:03:43	trace	[streams] check cons=1 media=audio, sendonly, OPUS/48000/2, G722/8000, PCMU/8000, PCMA/8000, L16, PCML
19/05/2024, 11:03:43	trace	[streams] match cons=0 <= prod=0
19/05/2024, 11:03:43	trace	[streams] check cons=1 prod=0 media=video, recvonly, H.264 Main 3.2
19/05/2024, 11:03:43	trace	[rtsp] client request:
SETUP rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0/trackID=1 RTSP/1.0
CSeq: 4
Authorization: Digest username="admin", realm="Login to 7C1DCDCA3B5C14A2", nonce="6b4a7e2f-2df5-42e0-b250-ee6fe061bc97", uri="rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0/trackID=1", response="238558774963a7f4b9eb8dde32ff5686"
Session: 2439585660
Transport: RTP/AVP/TCP;unicast;interleaved=2-3

19/05/2024, 11:03:43	trace	[streams] check cons=1 prod=0 media=audio, recvonly, MPEG4-GENERIC/16000
19/05/2024, 11:03:43	trace	[rtsp] client response:
RTSP/1.0 200 OK
Cseq: 4
Session: 2439585660;timeout=60
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;ssrc=89758241
X-Dynamic-Rate: 1

19/05/2024, 11:03:43	debug	[streams] start producer url=rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=0
19/05/2024, 11:03:43	trace	[rtsp] client request:
PLAY rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0/ RTSP/1.0
CSeq: 5
Authorization: Digest username="admin", realm="Login to 7C1DCDCA3B5C14A2", nonce="6b4a7e2f-2df5-42e0-b250-ee6fe061bc97", uri="rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0/", response="9deeb69c8bb2b271f94414c4f6e99695"
Session: 2439585660

19/05/2024, 11:03:43	trace	[rtsp] client response:
RTSP/1.0 200 OK
Session: 2439585660
Range:
Rtp-Info: url=trackID=0;seq=1;rtptime=0,url=trackID=1;seq=1;rtptime=0
Cseq: 5

19/05/2024, 11:03:43	trace	[webrtc] answer
v=0
o=- 5019436402747809815 1716109423 IN IP4 0.0.0.0
s=-
t=0 0
a=msid-semantic:WMS*
a=fingerprint:sha-256 1D:86:E9:A3:95:CE:BC:39:7E:2F:D6:10:B7:03:54:8F:CF:61:45:EA:7F:04:5B:E5:44:24:36:7B:30:BF:32:9F
a=extmap-allow-mixed
a=group:BUNDLE 0 1
m=video 9 UDP/TLS/RTP/SAVPF 102 106
c=IN IP4 0.0.0.0
a=setup:active
a=mid:0
a=ice-ufrag:fUtyWyXrtJcmXhzF
a=ice-pwd:UtxnEbPAHqYpROAAbmWkiJEfUjbSAJhp
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:102 H264/90000
a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42001f
a=rtcp-fb:102 goog-remb
a=rtcp-fb:102 transport-cc
a=rtcp-fb:102 ccm fir
a=rtcp-fb:102 nack
a=rtcp-fb:102 nack pli
a=rtpmap:106 H264/90000
a=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
a=rtcp-fb:106 goog-remb
a=rtcp-fb:106 transport-cc
a=rtcp-fb:106 ccm fir
a=rtcp-fb:106 nack
a=rtcp-fb:106 nack pli
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=ssrc:4060770865 cname:go2rtc
a=ssrc:4060770865 msid:go2rtc go2rtc-video
a=ssrc:4060770865 mslabel:go2rtc
a=ssrc:4060770865 label:go2rtc-video
a=msid:go2rtc go2rtc-video
a=sendonly
m=audio 9 UDP/TLS/RTP/SAVPF 111 0 8
c=IN IP4 0.0.0.0
a=setup:active
a=mid:1
a=ice-ufrag:fUtyWyXrtJcmXhzF
a=ice-pwd:UtxnEbPAHqYpROAAbmWkiJEfUjbSAJhp
a=rtcp-mux
a=rtcp-rsize
a=rtpmap:111 opus/48000/2
a=fmtp:111 minptime=10;useinbandfec=1
a=rtcp-fb:111 transport-cc
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
a=ssrc:2545246779 cname:go2rtc
a=ssrc:2545246779 msid:go2rtc go2rtc-audio
a=ssrc:2545246779 mslabel:go2rtc
a=ssrc:2545246779 label:go2rtc-audio
a=msid:go2rtc go2rtc-audio
a=inactive
19/05/2024, 11:03:43	trace	[webrtc] local candidate=candidate:2878742611 1 udp 2130706431 127.0.0.1 8555 typ host
19/05/2024, 11:03:43	trace	[webrtc] local candidate=candidate:550171243 1 udp 2130706431 192.168.2.246 8555 typ host
19/05/2024, 11:03:43	trace	[webrtc] local candidate=candidate:954102776 1 udp 2130706431 172.30.232.1 8555 typ host
19/05/2024, 11:03:43	trace	[webrtc] local candidate=candidate:2737820120 1 udp 2130706431 172.30.32.1 8555 typ host
19/05/2024, 11:03:43	trace	[webrtc] local candidate=candidate:2637792139 1 tcp 1671430143 192.168.2.246 8555 typ host tcptype passive
19/05/2024, 11:03:43	trace	[webrtc] local candidate=candidate:2953716783 1 udp 1694498815 151.71.242.93 53831 typ srflx raddr 0.0.0.0 rport 53831
19/05/2024, 11:03:44	trace	undefined error=websocket: close 1000 (normal) caller=github.com/AlexxIT/go2rtc/internal/api/ws/ws.go:124
19/05/2024, 11:03:50	trace	[api] GET / 172.30.32.2:53018
19/05/2024, 11:03:50	trace	[api] GET /api 172.30.32.2:53018
19/05/2024, 11:03:50	trace	[api] GET /api/streams 172.30.32.2:53018
19/05/2024, 11:03:51	trace	[api] GET /api/streams 172.30.32.2:53018
19/05/2024, 11:03:52	trace	[api] GET /api/streams 172.30.32.2:53018
19/05/2024, 11:03:53	trace	[api] GET /api/streams 172.30.32.2:53018
19/05/2024, 11:03:54	trace	[api] GET /log.html 172.30.32.2:53018
19/05/2024, 11:03:54	trace	[api] GET /api/streams 172.30.32.2:53018
19/05/2024, 11:03:54	trace	[api] GET /main.js 172.30.32.2:53018
19/05/2024, 11:03:54	trace	[api] GET /api/log 172.30.32.2:53018
19/05/2024, 11:03:56	debug	[streams] stop producer url=rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=0
19/05/2024, 11:03:56	trace	[rtsp] client request:
TEARDOWN rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0/ RTSP/1.0
CSeq: 6
Authorization: Digest username="admin", realm="Login to 7C1DCDCA3B5C14A2", nonce="6b4a7e2f-2df5-42e0-b250-ee6fe061bc97", uri="rtsp://192.168.2.105:80/cam/realmonitor?channel=1&subtype=0/", response="1b5e800aa4d28ebcdca86e967f9e678d"
Session: 2439585660

19/05/2024, 11:03:56	trace	[streams] stop reconnect url=rtsp://admin:XXXXXXX@192.168.2.105:80/cam/realmonitor?channel=1&subtype=0
19/05/2024, 11:03:59	trace	[api] GET /api/log 172.30.32.2:53018
19/05/2024, 11:04:04	trace	[api] GET /api/log 172.30.32.2:53018
19/05/2024, 11:04:09	trace	[api] GET /api/log 172.30.32.2:53018
19/05/2024, 11:04:14	trace	[api] GET /api/log 172.30.32.2:53018
19/05/2024, 11:04:16	trace	[api] GET /api/streams?src=tapo [::1]:50436
19/05/2024, 11:04:19	trace	[api] GET /api/log 172.30.32.2:53018

@AlexxIT
Copy link
Owner

AlexxIT commented May 19, 2024

RTC explains why you don't have sound. But there is no explanation for why the switching from MSE to RTC is happening.
In which browser does this happen and on which operating system?

@robert-sz-76
Copy link
Author

robert-sz-76 commented May 19, 2024

It happen on Chrome Versione 125.0.6422.60 (Build ufficiale) (a 64 bit) and Firefox 125.0.3 (64 bit) on Linux Mint Linux Mint 21.3 Cinnamon Kernel 6.5.0-35-generic.
Also in happen on Home Assistant App ver. 2024.4.1-full on an android 13 kernel 4.14.113 (samsung A51).
I just try Edge on windows 11 on virtualbox with the same result.
In few words: no sound no matter where I look.

Remember that the stream has sound, I try it on vlc/linux. And the Onvif integration is without sound too. Something was broken with this 2 update that I made: go2rtc & HA Core.

@AlexxIT
Copy link
Owner

AlexxIT commented May 19, 2024

In RTC mode you will have no sound. This is expected behaviour. The answer is in the second message.

Unexpected behaviour that you have a mode change from MSE to RTC. This should not happen.

@AlexxIT AlexxIT self-assigned this May 19, 2024
@AlexxIT AlexxIT added bug Something isn't working and removed question Further information is requested labels May 24, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented May 24, 2024

I don't know what version you upgraded from. But it seems that this problem has been there since go2rtc v1.8.0.

@AlexxIT AlexxIT changed the title Imou camera without sound. Fix detection webrtc without audio May 24, 2024
@AlexxIT AlexxIT added this to the v1.9.3 milestone May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants