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

(0.1-rc.9 linux/amd64) WebRTC Streaming Video Freezing with Working Audio #190

Closed
LckySndays opened this issue Jan 22, 2023 · 27 comments
Closed
Labels
question Further information is requested

Comments

@LckySndays
Copy link

LckySndays commented Jan 22, 2023

Camera RTSP Source H.265 / HEVC (3200x1800) 20fps
Tried to use WebRTC on iPhone Safari and got no Video with Audio Working (AlexxIT/Blog#5)

Tried to transcode it into h264 with
#video=h264#audio=copy#audio=opus#hardware=nvidia
Video is Freezing and skipping every few second while the Audio working flawlessly even when the Video freezing

More info here:
blakeblackshear/frigate#5187

2023-01-22 23:40:10.472088798  15:40:10.472 INF go2rtc version 0.1-rc.9 linux/amd64
2023-01-22 23:40:10.472243725  15:40:10.472 INF [api] listen addr=:1984
2023-01-22 23:40:10.472244992  15:40:10.472 INF [rtsp] listen addr=:8554
2023-01-22 23:40:10.472431117  15:40:10.472 INF [webrtc] listen addr=:8555
2023-01-22 23:40:10.472432403  15:40:10.472 INF [srtp] listen addr=:8443
2023-01-22 23:40:16.267737397  15:40:16.267 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:203 > error=EOF
2023-01-22 23:40:16.287604288  15:40:16.287 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:203 > error=EOF
2023-01-22 23:40:16.427575486  15:40:16.427 WRN github.com/AlexxIT/go2rtc/cmd/rtsp/rtsp.go:203 > error=EOF
@AlexxIT AlexxIT added the question Further information is requested label Jan 22, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 22, 2023

This command does not transcode anything #video=copy#audio=copy#audio=opus#hardware=nvidia
You need #video=h264#audio=copy#audio=opus#hardware=nvidia.

Tell me exactly what codec, on what technology and on what device worked with freezes.

@LckySndays
Copy link
Author

@AlexxIT Sorry, I copy pasted the wrong line, my bad
#video=h264#audio=copy#audio=opus#hardware=nvidia is what i'm using right now

The source codec is H265 transcoded with the line above on many hikvison brand cctv some of which Hikvision DS-2CD3367WDV3-L

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 22, 2023

You can enable trace log level for go2rtc and check some useful info there.

What about H265? Have you enable this codec in iPhone Safari?

@LckySndays
Copy link
Author

LckySndays commented Jan 23, 2023

@AlexxIT I don't know that safari h265 codec is not even enabled by default.
After enabling it in experimental feature, I get the video working (better to include it somewhere here AlexxIT/Blog#5)

But the main issue still persist, now no matter what codec it is (h264/h265) the WebRTC video still freezing and skipping lot of time while it is playing smoothly with MSE streaming

Here is my trace log source rtsp with no sound (rtsp://user:pass@192.168.1.199/Streaming/Channels/101)

2023-01-23 17:22:52.875732776  09:22:52.875 INF go2rtc version 0.1-rc.9 linux/amd64
2023-01-23 17:22:52.875764563  09:22:52.875 TRC [api] register path path=/
2023-01-23 17:22:52.875769585  09:22:52.875 TRC [api] register path path=/api
2023-01-23 17:22:52.875773577  09:22:52.875 TRC [api] register path path=/api/config
2023-01-23 17:22:52.875775739  09:22:52.875 TRC [api] register path path=/api/exit
2023-01-23 17:22:52.875777585  09:22:52.875 TRC [api] register path path=/api/ws
2023-01-23 17:22:52.875844269  09:22:52.875 INF [api] listen addr=:1984
2023-01-23 17:22:52.875867873  09:22:52.875 INF [rtsp] listen addr=:8554
2023-01-23 17:22:52.875894170  09:22:52.875 TRC [api] register path path=/api/devices
2023-01-23 17:22:52.875932959  09:22:52.875 TRC [api] register path path=/static
2023-01-23 17:22:52.875934588  09:22:52.875 TRC [api] register path path=/streams
2023-01-23 17:22:52.875940334  09:22:52.875 TRC [api] register path path=/stream/
2023-01-23 17:22:52.875940911  09:22:52.875 TRC [api] register path path=/stream
2023-01-23 17:22:52.875988968  09:22:52.875 INF [webrtc] listen addr=:8555
2023-01-23 17:22:52.875993800  09:22:52.875 TRC [api] register path path=/api/webrtc
2023-01-23 17:22:52.875995891  09:22:52.875 TRC [api] register path path=/api/frame.mp4
2023-01-23 17:22:52.875999687  09:22:52.875 TRC [api] register path path=/api/stream.mp4
2023-01-23 17:22:52.876001591  09:22:52.875 TRC [api] register path path=/api/frame.jpeg
2023-01-23 17:22:52.876005024  09:22:52.876 TRC [api] register path path=/api/stream.mjpeg
2023-01-23 17:22:52.876025306  09:22:52.876 INF [srtp] listen addr=:8443
2023-01-23 17:22:52.876030860  09:22:52.876 TRC [api] register path path=/api/homekit
2023-01-23 17:22:52.876046037  09:22:52.876 TRC [api] register path path=/api/stack
2023-01-23 17:22:53.208915668  09:22:53.208 TRC [rtsp] server request:
2023-01-23 17:22:53.208917131  OPTIONS rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:22:53.208917694  Cseq: 1
2023-01-23 17:22:53.208918220  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:22:53.208920465  
2023-01-23 17:22:53.208920941  
2023-01-23 17:22:53.208921784  09:22:53.208 TRC [rtsp] server response:
2023-01-23 17:22:53.208922306  RTSP/1.0 200 OK
2023-01-23 17:22:53.208922924  Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD
2023-01-23 17:22:53.208928962  Cseq: 1
2023-01-23 17:22:53.208929505  
2023-01-23 17:22:53.208929979  
2023-01-23 17:22:53.209030981  09:22:53.208 TRC [rtsp] server request:
2023-01-23 17:22:53.209032290  DESCRIBE rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:22:53.209032874  Accept: application/sdp
2023-01-23 17:22:53.209033327  Cseq: 2
2023-01-23 17:22:53.209033795  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:22:53.209034239  
2023-01-23 17:22:53.209034757  
2023-01-23 17:22:53.209035327  09:22:53.208 DBG [rtsp] new consumer stream=TestCam1
2023-01-23 17:22:53.209035885  09:22:53.208 TRC [streams] consumer=0 candidate=0 media="video, recvonly"
2023-01-23 17:22:53.209037221  09:22:53.208 DBG [streams] probe producer url=rtsp://user:pass@192.168.1.216/Streaming/Channels/101
2023-01-23 17:22:53.210133319  09:22:53.210 TRC [rtsp] client request:
2023-01-23 17:22:53.210133856  DESCRIBE rtsp://192.168.1.216:554/Streaming/Channels/101 RTSP/1.0
2023-01-23 17:22:53.210134356  CSeq: 1
2023-01-23 17:22:53.210134863  Accept: application/sdp
2023-01-23 17:22:53.210135325  Require: www.onvif.org/ver20/backchannel
2023-01-23 17:22:53.210135757  
2023-01-23 17:22:53.210136235  
2023-01-23 17:22:53.212383239  09:22:53.212 TRC [rtsp] client response:
2023-01-23 17:22:53.212383997  RTSP/1.0 401 Unauthorized
2023-01-23 17:22:53.212384445  Cseq: 1
2023-01-23 17:22:53.212385105  Www-Authenticate: Digest realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", stale="FALSE"
2023-01-23 17:22:53.212385644  Date: Mon, Jan 23 2023 17:22:51 GMT
2023-01-23 17:22:53.212386121  
2023-01-23 17:22:53.212386541  
2023-01-23 17:22:53.212393416  09:22:53.212 TRC [rtsp] client request:
2023-01-23 17:22:53.212393951  DESCRIBE rtsp://192.168.1.216:554/Streaming/Channels/101 RTSP/1.0
2023-01-23 17:22:53.212394439  CSeq: 2
2023-01-23 17:22:53.212395441  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101", response="699388a9644dc7d9d85617912f5030f8"
2023-01-23 17:22:53.212395892  Accept: application/sdp
2023-01-23 17:22:53.212396404  Require: www.onvif.org/ver20/backchannel
2023-01-23 17:22:53.212396865  
2023-01-23 17:22:53.212397309  
2023-01-23 17:22:56.760242826  09:22:56.760 TRC [rtsp] client response:
2023-01-23 17:22:56.760249964  RTSP/1.0 200 OK
2023-01-23 17:22:56.760252611  Content-Length: 1272
2023-01-23 17:22:56.760255099  Content-Type: application/sdp
2023-01-23 17:22:56.760258091  Content-Base: rtsp://192.168.1.216:554/Streaming/Channels/101/
2023-01-23 17:22:56.760260660  Cseq: 2
2023-01-23 17:22:56.760263079  
2023-01-23 17:22:56.760265382  v=0
2023-01-23 17:22:56.760268114  o=- 1674494575454099 1674494575454099 IN IP4 192.168.1.216
2023-01-23 17:22:56.760270791  s=Media Presentation
2023-01-23 17:22:56.760273016  e=NONE
2023-01-23 17:22:56.760275623  b=AS:5150
2023-01-23 17:22:56.760278266  t=0 0
2023-01-23 17:22:56.760280932  a=control:rtsp://192.168.1.216:554/Streaming/Channels/101/
2023-01-23 17:22:56.760284897  m=video 0 RTP/AVP 96
2023-01-23 17:22:56.760287405  c=IN IP4 0.0.0.0
2023-01-23 17:22:56.760289943  b=AS:5000
2023-01-23 17:22:56.760334260  a=recvonly
2023-01-23 17:22:56.760337148  a=x-dimensions:3840,2160
2023-01-23 17:22:56.760340098  a=control:rtsp://192.168.1.216:554/Streaming/Channels/101/trackID=1
2023-01-23 17:22:56.760342919  a=rtpmap:96 H265/90000
2023-01-23 17:22:56.760346090  a=fmtp:96 sprop-vps=QAEMAf//AWAAAAMAsAAAAwAAAwCZrAk=; sprop-sps=QgEBAWAAAAMAsAAAAwAAAwCZoAHgIAIcWNrkkUvzcBAQEAg=; sprop-pps=RAHA8s5wOyQ=
2023-01-23 17:22:56.760362694  m=audio 0 RTP/AVP 104
2023-01-23 17:22:56.760365245  c=IN IP4 0.0.0.0
2023-01-23 17:22:56.760367633  b=AS:50
2023-01-23 17:22:56.760370286  a=recvonly
2023-01-23 17:22:56.760373269  a=control:rtsp://192.168.1.216:554/Streaming/Channels/101/trackID=2
2023-01-23 17:22:56.760375905  a=rtpmap:104 mpeg4-generic/16000/1
2023-01-23 17:22:56.760378992  a=fmtp:104 profile-level-id=15; streamtype=5; mode=AAC-hbr; config=1408;SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;
2023-01-23 17:22:56.760395549  m=audio 0 RTP/AVP 0 102 104
2023-01-23 17:22:56.760398129  a=rtpmap:0 PCMU/8000/1
2023-01-23 17:22:56.760400793  a=rtpmap:102 G726/8000/1
2023-01-23 17:22:56.760403336  c=IN IP4 0.0.0.0
2023-01-23 17:22:56.760405792  b=AS:50
2023-01-23 17:22:56.760408493  a=sendonly
2023-01-23 17:22:56.760411102  a=control:rtsp://192.168.1.216:554/Streaming/Channels/101/trackID=4
2023-01-23 17:22:56.760413591  a=rtpmap:104 mpeg4-generic/16000/1
2023-01-23 17:22:56.760416748  a=fmtp:104 profile-level-id=15; streamtype=5; mode=AAC-hbr; config=1408;SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;
2023-01-23 17:22:56.760437226  a=Media_header:MEDIAINFO=494D4B48010300000400050001200110803E000000FA000081000000000000000000000000000000;
2023-01-23 17:22:56.760439715  a=appversion:1.0
2023-01-23 17:22:56.760441832  
2023-01-23 17:22:56.760467217  09:22:56.760 TRC [streams] producer=0 candidate=0 media="video, sendonly, 96 H265/90000"
2023-01-23 17:22:56.760470017  09:22:56.760 TRC [streams] match producer:0:0 => consumer:0:0 codec="96 H265/90000"
2023-01-23 17:22:56.760472295  09:22:56.760 TRC [rtsp] client request:
2023-01-23 17:22:56.760475109  SETUP rtsp://192.168.1.216:554/Streaming/Channels/101/trackID=1 RTSP/1.0
2023-01-23 17:22:56.760478501  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/trackID=1", response="5a34d3bf7c094b55d04a0fe23f6d260e"
2023-01-23 17:22:56.760481210  Transport: RTP/AVP/TCP;unicast;interleaved=0-1
2023-01-23 17:22:56.760483533  CSeq: 3
2023-01-23 17:22:56.760485942  
2023-01-23 17:22:56.760488325  
2023-01-23 17:22:56.763681252  09:22:56.763 TRC [rtsp] client response:
2023-01-23 17:22:56.763687818  RTSP/1.0 200 OK
2023-01-23 17:22:56.763690261  Cseq: 3
2023-01-23 17:22:56.763692641  Session: 956590965;timeout=60
2023-01-23 17:22:56.763695215  Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=264caaed;mode="play"
2023-01-23 17:22:56.763697916  Date: Mon, Jan 23 2023 17:22:55 GMT
2023-01-23 17:22:56.763700416  
2023-01-23 17:22:56.763702852  
2023-01-23 17:22:56.763705756  09:22:56.763 TRC [streams] consumer=0 candidate=1 media="audio, recvonly"
2023-01-23 17:22:56.763708606  09:22:56.763 TRC [streams] producer=0 candidate=0 media="video, sendonly, 96 H265/90000"
2023-01-23 17:22:56.763744164  09:22:56.763 TRC [streams] producer=0 candidate=1 media="audio, sendonly, 104 MPEG4-GENERIC/16000"
2023-01-23 17:22:56.763747204  09:22:56.763 TRC [streams] match producer:0:1 => consumer:0:1 codec="104 MPEG4-GENERIC/16000"
2023-01-23 17:22:56.763758881  09:22:56.763 TRC [rtsp] client request:
2023-01-23 17:22:56.763761752  SETUP rtsp://192.168.1.216:554/Streaming/Channels/101/trackID=2 RTSP/1.0
2023-01-23 17:22:56.763764752  Transport: RTP/AVP/TCP;unicast;interleaved=2-3
2023-01-23 17:22:56.763767344  CSeq: 4
2023-01-23 17:22:56.763771054  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/trackID=2", response="187fcd5048a3c9c45f268c06cb36fc16"
2023-01-23 17:22:56.763773656  Session: 956590965
2023-01-23 17:22:56.763776038  
2023-01-23 17:22:56.763778470  
2023-01-23 17:22:56.766408930  09:22:56.766 TRC [rtsp] client response:
2023-01-23 17:22:56.766415282  RTSP/1.0 200 OK
2023-01-23 17:22:56.766417768  Cseq: 4
2023-01-23 17:22:56.766420210  Session: 956590965;timeout=60
2023-01-23 17:22:56.766422779  Transport: RTP/AVP/TCP;unicast;interleaved=2-3;ssrc=6837fc93;mode="play"
2023-01-23 17:22:56.766425494  Date: Mon, Jan 23 2023 17:22:55 GMT
2023-01-23 17:22:56.766427940  
2023-01-23 17:22:56.766430398  
2023-01-23 17:22:56.766433547  09:22:56.766 DBG [streams] start producer url=rtsp://user:pass@192.168.1.216/Streaming/Channels/101
2023-01-23 17:22:56.766456834  09:22:56.766 TRC [rtsp] server response:
2023-01-23 17:22:56.766459217  RTSP/1.0 200 OK
2023-01-23 17:22:56.766461585  Content-Type: application/sdp
2023-01-23 17:22:56.766463807  Cseq: 2
2023-01-23 17:22:56.766466460  Content-Length: 388
2023-01-23 17:22:56.766468807  
2023-01-23 17:22:56.766471293  v=0
2023-01-23 17:22:56.766473882  o= 0 0   
2023-01-23 17:22:56.766476490  m=video 0 RTP/AVP 96
2023-01-23 17:22:56.766479106  a=rtpmap:96 H265/90000
2023-01-23 17:22:56.766482359  a=fmtp:96 sprop-vps=QAEMAf//AWAAAAMAsAAAAwAAAwCZrAk=; sprop-sps=QgEBAWAAAAMAsAAAAwAAAwCZoAHgIAIcWNrkkUvzcBAQEAg=; sprop-pps=RAHA8s5wOyQ=
2023-01-23 17:22:56.766485060  m=audio 0 RTP/AVP 97
2023-01-23 17:22:56.766487582  a=rtpmap:97 MPEG4-GENERIC/16000
2023-01-23 17:22:56.766490761  a=fmtp:97 profile-level-id=15; streamtype=5; mode=AAC-hbr; config=1408;SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;
2023-01-23 17:22:56.766493235  
2023-01-23 17:22:56.766688420  09:22:56.766 TRC [rtsp] client request:
2023-01-23 17:22:56.766695231  PLAY rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:22:56.766699075  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="531142f57eb497b1f15de48a3b87b3d8"
2023-01-23 17:22:56.766701692  Session: 956590965
2023-01-23 17:22:56.766704170  CSeq: 5
2023-01-23 17:22:56.766706579  
2023-01-23 17:22:56.766708792  
2023-01-23 17:22:56.767226199  09:22:56.767 TRC [rtsp] server request:
2023-01-23 17:22:56.767232606  SETUP rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:22:56.767235629  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:22:56.767238403  Transport: RTP/AVP/TCP;unicast;interleaved=0-1
2023-01-23 17:22:56.767240878  Cseq: 3
2023-01-23 17:22:56.767243456  
2023-01-23 17:22:56.767245811  
2023-01-23 17:22:56.767248483  09:22:56.767 TRC [rtsp] server response:
2023-01-23 17:22:56.767270137  RTSP/1.0 200 OK
2023-01-23 17:22:56.767272607  Cseq: 3
2023-01-23 17:22:56.767275021  Session: 1
2023-01-23 17:22:56.767277486  Transport: RTP/AVP/TCP;unicast;interleaved=0-1
2023-01-23 17:22:56.767280041  
2023-01-23 17:22:56.767282365  
2023-01-23 17:22:56.767649537  09:22:56.767 TRC [rtsp] server request:
2023-01-23 17:22:56.767656203  SETUP rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:22:56.767659210  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:22:56.767661869  Session: 1
2023-01-23 17:22:56.767664499  Transport: RTP/AVP/TCP;unicast;interleaved=2-3
2023-01-23 17:22:56.767667165  Cseq: 4
2023-01-23 17:22:56.767669479  
2023-01-23 17:22:56.767671754  
2023-01-23 17:22:56.767674520  09:22:56.767 TRC [rtsp] server response:
2023-01-23 17:22:56.767677012  RTSP/1.0 200 OK
2023-01-23 17:22:56.767679483  Transport: RTP/AVP/TCP;unicast;interleaved=2-3
2023-01-23 17:22:56.767681838  Cseq: 4
2023-01-23 17:22:56.767684130  Session: 1
2023-01-23 17:22:56.767686389  
2023-01-23 17:22:56.767688759  
2023-01-23 17:22:56.768197156  09:22:56.768 TRC [rtsp] server request:
2023-01-23 17:22:56.768203699  PLAY rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:22:56.768206439  Session: 1
2023-01-23 17:22:56.768209071  Range: npt=0.000-
2023-01-23 17:22:56.768211451  Cseq: 5
2023-01-23 17:22:56.768213931  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:22:56.768216108  
2023-01-23 17:22:56.768218453  
2023-01-23 17:22:56.768221076  09:22:56.768 TRC [rtsp] server response:
2023-01-23 17:22:56.768223472  RTSP/1.0 200 OK
2023-01-23 17:22:56.768225670  Cseq: 5
2023-01-23 17:22:56.768227993  Session: 1
2023-01-23 17:22:56.768230275  
2023-01-23 17:22:56.768232568  
2023-01-23 17:22:56.788474398  09:22:56.788 TRC [rtsp] client response:
2023-01-23 17:22:56.788475667  RTSP/1.0 200 OK
2023-01-23 17:22:56.788476200  Session: 956590965
2023-01-23 17:22:56.788476843  Rtp-Info: url=rtsp://192.168.1.216:554/Streaming/Channels/101/trackID=1;seq=1035;rtptime=1541645636,url=rtsp://192.168.1.216:554/Streaming/Channels/101/trackID=2;seq=27649;rtptime=1896614928
2023-01-23 17:22:56.788477420  Date: Mon, Jan 23 2023 17:22:55 GMT
2023-01-23 17:22:56.788477876  Cseq: 5
2023-01-23 17:22:56.788478389  
2023-01-23 17:22:56.788478857  
2023-01-23 17:23:21.767149915  09:23:21.767 TRC [rtsp] client request:
2023-01-23 17:23:21.767151951  OPTIONS rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:23:21.767152569  CSeq: 6
2023-01-23 17:23:21.767153773  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="fc349e263dc61541341b6be55bbe018f"
2023-01-23 17:23:21.767154408  Session: 956590965
2023-01-23 17:23:21.767155019  
2023-01-23 17:23:21.767155651  
2023-01-23 17:23:21.770759813  09:23:21.770 TRC [rtsp] client response:
2023-01-23 17:23:21.770760369  RTSP/1.0 200 OK
2023-01-23 17:23:21.770760799  Cseq: 6
2023-01-23 17:23:21.770761428  Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
2023-01-23 17:23:21.770761933  Date: Mon, Jan 23 2023 17:23:20 GMT
2023-01-23 17:23:21.770762472  
2023-01-23 17:23:21.770762988  
2023-01-23 17:23:26.824557510  09:23:26.824 TRC [rtsp] server request:
2023-01-23 17:23:26.824565076  OPTIONS rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:23:26.824567973  Cseq: 6
2023-01-23 17:23:26.824570654  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:23:26.824573067  Session: 1
2023-01-23 17:23:26.824575536  
2023-01-23 17:23:26.824578018  
2023-01-23 17:23:46.767655051  09:23:46.767 TRC [rtsp] client request:
2023-01-23 17:23:46.767663076  OPTIONS rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:23:46.767666022  CSeq: 7
2023-01-23 17:23:46.767669298  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="fc349e263dc61541341b6be55bbe018f"
2023-01-23 17:23:46.767671512  Session: 956590965
2023-01-23 17:23:46.767673766  
2023-01-23 17:23:46.767676295  
2023-01-23 17:23:46.770017862  09:23:46.769 TRC [rtsp] client response:
2023-01-23 17:23:46.770020308  RTSP/1.0 200 OK
2023-01-23 17:23:46.770022391  Cseq: 7
2023-01-23 17:23:46.770024983  Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
2023-01-23 17:23:46.770027374  Date: Mon, Jan 23 2023 17:23:45 GMT
2023-01-23 17:23:46.770029822  
2023-01-23 17:23:46.770032212  
2023-01-23 17:23:50.854505232  09:23:50.854 TRC [api] GET /api/ws?src=TestCam1
2023-01-23 17:23:50.862711763  09:23:50.862 DBG [webrtc] new consumer url=TestCam1
2023-01-23 17:23:50.863549036  09:23:50.863 TRC [webrtc] offer:
2023-01-23 17:23:50.863551294  v=0
2023-01-23 17:23:50.863553695  o=- 3073078002976497963 2 IN IP4 127.0.0.1
2023-01-23 17:23:50.863555937  s=-
2023-01-23 17:23:50.863557950  t=0 0
2023-01-23 17:23:50.863560141  a=group:BUNDLE 0 1
2023-01-23 17:23:50.863562111  a=extmap-allow-mixed
2023-01-23 17:23:50.863564102  a=msid-semantic: WMS
2023-01-23 17:23:50.863566233  m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100 101 102 125 104 124 106 107 108 109 127 123 112 35
2023-01-23 17:23:50.863568303  c=IN IP4 0.0.0.0
2023-01-23 17:23:50.863570318  a=rtcp:9 IN IP4 0.0.0.0
2023-01-23 17:23:50.863572258  a=ice-ufrag:1Qhw
2023-01-23 17:23:50.863574272  a=ice-pwd:jGF0wNWeV+65vN8CWb4I9crE
2023-01-23 17:23:50.863576333  a=ice-options:trickle
2023-01-23 17:23:50.863578896  a=fingerprint:sha-256 E2:75:A5:02:5B:25:7F:FE:C9:D0:38:45:5D:38:76:20:89:9B:28:90:A2:C4:D1:A4:5D:07:D9:53:6C:53:2D:EB
2023-01-23 17:23:50.863580788  a=setup:actpass
2023-01-23 17:23:50.863582701  a=mid:0
2023-01-23 17:23:50.863584753  a=extmap:1 urn:ietf:params:rtp-hdrext:toffset
2023-01-23 17:23:50.863586917  a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
2023-01-23 17:23:50.863588999  a=extmap:3 urn:3gpp:video-orientation
2023-01-23 17:23:50.863591131  a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
2023-01-23 17:23:50.863593151  a=extmap:5 http://www.webrtc.org/experiments/rtp-hdrext/playout-delay
2023-01-23 17:23:50.863595358  a=extmap:6 http://www.webrtc.org/experiments/rtp-hdrext/video-content-type
2023-01-23 17:23:50.863597719  a=extmap:7 http://www.webrtc.org/experiments/rtp-hdrext/video-timing
2023-01-23 17:23:50.863599858  a=extmap:8 http://www.webrtc.org/experiments/rtp-hdrext/color-space
2023-01-23 17:23:50.863601954  a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
2023-01-23 17:23:50.863604088  a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
2023-01-23 17:23:50.863606342  a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
2023-01-23 17:23:50.863608044  a=recvonly
2023-01-23 17:23:50.863610000  a=rtcp-mux
2023-01-23 17:23:50.863611898  a=rtcp-rsize
2023-01-23 17:23:50.863613716  a=rtpmap:96 H264/90000
2023-01-23 17:23:50.863615677  a=rtcp-fb:96 goog-remb
2023-01-23 17:23:50.863617722  a=rtcp-fb:96 transport-cc
2023-01-23 17:23:50.863619695  a=rtcp-fb:96 ccm fir
2023-01-23 17:23:50.863621577  a=rtcp-fb:96 nack
2023-01-23 17:23:50.863623591  a=rtcp-fb:96 nack pli
2023-01-23 17:23:50.863625783  a=fmtp:96 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=640c1f
2023-01-23 17:23:50.863627735  a=rtpmap:97 rtx/90000
2023-01-23 17:23:50.863629606  a=fmtp:97 apt=96
2023-01-23 17:23:50.863631577  a=rtpmap:98 H264/90000
2023-01-23 17:23:50.863633527  a=rtcp-fb:98 goog-remb
2023-01-23 17:23:50.863636929  a=rtcp-fb:98 transport-cc
2023-01-23 17:23:50.863638835  a=rtcp-fb:98 ccm fir
2023-01-23 17:23:50.863640909  a=rtcp-fb:98 nack
2023-01-23 17:23:50.863642720  a=rtcp-fb:98 nack pli
2023-01-23 17:23:50.863644962  a=fmtp:98 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
2023-01-23 17:23:50.863646721  a=rtpmap:99 rtx/90000
2023-01-23 17:23:50.863648704  a=fmtp:99 apt=98
2023-01-23 17:23:50.863650696  a=rtpmap:100 H264/90000
2023-01-23 17:23:50.863652580  a=rtcp-fb:100 goog-remb
2023-01-23 17:23:50.863654392  a=rtcp-fb:100 transport-cc
2023-01-23 17:23:50.863656139  a=rtcp-fb:100 ccm fir
2023-01-23 17:23:50.863658057  a=rtcp-fb:100 nack
2023-01-23 17:23:50.863659902  a=rtcp-fb:100 nack pli
2023-01-23 17:23:50.863662144  a=fmtp:100 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=640c1f
2023-01-23 17:23:50.863701430  a=rtpmap:101 rtx/90000
2023-01-23 17:23:50.863703509  a=fmtp:101 apt=100
2023-01-23 17:23:50.863705627  a=rtpmap:102 H264/90000
2023-01-23 17:23:50.863707724  a=rtcp-fb:102 goog-remb
2023-01-23 17:23:50.863709679  a=rtcp-fb:102 transport-cc
2023-01-23 17:23:50.863711613  a=rtcp-fb:102 ccm fir
2023-01-23 17:23:50.863713560  a=rtcp-fb:102 nack
2023-01-23 17:23:50.863715296  a=rtcp-fb:102 nack pli
2023-01-23 17:23:50.863717517  a=fmtp:102 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f
2023-01-23 17:23:50.863719764  a=rtpmap:125 rtx/90000
2023-01-23 17:23:50.863721689  a=fmtp:125 apt=102
2023-01-23 17:23:50.863723709  a=rtpmap:104 H265/90000
2023-01-23 17:23:50.863725617  a=rtcp-fb:104 goog-remb
2023-01-23 17:23:50.863727554  a=rtcp-fb:104 transport-cc
2023-01-23 17:23:50.863729466  a=rtcp-fb:104 ccm fir
2023-01-23 17:23:50.863731337  a=rtcp-fb:104 nack
2023-01-23 17:23:50.863733211  a=rtcp-fb:104 nack pli
2023-01-23 17:23:50.863735137  a=rtpmap:124 rtx/90000
2023-01-23 17:23:50.863736981  a=fmtp:124 apt=104
2023-01-23 17:23:50.863738702  a=rtpmap:106 VP8/90000
2023-01-23 17:23:50.863765389  a=rtcp-fb:106 goog-remb
2023-01-23 17:23:50.863767507  a=rtcp-fb:106 transport-cc
2023-01-23 17:23:50.863769527  a=rtcp-fb:106 ccm fir
2023-01-23 17:23:50.863771444  a=rtcp-fb:106 nack
2023-01-23 17:23:50.863773387  a=rtcp-fb:106 nack pli
2023-01-23 17:23:50.863775286  a=rtpmap:107 rtx/90000
2023-01-23 17:23:50.863777206  a=fmtp:107 apt=106
2023-01-23 17:23:50.863779169  a=rtpmap:108 VP9/90000
2023-01-23 17:23:50.863781132  a=rtcp-fb:108 goog-remb
2023-01-23 17:23:50.863783069  a=rtcp-fb:108 transport-cc
2023-01-23 17:23:50.863784950  a=rtcp-fb:108 ccm fir
2023-01-23 17:23:50.863786787  a=rtcp-fb:108 nack
2023-01-23 17:23:50.863788866  a=rtcp-fb:108 nack pli
2023-01-23 17:23:50.863790776  a=fmtp:108 profile-id=0
2023-01-23 17:23:50.863792608  a=rtpmap:109 rtx/90000
2023-01-23 17:23:50.863794560  a=fmtp:109 apt=108
2023-01-23 17:23:50.863796346  a=rtpmap:127 red/90000
2023-01-23 17:23:50.863798255  a=rtpmap:123 rtx/90000
2023-01-23 17:23:50.863800121  a=fmtp:123 apt=127
2023-01-23 17:23:50.863802000  a=rtpmap:112 ulpfec/90000
2023-01-23 17:23:50.863804029  a=rtpmap:35 flexfec-03/90000
2023-01-23 17:23:50.863805920  a=rtcp-fb:35 goog-remb
2023-01-23 17:23:50.863807795  a=rtcp-fb:35 transport-cc
2023-01-23 17:23:50.863809898  a=fmtp:35 repair-window=10000000
2023-01-23 17:23:50.863812117  m=audio 9 UDP/TLS/RTP/SAVPF 111 103 9 0 8 105 13 110 113 126
2023-01-23 17:23:50.863814132  c=IN IP4 0.0.0.0
2023-01-23 17:23:50.863816082  a=rtcp:9 IN IP4 0.0.0.0
2023-01-23 17:23:50.863818089  a=ice-ufrag:1Qhw
2023-01-23 17:23:50.863820182  a=ice-pwd:jGF0wNWeV+65vN8CWb4I9crE
2023-01-23 17:23:50.863822152  a=ice-options:trickle
2023-01-23 17:23:50.863824534  a=fingerprint:sha-256 E2:75:A5:02:5B:25:7F:FE:C9:D0:38:45:5D:38:76:20:89:9B:28:90:A2:C4:D1:A4:5D:07:D9:53:6C:53:2D:EB
2023-01-23 17:23:50.863826448  a=setup:actpass
2023-01-23 17:23:50.863828299  a=mid:1
2023-01-23 17:23:50.863830360  a=extmap:14 urn:ietf:params:rtp-hdrext:ssrc-audio-level
2023-01-23 17:23:50.863832493  a=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time
2023-01-23 17:23:50.863834667  a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
2023-01-23 17:23:50.863858095  a=extmap:9 urn:ietf:params:rtp-hdrext:sdes:mid
2023-01-23 17:23:50.863860263  a=extmap:10 urn:ietf:params:rtp-hdrext:sdes:rtp-stream-id
2023-01-23 17:23:50.863862518  a=extmap:11 urn:ietf:params:rtp-hdrext:sdes:repaired-rtp-stream-id
2023-01-23 17:23:50.863864407  a=recvonly
2023-01-23 17:23:50.863866380  a=rtcp-mux
2023-01-23 17:23:50.863868425  a=rtpmap:111 opus/48000/2
2023-01-23 17:23:50.863870278  a=rtcp-fb:111 transport-cc
2023-01-23 17:23:50.863872340  a=fmtp:111 minptime=10;useinbandfec=1
2023-01-23 17:23:50.863874274  a=rtpmap:103 ISAC/16000
2023-01-23 17:23:50.863876123  a=rtpmap:9 G722/8000
2023-01-23 17:23:50.863878265  a=rtpmap:0 PCMU/8000
2023-01-23 17:23:50.863880069  a=rtpmap:8 PCMA/8000
2023-01-23 17:23:50.863882124  a=rtpmap:105 CN/16000
2023-01-23 17:23:50.863884149  a=rtpmap:13 CN/8000
2023-01-23 17:23:50.863886185  a=rtpmap:110 telephone-event/48000
2023-01-23 17:23:50.863906780  a=rtpmap:113 telephone-event/16000
2023-01-23 17:23:50.863908869  a=rtpmap:126 telephone-event/8000
2023-01-23 17:23:50.863910773  
2023-01-23 17:23:50.866938803  09:23:50.866 TRC [streams] consumer=1 candidate=0 media="video, recvonly, 96 H264/90000, 97 RTX/90000, 98 H264/90000, 99 RTX/90000, 100 H264/90000, 101 RTX/90000, 102 H264/90000, 125 RTX/90000, 104 H265/90000, 124 RTX/90000, 106 VP8/90000, 107 RTX/90000, 108 VP9/90000, 109 RTX/90000, 127 RED/90000, 123 RTX/90000, 112 ULPFEC/90000, 35 FLEXFEC-03/90000"
2023-01-23 17:23:50.866952423  09:23:50.866 TRC [streams] producer=0 candidate=0 media="video, sendonly, 96 H265/90000"
2023-01-23 17:23:50.866976819  09:23:50.866 TRC [streams] match producer:0:0 => consumer:1:0 codec="96 H265/90000"
2023-01-23 17:23:50.868708414  09:23:50.868 TRC [streams] consumer=1 candidate=1 media="audio, recvonly, 111 OPUS/48000/2, 103 ISAC/16000, 9 G722/8000, 0 PCMU/8000, 8 PCMA/8000, 105 CN/16000, 13 CN/8000, 110 TELEPHONE-EVENT/48000, 113 TELEPHONE-EVENT/16000, 126 TELEPHONE-EVENT/8000"
2023-01-23 17:23:50.868745303  09:23:50.868 TRC [streams] producer=0 candidate=0 media="video, sendonly, 96 H265/90000"
2023-01-23 17:23:50.868779199  09:23:50.868 TRC [streams] producer=0 candidate=1 media="audio, sendonly, 104 MPEG4-GENERIC/16000"
2023-01-23 17:23:50.868816092  09:23:50.868 TRC [streams] producer=0 candidate=2 media="audio, recvonly, 0 PCMU/8000, 102 G726/8000, 104 MPEG4-GENERIC/16000"
2023-01-23 17:23:50.869331477  09:23:50.869 TRC [webrtc] answer
2023-01-23 17:23:50.869333801  v=0
2023-01-23 17:23:50.869336454  o=- 6256001071555177076 1674465830 IN IP4 0.0.0.0
2023-01-23 17:23:50.869338941  s=-
2023-01-23 17:23:50.869341720  t=0 0
2023-01-23 17:23:50.869344902  a=fingerprint:sha-256 4F:88:C9:13:06:6F:98:D6:2A:29:8A:E6:26:58:EA:12:50:70:A2:8F:DD:BB:8E:DC:09:E5:21:8B:E7:EE:11:26
2023-01-23 17:23:50.869347194  a=extmap-allow-mixed
2023-01-23 17:23:50.869349703  a=group:BUNDLE 0 1
2023-01-23 17:23:50.869352453  m=video 9 UDP/TLS/RTP/SAVPF 98 104
2023-01-23 17:23:50.869354928  c=IN IP4 0.0.0.0
2023-01-23 17:23:50.869357326  a=setup:active
2023-01-23 17:23:50.869359735  a=mid:0
2023-01-23 17:23:50.869362224  a=ice-ufrag:dRwHxowBsHCzgBAe
2023-01-23 17:23:50.869364867  a=ice-pwd:YyqGqisIcGLWJKkEdhYZwPvtFBbztTBG
2023-01-23 17:23:50.869367236  a=rtcp-mux
2023-01-23 17:23:50.869369608  a=rtcp-rsize
2023-01-23 17:23:50.869372129  a=rtpmap:98 H264/90000
2023-01-23 17:23:50.869374844  a=fmtp:98 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f
2023-01-23 17:23:50.869377079  a=rtcp-fb:98 goog-remb 
2023-01-23 17:23:50.869379426  a=rtcp-fb:98 transport-cc 
2023-01-23 17:23:50.869381764  a=rtcp-fb:98 ccm fir
2023-01-23 17:23:50.869384168  a=rtcp-fb:98 nack 
2023-01-23 17:23:50.869386504  a=rtcp-fb:98 nack pli
2023-01-23 17:23:50.869389068  a=rtpmap:104 H265/90000
2023-01-23 17:23:50.869391606  a=rtcp-fb:104 goog-remb 
2023-01-23 17:23:50.869394231  a=rtcp-fb:104 transport-cc 
2023-01-23 17:23:50.869396851  a=rtcp-fb:104 ccm fir
2023-01-23 17:23:50.869399305  a=rtcp-fb:104 nack 
2023-01-23 17:23:50.869401783  a=rtcp-fb:104 nack pli
2023-01-23 17:23:50.869404371  a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
2023-01-23 17:23:50.869406860  a=ssrc:4031567556 cname:go2rtc
2023-01-23 17:23:50.869409677  a=ssrc:4031567556 msid:go2rtc video
2023-01-23 17:23:50.869412462  a=ssrc:4031567556 mslabel:go2rtc
2023-01-23 17:23:50.869414851  a=ssrc:4031567556 label:video
2023-01-23 17:23:50.869417193  a=msid:go2rtc video
2023-01-23 17:23:50.869419632  a=sendonly
2023-01-23 17:23:50.869422342  m=audio 9 UDP/TLS/RTP/SAVPF 111 0 8
2023-01-23 17:23:50.869424764  c=IN IP4 0.0.0.0
2023-01-23 17:23:50.869427194  a=setup:active
2023-01-23 17:23:50.869429644  a=mid:1
2023-01-23 17:23:50.869432286  a=ice-ufrag:dRwHxowBsHCzgBAe
2023-01-23 17:23:50.869435110  a=ice-pwd:YyqGqisIcGLWJKkEdhYZwPvtFBbztTBG
2023-01-23 17:23:50.869437494  a=rtcp-mux
2023-01-23 17:23:50.869440016  a=rtcp-rsize
2023-01-23 17:23:50.869442598  a=rtpmap:111 opus/48000/2
2023-01-23 17:23:50.869445341  a=fmtp:111 minptime=10;useinbandfec=1
2023-01-23 17:23:50.869447862  a=rtcp-fb:111 transport-cc 
2023-01-23 17:23:50.869450527  a=rtpmap:0 PCMU/8000
2023-01-23 17:23:50.869453019  a=rtpmap:8 PCMA/8000
2023-01-23 17:23:50.869455945  a=extmap:4 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01
2023-01-23 17:23:50.869458202  a=inactive
2023-01-23 17:23:50.869460637  
2023-01-23 17:23:50.869474539  09:23:50.869 TRC [webrtc] config candidate="candidate:2895371417 1 udp 2130706431 192.168.1.109 8555 typ host"
2023-01-23 17:23:50.869515274  09:23:50.869 TRC [webrtc] config candidate="candidate:291548537 1 tcp 2124414975 192.168.1.109 8555 typ host tcptype passive"
2023-01-23 17:23:50.869535172  09:23:50.869 TRC [webrtc] local candidate="candidate:2516015194 1 udp 2130706431 172.18.0.2 8555 typ host"
2023-01-23 17:23:50.869633460  09:23:50.869 TRC [webrtc] local candidate="candidate:671361466 1 tcp 2124414975 172.18.0.2 8555 typ host tcptype passive"
2023-01-23 17:23:50.931945888  09:23:50.931 TRC [webrtc] local candidate="candidate:1848181450 1 udp 1694498815 114.25.97.209 61651 typ srflx raddr 0.0.0.0 rport 49130"
2023-01-23 17:23:50.932202473  09:23:50.932 TRC [webrtc] config candidate="candidate:1796211577 1 udp 2130706431 114.25.97.209 8555 typ host"
2023-01-23 17:23:50.932307885  09:23:50.932 TRC [webrtc] config candidate="candidate:3605230233 1 tcp 2124414975 114.25.97.209 8555 typ host tcptype passive"
2023-01-23 17:23:56.828895541  09:23:56.828 TRC [rtsp] server request:
2023-01-23 17:23:56.828903646  OPTIONS rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:23:56.828906545  Cseq: 7
2023-01-23 17:23:56.828909131  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:23:56.828911559  Session: 1
2023-01-23 17:23:56.828914093  
2023-01-23 17:23:56.828916431  
2023-01-23 17:24:11.768012535  09:24:11.767 TRC [rtsp] client request:
2023-01-23 17:24:11.768020237  OPTIONS rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:24:11.768023002  CSeq: 8
2023-01-23 17:24:11.768026293  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="fc349e263dc61541341b6be55bbe018f"
2023-01-23 17:24:11.768028487  Session: 956590965
2023-01-23 17:24:11.768030620  
2023-01-23 17:24:11.768033161  
2023-01-23 17:24:11.773218695  09:24:11.773 TRC [rtsp] client response:
2023-01-23 17:24:11.773225034  RTSP/1.0 200 OK
2023-01-23 17:24:11.773227544  Cseq: 8
2023-01-23 17:24:11.773230196  Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
2023-01-23 17:24:11.773232572  Date: Mon, Jan 23 2023 17:24:10 GMT
2023-01-23 17:24:11.773235156  
2023-01-23 17:24:11.773237580  
2023-01-23 17:24:26.848062999  09:24:26.847 TRC [rtsp] server request:
2023-01-23 17:24:26.848070455  OPTIONS rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:24:26.848073621  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:24:26.848076023  Session: 1
2023-01-23 17:24:26.848078579  Cseq: 8
2023-01-23 17:24:26.848081161  
2023-01-23 17:24:26.848083497  
2023-01-23 17:24:36.768241286  09:24:36.768 TRC [rtsp] client request:
2023-01-23 17:24:36.768249518  OPTIONS rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:24:36.768252458  CSeq: 9
2023-01-23 17:24:36.768255638  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="fc349e263dc61541341b6be55bbe018f"
2023-01-23 17:24:36.768257845  Session: 956590965
2023-01-23 17:24:36.768259992  
2023-01-23 17:24:36.768262582  
2023-01-23 17:24:36.780164424  09:24:36.780 TRC [rtsp] client response:
2023-01-23 17:24:36.780167761  RTSP/1.0 200 OK
2023-01-23 17:24:36.780169972  Cseq: 9
2023-01-23 17:24:36.780172549  Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
2023-01-23 17:24:36.780176264  Date: Mon, Jan 23 2023 17:24:35 GMT
2023-01-23 17:24:36.780179680  
2023-01-23 17:24:36.780183082  
2023-01-23 17:24:50.914858175  09:24:50.914 TRC github.com/AlexxIT/go2rtc/cmd/api/ws.go:84 > error="websocket: close 1006 (abnormal closure): unexpected EOF"
2023-01-23 17:24:56.853743474  09:24:56.853 TRC [rtsp] server request:
2023-01-23 17:24:56.853751438  OPTIONS rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:24:56.853754301  Cseq: 9
2023-01-23 17:24:56.853757012  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:24:56.853759301  Session: 1
2023-01-23 17:24:56.853761751  
2023-01-23 17:24:56.853764133  
2023-01-23 17:25:01.769100977  09:25:01.768 TRC [rtsp] client request:
2023-01-23 17:25:01.769107079  OPTIONS rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:25:01.769109897  CSeq: 10
2023-01-23 17:25:01.769111870  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="fc349e263dc61541341b6be55bbe018f"
2023-01-23 17:25:01.769113359  Session: 956590965
2023-01-23 17:25:01.769114688  
2023-01-23 17:25:01.769116076  
2023-01-23 17:25:01.770221827  09:25:01.770 TRC [rtsp] client response:
2023-01-23 17:25:01.770225803  RTSP/1.0 200 OK
2023-01-23 17:25:01.770227366  Cseq: 10
2023-01-23 17:25:01.770228949  Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
2023-01-23 17:25:01.770230504  Date: Mon, Jan 23 2023 17:25:00 GMT
2023-01-23 17:25:01.770231985  
2023-01-23 17:25:01.770233476  
2023-01-23 17:25:26.769695471  09:25:26.769 TRC [rtsp] client request:
2023-01-23 17:25:26.769697616  OPTIONS rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:25:26.769698191  CSeq: 11
2023-01-23 17:25:26.769698824  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="fc349e263dc61541341b6be55bbe018f"
2023-01-23 17:25:26.769699324  Session: 956590965
2023-01-23 17:25:26.769699793  
2023-01-23 17:25:26.769700270  
2023-01-23 17:25:26.773560234  09:25:26.773 TRC [rtsp] client response:
2023-01-23 17:25:26.773561486  RTSP/1.0 200 OK
2023-01-23 17:25:26.773562001  Cseq: 11
2023-01-23 17:25:26.773562520  Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
2023-01-23 17:25:26.773563053  Date: Mon, Jan 23 2023 17:25:25 GMT
2023-01-23 17:25:26.773563558  
2023-01-23 17:25:26.773564035  
2023-01-23 17:25:26.864641537  09:25:26.864 TRC [rtsp] server request:
2023-01-23 17:25:26.864642972  OPTIONS rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:25:26.864643538  Cseq: 10
2023-01-23 17:25:26.864644085  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:25:26.864644538  Session: 1
2023-01-23 17:25:26.864645092  
2023-01-23 17:25:26.864645569  
2023-01-23 17:25:51.770835319  09:25:51.770 TRC [rtsp] client request:
2023-01-23 17:25:51.770843520  OPTIONS rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:25:51.770846816  CSeq: 12
2023-01-23 17:25:51.770850080  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="fc349e263dc61541341b6be55bbe018f"
2023-01-23 17:25:51.770852737  Session: 956590965
2023-01-23 17:25:51.770855144  
2023-01-23 17:25:51.770857992  
2023-01-23 17:25:51.776868760  09:25:51.776 TRC [rtsp] client response:
2023-01-23 17:25:51.776872808  RTSP/1.0 200 OK
2023-01-23 17:25:51.776875016  Cseq: 12
2023-01-23 17:25:51.776877716  Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
2023-01-23 17:25:51.776880299  Date: Mon, Jan 23 2023 17:25:50 GMT
2023-01-23 17:25:51.776882791  
2023-01-23 17:25:51.776885256  
2023-01-23 17:25:56.911888162  09:25:56.911 TRC [rtsp] server request:
2023-01-23 17:25:56.911895836  OPTIONS rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:25:56.911898828  Cseq: 11
2023-01-23 17:25:56.911901553  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:25:56.911903867  Session: 1
2023-01-23 17:25:56.911906570  
2023-01-23 17:25:56.911908899  
2023-01-23 17:26:16.771642231  09:26:16.771 TRC [rtsp] client request:
2023-01-23 17:26:16.771649900  OPTIONS rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:26:16.771652798  Session: 956590965
2023-01-23 17:26:16.771655291  CSeq: 13
2023-01-23 17:26:16.771658899  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="fc349e263dc61541341b6be55bbe018f"
2023-01-23 17:26:16.771661399  
2023-01-23 17:26:16.771663743  
2023-01-23 17:26:16.773455823  09:26:16.773 TRC [rtsp] client response:
2023-01-23 17:26:16.773461961  RTSP/1.0 200 OK
2023-01-23 17:26:16.773464503  Cseq: 13
2023-01-23 17:26:16.773467205  Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
2023-01-23 17:26:16.773469882  Date: Mon, Jan 23 2023 17:26:15 GMT
2023-01-23 17:26:16.773472359  
2023-01-23 17:26:16.773474763  
2023-01-23 17:26:26.970595469  09:26:26.970 TRC [rtsp] server request:
2023-01-23 17:26:26.970602805  OPTIONS rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:26:26.970605661  Session: 1
2023-01-23 17:26:26.970608062  Cseq: 12
2023-01-23 17:26:26.970610817  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:26:26.970613317  
2023-01-23 17:26:26.970615881  
2023-01-23 17:26:41.774103203  09:26:41.773 TRC [rtsp] client request:
2023-01-23 17:26:41.774111100  OPTIONS rtsp://192.168.1.216:554/Streaming/Channels/101/ RTSP/1.0
2023-01-23 17:26:41.774114078  CSeq: 14
2023-01-23 17:26:41.774117350  Authorization: Digest username="admin", realm="IP Camera(J9558)", nonce="d7db8b810695a3812b9982db46d05c1f", uri="/Streaming/Channels/101/", response="fc349e263dc61541341b6be55bbe018f"
2023-01-23 17:26:41.774119860  Session: 956590965
2023-01-23 17:26:41.774122073  
2023-01-23 17:26:41.774124525  
2023-01-23 17:26:41.785515944  09:26:41.785 TRC [rtsp] client response:
2023-01-23 17:26:41.785519227  RTSP/1.0 200 OK
2023-01-23 17:26:41.785521478  Cseq: 14
2023-01-23 17:26:41.785524303  Public: OPTIONS, DESCRIBE, PLAY, PAUSE, SETUP, TEARDOWN, SET_PARAMETER, GET_PARAMETER
2023-01-23 17:26:41.785526882  Date: Mon, Jan 23 2023 17:26:40 GMT
2023-01-23 17:26:41.785529372  
2023-01-23 17:26:41.785531862  

When using FFmpeg source (ffmpeg:rtsp://user:pass@10.54.99.199/Streaming/Channels/101#video=copy#audio=aac#audio=opus#hardware=nvidia)

2023-01-23 17:51:06.594862756  09:51:06.594 TRC [webrtc] config candidate="candidate:2895371417 1 udp 2130706431 10.54.99.109 8555 typ host"
2023-01-23 17:51:06.594915949  09:51:06.594 TRC [webrtc] config candidate="candidate:291548537 1 tcp 2124414975 10.54.99.109 8555 typ host tcptype passive"
2023-01-23 17:51:06.594977638  09:51:06.594 TRC [webrtc] local candidate="candidate:2516015194 1 udp 2130706431 172.18.0.2 8555 typ host"
2023-01-23 17:51:06.595080296  09:51:06.595 TRC [webrtc] local candidate="candidate:671361466 1 tcp 2124414975 172.18.0.2 8555 typ host tcptype passive"
2023-01-23 17:51:06.601861469  09:51:06.601 TRC [webrtc] local candidate="candidate:1848181450 1 udp 1694498815 114.25.97.209 17514 typ srflx raddr 0.0.0.0 rport 55134"
2023-01-23 17:51:06.602364935  09:51:06.602 TRC [webrtc] config candidate="candidate:1796211577 1 udp 2130706431 114.25.97.209 8555 typ host"
2023-01-23 17:51:06.602391598  09:51:06.602 TRC [webrtc] config candidate="candidate:3605230233 1 tcp 2124414975 114.25.97.209 8555 typ host tcptype passive"
2023-01-23 17:51:06.607802198  09:51:06.607 TRC [webrtc] remote candidate="candidate:845479524 1 udp 2122260223 5b00e11e-d8ee-4f41-b49a-523f1f9a1a73.local 61662 typ host generation 0 ufrag u92q network-id 1 network-cost 10"
2023-01-23 17:51:06.607829955  09:51:06.607 TRC [webrtc] remote candidate="candidate:845479524 1 udp 2122260223 5b00e11e-d8ee-4f41-b49a-523f1f9a1a73.local 61433 typ host generation 0 ufrag u92q network-id 1 network-cost 10"
2023-01-23 17:51:09.637973014  frame=  597 fps= 22 q=-1.0 size=N/A time=00:00:27.94 bitrate=N/A speed=1.03x    
frame=  610 fps= 22 q=-1.0 size=N/A time=00:00:28.46 bitrate=N/A speed=1.03x    
frame=  623 fps= 22 q=-1.0 size=N/A time=00:00:28.98 bitrate=N/A speed=1.03x    
frame=  635 fps= 22 q=-1.0 size=N/A time=00:00:29.54 bitrate=N/A speed=1.03x    
frame=  648 fps= 22 q=-1.0 size=N/A time=00:00:30.06 bitrate=N/A speed=1.03x    
frame=  661 fps= 22 q=-1.0 size=N/A time=00:00:30.58 bitrate=N/A speed=1.03x    
09:51:09.637 TRC [rtsp] server request:
2023-01-23 17:51:09.637980782  OPTIONS rtsp://127.0.0.1:8554/TestCam1 RTSP/1.0
2023-01-23 17:51:09.637983730  Cseq: 6
2023-01-23 17:51:09.637986343  User-Agent: FFmpeg Frigate/0.12.0-12d51d3
2023-01-23 17:51:09.637988797  Session: 1
2023-01-23 17:51:09.637991419  
2023-01-23 17:51:09.637993864  
2023-01-23 17:51:39.644291062  frame=  674 fps= 22 q=-1.0 size=N/A time=00:00:31.10 bitrate=N/A speed=1.03x    
frame=  687 fps= 22 q=-1.0 size=N/A time=00:00:31.62 bitrate=N/A speed=1.03x    
frame=  701 fps= 22 q=-1.0 size=N/A time=00:00:32.10 bitrate=N/A speed=1.03x    
frame=  714 fps= 23 q=-1.0 size=N/A time=00:00:32.70 bitrate=N/A speed=1.03x    
frame=  727 fps= 23 q=-1.0 size=N/A time=00:00:33.22 bitrate=N/A speed=1.03x    
frame=  741 fps= 23 q=-1.0 size=N/A time=00:00:33.70 bitrate=N/A speed=1.03x    
frame=  754 fps= 23 q=-1.0 size=N/A time=00:00:34.22 bitrate=N/A speed=1.03x    
frame=  767 fps= 23 q=-1.0 size=N/A time=00:00:34.74 bitrate=N/A speed=1.03x    
frame=  779 fps= 23 q=-1.0 size=N/A time=00:00:35.30 bitrate=N/A speed=1.03x    
frame=  792 fps= 23 q=-1.0 size=N/A time=00:00:35.82 bitrate=N/A speed=1.03x    
2023-01-23 18:03:12.402539526  10:03:12.402 TRC [rtsp] server response:
2023-01-23 18:03:12.402540862  RTSP/1.0 200 OK
2023-01-23 18:03:12.402542002  Cseq: 5
2023-01-23 18:03:12.402543396  Session: 1
2023-01-23 18:03:12.402544631  
2023-01-23 18:03:12.402545974  
2023-01-23 18:03:12.545162891  [libopus @ 0x5563a6427240] Queue input is backward in time
2023-01-23 18:03:12.545291535  [rtsp @ 0x5563a6426240] Non-monotonous DTS in output stream 0:2; previous: 53064, current: 52872; changing to 53065. This may result in incorrect timestamps in the output file.
2023-01-23 18:03:12.665419579  [libopus @ 0x5563a6427240] Queue input is backward in time
2023-01-23 18:03:12.665607631  [rtsp @ 0x5563a6426240] Non-monotonous DTS in output stream 0:2; previous: 58440, current: 58248; changing to 58441. This may result in incorrect timestamps in the output file.
2023-01-23 18:03:12.860645303  [libopus @ 0x5563a6427240] Queue input is backward in time
2023-01-23 18:03:12.860786082  [rtsp @ 0x5563a6426240] Non-monotonous DTS in output stream 0:2; previous: 68424, current: 68232; changing to 68425. This may result in incorrect timestamps in the output file.
2023-01-23 18:03:12.981352696  frame=    0 fps=0.0 q=-1.0 size=N/A time=00:00:01.44 bitrate=N/A speed=2.84x    
[libopus @ 0x5563a6427240] Queue input is backward in time
2023-01-23 18:03:12.981478392  [rtsp @ 0x5563a6426240] Non-monotonous DTS in output stream 0:2; previous: 73800, current: 73608; changing to 73801. This may result in incorrect timestamps in the output file.
2023-01-23 18:03:13.184758775  [libopus @ 0x5563a6427240] Queue input is backward in time
2023-01-23 18:03:13.184896735  [rtsp @ 0x5563a6426240] Non-monotonous DTS in output stream 0:2; previous: 83784, current: 83592; changing to 83785. This may result in incorrect timestamps in the output file.

@LckySndays LckySndays changed the title (0.1-rc.9 linux/amd64) H264 WebRTC Streaming Video Freezing with Working Audio (0.1-rc.9 linux/amd64) WebRTC Streaming Video Freezing with Working Audio Jan 23, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 23, 2023

It's very strange that both H265 and H264 freezing. Try to play using different browsers from different devices.
3200x1800x20fps is very heavy stream.
What is your camera model?

@LckySndays
Copy link
Author

already tried different browser also try to use substream and all have same problem, the weird par is that all playing smoothly with MSE only WebRTC had this issue, not sure where to find the root cause

The camera model is DS-2CD3347WDV3-L or DS-2CD3367WDV3-L and some other variant with same brand of Hikvision

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 23, 2023

As far as I know, Hikvision uses a proprietary version of the H265 codec. They call it H265+.
I need to study such a stream carefully. But it's not a priority right now. There are other tasks for other projects as well.

@LckySndays
Copy link
Author

Sure that what I though at first, so I tried to transcode it to h264 also tried to change the source back to h264 and even tried to use substream to lower the resolution but with no luck so far while the MSE is playing smoothly

Is there anyway to add opus sound to webrtc without using FFmpeg?
It seems some of the problem might be from the go2rtc FFmpeg args not playing nicely with something like what mentioned here blakeblackshear/frigate#5192

Thanks for the help btw

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 23, 2023

If your camera not support PCMU/OPUS - you need FFmpeg for transcoding. But you can pass only audio through ffmpeg:

streams:
  camera1:
    - rtsp://...
    - ffmpeg:camera1#audio=opus

@LckySndays
Copy link
Author

I already tried to do that but it messed up the frigate MSE liveview (no video/audio output), maybe another bug or the feature not quite ready yet because i'm using 0.12.0 Beta 5.

I found out

Camera : 1280x720 25fps h264+ (No Freezing)
ffmpeg:rtsp://user:admin@192.168.1.199/Streaming/Channels/101#video=copy#audio=copy#audio=opus
Camera : 1280x720 25fps h265+ (Freezing)
ffmpeg:rtsp://user:admin@192.168.1.199/Streaming/Channels/101#video=h264#audio=copy#audio=opus

Do you have any reference of the highest camera setting that can be handled by WebRTC smoothly in current state?
In my current setup the MSE can even handling 3820x2160 20fps h265+ fine if 1-2 delay latency accepted

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 23, 2023

My best camera has 2560x1440x25fps (Dahua). Delay lower than 0.5 seconds.

@NickM-27
Copy link
Contributor

I already tried to do that but it messed up the frigate MSE liveview (no video/audio output), maybe another bug or the feature not quite ready yet because i'm using 0.12.0 Beta 5.

Can you show the config you tried with that? I don't think adding a second line ffmpeg:camer1#audio=opus should affect MSE at all

@LckySndays
Copy link
Author

@NickM-27 Sorry for not describing it clearly

mqtt:
  enabled: False
  
birdseye:
  enabled: False
  
detect:
  enabled: False

go2rtc:
  streams:
    TestCam1:
      - rtsp://user:pass@192.168.1.199/Streaming/Channels/101 <-- Source: h265
      - ffmpeg:TestCam1#video=h264#audio=copy#audio=opus <-- #video=h264 here transcoding needed for my webrtc to work
  webrtc:
    candidates:
      - 10.54.99.109:8555
      - stun:8555
  log:
    level: trace
      
cameras:
  TestCam1:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/TestCam1?video=h264&audio=copy <-- video=h264 needed for my frigate jsmpeg to work
          roles:
            - restream
          hwaccel_args: preset-nvidia-h264
          input_args: preset-rtsp-restream

Even after setting those all, my frigate MSE cannot load the video/audio

@LckySndays
Copy link
Author

@AlexxIT

My best camera has 2560x1440x25fps (Dahua). Delay lower than 0.5 seconds.

Can you show me your go2rtc stream config in order to achieve such WebRTC performance?

@NickM-27
Copy link
Contributor

@NickM-27 Sorry for not describing it clearly

mqtt:
  enabled: False
  
birdseye:
  enabled: False
  
detect:
  enabled: False

go2rtc:
  streams:
    TestCam1:
      - rtsp://user:pass@192.168.1.199/Streaming/Channels/101 <-- Source: h265
      - ffmpeg:TestCam1#video=h264#audio=copy#audio=opus <-- #video=h264 here transcoding needed for my webrtc to work
  webrtc:
    candidates:
      - 10.54.99.109:8555
      - stun:8555
  log:
    level: trace
      
cameras:
  TestCam1:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/TestCam1?video=h264&audio=copy <-- video=h264 needed for my frigate jsmpeg to work
          roles:
            - restream
          hwaccel_args: preset-nvidia-h264
          input_args: preset-rtsp-restream

Even after setting those all, my frigate MSE cannot load the video/audio

That's not what was being suggested though. I'd remove #audio=copy

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 23, 2023

streams:
    TestCam1:
      - rtsp://user:pass@192.168.1.199/Streaming/Channels/101
      - ffmpeg:TestCam1#video=h264#audio=copy#audio=opus

@LckySndays with this settings you always get H265 for clients that support H265. Example, Safari WebRTC and other browsers MSE. Because it is first supported codec in the list.

Also you don't need audio=copy because it already inside first source.

This performance works for a regular RTSP stream from Dahua camera. It has a lot of customization and excellent standards support. Including great streams H264, H265, MJPEG. As well as audio codecs - AAC and PCMU/PCMA.

@LckySndays
Copy link
Author

Already did that as well sadly with no luck. for the main freezing issue, I already tried to isolate it with using go2rtc v1.0.0 - 2023-01-20 docker with my camera set to h264 with lower resolution of 1280x720 and lower fps and no transcoding still got the video image stuttering. I even go as far as transcode the video to #video=h264#width=480 for it to finally playing smoothly without skipping. so there is clearly something wrong with my setup.

the reason to why I added the audio=copy or sometimes audio=aac is that sometimes the frigate MSE only output video with no audio unless I added those line

@LckySndays
Copy link
Author

@NickM-27
The MSE is not loading the video/audio with that configuration only happen with my browser (Firefox 109.0 (64-bit) Ubuntu)
With other browser the MSE playing just fine

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 23, 2023

FF never support H265

@LckySndays
Copy link
Author

I already gave up on h265 beside my camera source need to h265
So for my testing I always transcode it back to h264

And what I'm saying is that this config below work best beside the WebRTC video freezing

go2rtc:
  streams:
    TestCam1: ffmpeg:rtsp://user:pass@192.168.1.199/Streaming/Channels/101#video=h264#audio=opus
  webrtc:
    candidates:
      - 192.168.1.109:8555
      - stun:8555
  log:
    level: trace
      
cameras:
  TestCam1:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/TestCam1
          roles:
            - restream
          hwaccel_args: preset-nvidia-h264
          input_args: preset-rtsp-restream

But this one made FF browser MSE failed for me and I don't know why though it is out of topic and different problem

go2rtc:
  streams:
    TestCam1:
      - rtsp://user:pass@192.168.1.199/Streaming/Channels/101
      - ffmpeg:TestCam1#video=h264#audio=opus
  webrtc:
    candidates:
      - 192.168.1.109:8555
      - stun:8555
  log:
    level: trace
      
cameras:
  TestCam1:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/TestCam1?video=h264
          roles:
            - restream
          hwaccel_args: preset-nvidia-h264
          input_args: preset-rtsp-restream

@LckySndays
Copy link
Author

@AlexxIT @NickM-27
It seems that I found the issue, in my setup #hardware=nvidia seems like not working and use the CPU instead
#hardware does work and spawn another ffmpeg process with nvidia-smi and greatly reduce my WebRTC video freezing issue.

But this way there are 2 ffmpeg process for single camera, is it normal behavior or it can be improved?

mqtt:
  enabled: False
  
birdseye:
  enabled: False
  
detect:
  enabled: False

go2rtc:
  streams:
    TestCam1: ffmpeg:rtsp://user:pass@192.168.1.199/Streaming/Channels/101#video=h264#audio=aac#audio=opus#hardware
  webrtc:
    candidates:
      - 192.168.1.109:8555
      - stun:8555
  log:
    level: error
      
cameras:
  TestCam1:
    ffmpeg:
      inputs:
        - path: rtsp://127.0.0.1:8554/TestCam1
          roles:
            - restream
          hwaccel_args: preset-nvidia-h264
          input_args: preset-rtsp-restream

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 25, 2023

Of course hardware=nvidia doesn't work. Where you even get this value?

@LckySndays
Copy link
Author

It was mentioned by @NickM-27 here blakeblackshear/frigate#5187 for me to try out.
Btw looking back on, It seems that my initial config already correct and I kinda back to square one but I can't replicate the issue now. Might be my router issue or because I apt-update apt-upgrade my environment or I update my iOS to latest version

Anyway is it normal to have 2 hardware acceleration process for a single camera?

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 25, 2023

Ok. Right value is hardware=cuda or hardware for auto detect.

Two transcoding because:

  • H265 > H264 - live view
  • H264 > raw - detection

@LckySndays
Copy link
Author

H265 > H264 - live view ( This one I'm pretty much get it because my source is h265 so the transcoding here needed )
H264 > raw - detection ( This one I'm not quite get it, d u mean frigate detection? is so then mine is disabled )

@AlexxIT
Copy link
Owner

AlexxIT commented Jan 25, 2023

Maybe you need to create issue inside Frigate repo about two ffmpeg. You can check the arguments of both ffmpeg to see which one is for.

@AlexxIT AlexxIT closed this as completed Jan 25, 2023
@NickM-27
Copy link
Contributor

H264 > raw - detection ( This one I'm not quite get it, d u mean frigate detection? is so then mine is disabled )

Frigate right now always runs the detect stream even when object detection is disabled, it is still used for motion detection and birdseye. This is working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants