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

DashCast not working #419

Open
felipecrs opened this issue Feb 5, 2023 · 18 comments
Open

DashCast not working #419

felipecrs opened this issue Feb 5, 2023 · 18 comments
Labels
bug Something isn't working

Comments

@felipecrs
Copy link
Contributor

felipecrs commented Feb 5, 2023

Today I decided to give DashCast another shot. This is how I'm calling it:

service: webrtc.dash_cast
data:
  url: video_porteiro
  entity_id: media_player.tv_do_quarto_principal

And this is what shows up in my TV:

PXL_20230205_123420180

I see that it's trying to load my internal URL. But I wonder, wasn't it supposed to try to load my external URL which has HTTPS enabled?

Also, I caught the following in my HA logs:

Logger: frontend.js.latest.202302020
Source: components/system_log/__init__.py:254
First occurred: 11:44:10 (255 occurrences)
Last logged: 12:34:12

https://<external-url>/webrtc/video-rtc.js?v3.0.1:390:27 Uncaught NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('video/mp4; codecs="avc1.,mp4a.40.2"') is unsupported.
https://<external-url>/webrtc/video-rtc.js?v3.0.1:314:22 Uncaught TypeError: this.ondata is not a function

I see that it says that "type" is not supported. But I also don't understand it, because when using the WebRTC card, both WebRTC and MSE mode works just fine, including audio.

@AlexxIT AlexxIT added the bug Something isn't working label Feb 5, 2023
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 5, 2023

It fails because codecs="avc1.,mp4a.40.2". You need to enable rtsp trace logs.

PS. DashCast can load HTTP without problems

@felipecrs
Copy link
Contributor Author

You need to enable rtsp trace logs.

In go2rtc, right? The logs are... too much. Below is everything I captured in the same minute that I started Dash Cast:

Click here to show logs
2023-02-05 16:27:02.094149634  13:27:02.093 TRC [rtsp] server request:
2023-02-05 16:27:02.094157388  OPTIONS rtsp://localhost:8554/portao?audio RTSP/1.0
2023-02-05 16:27:02.094158924  Cseq: 8
2023-02-05 16:27:02.094160539  User-Agent: go2rtc/ffmpeg
2023-02-05 16:27:02.094161920  Session: 1
2023-02-05 16:27:02.094163205  
2023-02-05 16:27:02.094164419  
2023-02-05 16:27:02.243485601  13:27:02.243 TRC [rtsp] server request:
2023-02-05 16:27:02.243494562  OPTIONS rtsp://localhost:8554/morro?audio RTSP/1.0
2023-02-05 16:27:02.243496154  Cseq: 8
2023-02-05 16:27:02.243497767  User-Agent: go2rtc/ffmpeg
2023-02-05 16:27:02.243499236  Session: 1
2023-02-05 16:27:02.243500576  
2023-02-05 16:27:02.243501814  
2023-02-05 16:27:02.544593997  13:27:02.448 TRC [rtsp] server request:
2023-02-05 16:27:02.544604909  OPTIONS rtsp://localhost:8554/terreiro?audio RTSP/1.0
2023-02-05 16:27:02.544606580  Cseq: 8
2023-02-05 16:27:02.544608231  User-Agent: go2rtc/ffmpeg
2023-02-05 16:27:02.544609708  Session: 1
2023-02-05 16:27:02.544611061  
2023-02-05 16:27:02.544612284  
2023-02-05 16:27:02.588338293  13:27:02.588 TRC [rtsp] server request:
2023-02-05 16:27:02.588347072  OPTIONS rtsp://localhost:8554/rua?audio RTSP/1.0
2023-02-05 16:27:02.588348993  Cseq: 8
2023-02-05 16:27:02.588350809  User-Agent: go2rtc/ffmpeg
2023-02-05 16:27:02.588352408  Session: 1
2023-02-05 16:27:02.588353978  
2023-02-05 16:27:02.588355402  
2023-02-05 16:27:02.605359883  13:27:02.601 TRC [rtsp] server request:
2023-02-05 16:27:02.605368321  OPTIONS rtsp://127.0.0.1:8554/rua?video=copy RTSP/1.0
2023-02-05 16:27:02.605370405  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:02.605372027  Session: 1
2023-02-05 16:27:02.605373508  Cseq: 8
2023-02-05 16:27:02.605374912  
2023-02-05 16:27:02.605376167  
2023-02-05 16:27:02.900342552  13:27:02.892 TRC [rtsp] server request:
2023-02-05 16:27:02.900352170  OPTIONS rtsp://127.0.0.1:8554/rua_hd?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:02.900354387  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:02.900356180  Session: 1
2023-02-05 16:27:02.900357861  Cseq: 9
2023-02-05 16:27:02.900359385  
2023-02-05 16:27:02.900360776  
2023-02-05 16:27:03.421148239  13:27:03.419 TRC [rtsp] server request:
2023-02-05 16:27:03.421156381  OPTIONS rtsp://127.0.0.1:8554/portao?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:03.421158065  Cseq: 9
2023-02-05 16:27:03.421159814  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:03.421161261  Session: 1
2023-02-05 16:27:03.421162658  
2023-02-05 16:27:03.421163919  
2023-02-05 16:27:03.490934024  13:27:03.490 TRC [rtsp] server request:
2023-02-05 16:27:03.490941915  OPTIONS rtsp://127.0.0.1:8554/chafariz RTSP/1.0
2023-02-05 16:27:03.490943623  Cseq: 8
2023-02-05 16:27:03.490945354  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:03.490946719  Session: 1
2023-02-05 16:27:03.490948056  
2023-02-05 16:27:03.490949307  
2023-02-05 16:27:03.766751218  13:27:03.766 TRC [rtsp] server request:
2023-02-05 16:27:03.766759282  OPTIONS rtsp://127.0.0.1:8554/video_porteiro_do_terreiro RTSP/1.0
2023-02-05 16:27:03.766760934  Cseq: 8
2023-02-05 16:27:03.766762725  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:03.766764144  Session: 1
2023-02-05 16:27:03.766765492  
2023-02-05 16:27:03.766766744  
2023-02-05 16:27:03.793658702  13:27:03.793 TRC [rtsp] server request:
2023-02-05 16:27:03.793667321  OPTIONS rtsp://127.0.0.1:8554/escada_do_terreiro RTSP/1.0
2023-02-05 16:27:03.793669132  Cseq: 8
2023-02-05 16:27:03.793670996  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:03.793672476  Session: 1
2023-02-05 16:27:03.793674010  
2023-02-05 16:27:03.793675448  
2023-02-05 16:27:03.993233330  13:27:03.992 TRC [rtsp] server request:
2023-02-05 16:27:03.993241845  OPTIONS rtsp://127.0.0.1:8554/morro?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:03.993243752  Cseq: 9
2023-02-05 16:27:03.993245731  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:03.993247355  Session: 1
2023-02-05 16:27:03.993248938  
2023-02-05 16:27:03.993250425  
2023-02-05 16:27:04.214505908  13:27:04.214 TRC [rtsp] server request:
2023-02-05 16:27:04.214514771  OPTIONS rtsp://127.0.0.1:8554/terreiro?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:04.214516437  Cseq: 9
2023-02-05 16:27:04.214518324  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:04.214519885  Session: 1
2023-02-05 16:27:04.214521341  
2023-02-05 16:27:04.214522681  
2023-02-05 16:27:04.469551464  13:27:04.468 TRC [rtsp] server request:
2023-02-05 16:27:04.469559667  OPTIONS rtsp://127.0.0.1:8554/portao_do_terreiro RTSP/1.0
2023-02-05 16:27:04.469561470  Cseq: 8
2023-02-05 16:27:04.469563392  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:04.469564989  Session: 1
2023-02-05 16:27:04.469566502  
2023-02-05 16:27:04.469567924  
2023-02-05 16:27:04.475073853  13:27:04.474 TRC [rtsp] server request:
2023-02-05 16:27:04.475081315  OPTIONS rtsp://127.0.0.1:8554/video_porteiro_hd?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:04.475082841  Cseq: 9
2023-02-05 16:27:04.475084682  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:04.475086168  Session: 1
2023-02-05 16:27:04.475087536  
2023-02-05 16:27:04.475088838  
2023-02-05 16:27:04.577272688  13:27:04.575 TRC [rtsp] server request:
2023-02-05 16:27:04.577280996  OPTIONS rtsp://127.0.0.1:8554/video_porteiro?video=copy RTSP/1.0
2023-02-05 16:27:04.577282881  Cseq: 8
2023-02-05 16:27:04.577284878  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:04.577286497  Session: 1
2023-02-05 16:27:04.577288120  
2023-02-05 16:27:04.577289542  
2023-02-05 16:27:07.135962509  13:27:07.135 TRC [rtsp] client request:
2023-02-05 16:27:07.135970031  OPTIONS rtsp://192.168.1.32:6554/stream_1 RTSP/1.0
2023-02-05 16:27:07.135971628  CSeq: 9
2023-02-05 16:27:07.135973280  Session: 3430991830761536445
2023-02-05 16:27:07.135974657  
2023-02-05 16:27:07.135975889  
2023-02-05 16:27:07.177910009  13:27:07.177 TRC [rtsp] client request:
2023-02-05 16:27:07.177918131  OPTIONS rtsp://192.168.1.34:6554/stream_1 RTSP/1.0
2023-02-05 16:27:07.177919708  CSeq: 9
2023-02-05 16:27:07.177921321  Session: 480991945282165083
2023-02-05 16:27:07.177922717  
2023-02-05 16:27:07.177923982  
2023-02-05 16:27:07.280433173  13:27:07.278 TRC [rtsp] client request:
2023-02-05 16:27:07.280441244  OPTIONS rtsp://192.168.1.31:6554/stream_1 RTSP/1.0
2023-02-05 16:27:07.280443362  Session: 39864242631551068
2023-02-05 16:27:07.280530610  CSeq: 9
2023-02-05 16:27:07.280532320  
2023-02-05 16:27:07.280533791  
2023-02-05 16:27:07.287585640  13:27:07.225 TRC [rtsp] client response:
2023-02-05 16:27:07.287593122  RTSP/1.0 200 OK
2023-02-05 16:27:07.287594837  Cseq: 9
2023-02-05 16:27:07.287596620  Date: Sun, Feb 05 2023 16:27:05 GMT
2023-02-05 16:27:07.287598906  Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2023-02-05 16:27:07.287600387  
2023-02-05 16:27:07.287601738  
2023-02-05 16:27:07.387362465  13:27:07.309 TRC [rtsp] client response:
2023-02-05 16:27:07.387369807  RTSP/1.0 200 OK
2023-02-05 16:27:07.387371322  Cseq: 9
2023-02-05 16:27:07.387373497  Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2023-02-05 16:27:07.387375246  Date: Sun, Feb 05 2023 16:27:05 GMT
2023-02-05 16:27:07.387376663  
2023-02-05 16:27:07.387377940  
2023-02-05 16:27:07.442954539  13:27:07.442 TRC [rtsp] client response:
2023-02-05 16:27:07.442962341  RTSP/1.0 200 OK
2023-02-05 16:27:07.442963917  Cseq: 9
2023-02-05 16:27:07.442965677  Date: Sun, Feb 05 2023 16:27:06 GMT
2023-02-05 16:27:07.442967932  Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2023-02-05 16:27:07.442969412  
2023-02-05 16:27:07.442970773  
2023-02-05 16:27:07.545888385  13:27:07.545 TRC [rtsp] client request:
2023-02-05 16:27:07.545896038  OPTIONS rtsp://192.168.1.33:554/0/av1 RTSP/1.0
2023-02-05 16:27:07.545897827  CSeq: 9
2023-02-05 16:27:07.545899553  Session: x4DEUrYw030f
2023-02-05 16:27:07.545901002  
2023-02-05 16:27:07.545902377  
2023-02-05 16:27:07.565287079  13:27:07.565 TRC [rtsp] client response:
2023-02-05 16:27:07.565294951  RTSP/1.0 200 OK
2023-02-05 16:27:07.565296579  Cseq: 9
2023-02-05 16:27:07.565298393  Server: TAS-Tech Streaming Server V100R001
2023-02-05 16:27:07.565300475  Public: DESCRIBE, SET_PARAMETER, SETUP, TEARDOWN, PAUSE, PLAY
2023-02-05 16:27:07.565301922  
2023-02-05 16:27:07.565303226  
2023-02-05 16:27:07.713449109  13:27:07.712 TRC [rtsp] client request:
2023-02-05 16:27:07.713456339  OPTIONS rtsp://192.168.1.33:554/0/av0 RTSP/1.0
2023-02-05 16:27:07.713458033  CSeq: 8
2023-02-05 16:27:07.713459693  Session: uRHhiOLR030d
2023-02-05 16:27:07.713461028  
2023-02-05 16:27:07.713462319  
2023-02-05 16:27:07.713464028  13:27:07.712 TRC [rtsp] client request:
2023-02-05 16:27:07.713465794  OPTIONS rtsp://127.0.0.1:8554/rua?audio=aac RTSP/1.0
2023-02-05 16:27:07.713467146  CSeq: 8
2023-02-05 16:27:07.713468509  Session: 1
2023-02-05 16:27:07.713469789  
2023-02-05 16:27:07.713470950  
2023-02-05 16:27:07.713472466  13:27:07.713 TRC [rtsp] server request:
2023-02-05 16:27:07.713474141  OPTIONS rtsp://127.0.0.1:8554/rua?audio=aac RTSP/1.0
2023-02-05 16:27:07.713475394  Cseq: 8
2023-02-05 16:27:07.713476700  Session: 1
2023-02-05 16:27:07.713477897  
2023-02-05 16:27:07.713479072  
2023-02-05 16:27:07.718426974  13:27:07.718 TRC [rtsp] client response:
2023-02-05 16:27:07.718434154  RTSP/1.0 200 OK
2023-02-05 16:27:07.718436078  Public: DESCRIBE, SET_PARAMETER, SETUP, TEARDOWN, PAUSE, PLAY
2023-02-05 16:27:07.718437459  Cseq: 8
2023-02-05 16:27:07.718439256  Server: TAS-Tech Streaming Server V100R001
2023-02-05 16:27:07.718440560  
2023-02-05 16:27:07.718441751  
2023-02-05 16:27:09.495570275  13:27:09.447 TRC [rtsp] client request:
2023-02-05 16:27:09.495578929  OPTIONS rtsp://127.0.0.1:8554/video_porteiro?audio=opus&audio=aac RTSP/1.0
2023-02-05 16:27:09.495580699  CSeq: 8
2023-02-05 16:27:09.495582287  Session: 1
2023-02-05 16:27:09.495583745  
2023-02-05 16:27:09.495585110  
2023-02-05 16:27:09.496160880  13:27:09.495 TRC [rtsp] server request:
2023-02-05 16:27:09.496166558  OPTIONS rtsp://127.0.0.1:8554/video_porteiro?audio=opus&audio=aac RTSP/1.0
2023-02-05 16:27:09.496168205  Cseq: 8
2023-02-05 16:27:09.496169890  Session: 1
2023-02-05 16:27:09.496171446  
2023-02-05 16:27:09.496172927  
2023-02-05 16:27:32.106722168  13:27:32.106 TRC [rtsp] server request:
2023-02-05 16:27:32.106729366  OPTIONS rtsp://localhost:8554/portao?audio RTSP/1.0
2023-02-05 16:27:32.106730965  Cseq: 9
2023-02-05 16:27:32.106732607  User-Agent: go2rtc/ffmpeg
2023-02-05 16:27:32.106734114  Session: 1
2023-02-05 16:27:32.106735471  
2023-02-05 16:27:32.106736732  
2023-02-05 16:27:32.136432852  13:27:32.136 TRC [rtsp] client request:
2023-02-05 16:27:32.136440086  OPTIONS rtsp://192.168.1.32:6554/stream_1 RTSP/1.0
2023-02-05 16:27:32.136441836  CSeq: 10
2023-02-05 16:27:32.136443682  Session: 3430991830761536445
2023-02-05 16:27:32.136445231  
2023-02-05 16:27:32.136446660  
2023-02-05 16:27:32.178365078  13:27:32.178 TRC [rtsp] client request:
2023-02-05 16:27:32.178372958  OPTIONS rtsp://192.168.1.34:6554/stream_1 RTSP/1.0
2023-02-05 16:27:32.178374557  CSeq: 10
2023-02-05 16:27:32.178376249  Session: 480991945282165083
2023-02-05 16:27:32.178377692  
2023-02-05 16:27:32.178378995  
2023-02-05 16:27:32.222553001  13:27:32.222 TRC [rtsp] client response:
2023-02-05 16:27:32.222559765  RTSP/1.0 200 OK
2023-02-05 16:27:32.222561594  Date: Sun, Feb 05 2023 16:27:30 GMT
2023-02-05 16:27:32.222563795  Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2023-02-05 16:27:32.222565292  Cseq: 10
2023-02-05 16:27:32.222566643  
2023-02-05 16:27:32.222567884  
2023-02-05 16:27:32.229851498  13:27:32.229 TRC [rtsp] client response:
2023-02-05 16:27:32.229862268  RTSP/1.0 200 OK
2023-02-05 16:27:32.229864127  Date: Sun, Feb 05 2023 16:27:30 GMT
2023-02-05 16:27:32.229865670  Cseq: 10
2023-02-05 16:27:32.229867970  Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2023-02-05 16:27:32.229869372  
2023-02-05 16:27:32.229870639  
2023-02-05 16:27:32.284063828  13:27:32.283 TRC [rtsp] client request:
2023-02-05 16:27:32.284072314  OPTIONS rtsp://192.168.1.31:6554/stream_1 RTSP/1.0
2023-02-05 16:27:32.284074135  CSeq: 10
2023-02-05 16:27:32.284076017  Session: 39864242631551068
2023-02-05 16:27:32.284077553  
2023-02-05 16:27:32.284078946  
2023-02-05 16:27:32.293202584  13:27:32.293 TRC [rtsp] server request:
2023-02-05 16:27:32.293210145  OPTIONS rtsp://localhost:8554/morro?audio RTSP/1.0
2023-02-05 16:27:32.293211701  Cseq: 9
2023-02-05 16:27:32.293213309  User-Agent: go2rtc/ffmpeg
2023-02-05 16:27:32.293214737  Session: 1
2023-02-05 16:27:32.293216098  
2023-02-05 16:27:32.293217401  
2023-02-05 16:27:32.518429061  13:27:32.516 TRC [rtsp] client response:
2023-02-05 16:27:32.518437230  RTSP/1.0 200 OK
2023-02-05 16:27:32.518438811  Cseq: 10
2023-02-05 16:27:32.518440554  Date: Sun, Feb 05 2023 16:27:31 GMT
2023-02-05 16:27:32.518442819  Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2023-02-05 16:27:32.518444273  
2023-02-05 16:27:32.518445576  
2023-02-05 16:27:32.518447338  13:27:32.517 TRC [rtsp] server request:
2023-02-05 16:27:32.518449298  OPTIONS rtsp://localhost:8554/terreiro?audio RTSP/1.0
2023-02-05 16:27:32.518450721  Cseq: 9
2023-02-05 16:27:32.518452278  User-Agent: go2rtc/ffmpeg
2023-02-05 16:27:32.518453692  Session: 1
2023-02-05 16:27:32.518455046  
2023-02-05 16:27:32.518456317  
2023-02-05 16:27:32.546812189  13:27:32.546 TRC [rtsp] client request:
2023-02-05 16:27:32.546820358  OPTIONS rtsp://192.168.1.33:554/0/av1 RTSP/1.0
2023-02-05 16:27:32.546822319  CSeq: 10
2023-02-05 16:27:32.546824233  Session: x4DEUrYw030f
2023-02-05 16:27:32.546825836  
2023-02-05 16:27:32.546827393  
2023-02-05 16:27:32.590466486  13:27:32.590 TRC [rtsp] client response:
2023-02-05 16:27:32.590474949  RTSP/1.0 200 OK
2023-02-05 16:27:32.590477072  Public: DESCRIBE, SET_PARAMETER, SETUP, TEARDOWN, PAUSE, PLAY
2023-02-05 16:27:32.590478624  Cseq: 10
2023-02-05 16:27:32.590480517  Server: TAS-Tech Streaming Server V100R001
2023-02-05 16:27:32.590481970  
2023-02-05 16:27:32.590483257  
2023-02-05 16:27:32.591752180  13:27:32.591 TRC [rtsp] server request:
2023-02-05 16:27:32.591758581  OPTIONS rtsp://localhost:8554/rua?audio RTSP/1.0
2023-02-05 16:27:32.591760168  Session: 1
2023-02-05 16:27:32.591761549  Cseq: 9
2023-02-05 16:27:32.591763129  User-Agent: go2rtc/ffmpeg
2023-02-05 16:27:32.591764458  
2023-02-05 16:27:32.591765732  
2023-02-05 16:27:32.681073051  13:27:32.680 TRC [rtsp] server request:
2023-02-05 16:27:32.681080937  OPTIONS rtsp://127.0.0.1:8554/rua?video=copy RTSP/1.0
2023-02-05 16:27:32.681082988  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:32.681084595  Session: 1
2023-02-05 16:27:32.681086057  Cseq: 9
2023-02-05 16:27:32.681087457  
2023-02-05 16:27:32.681088738  
2023-02-05 16:27:32.715017460  13:27:32.714 TRC [rtsp] client request:
2023-02-05 16:27:32.715025268  OPTIONS rtsp://127.0.0.1:8554/rua?audio=aac RTSP/1.0
2023-02-05 16:27:32.715026828  CSeq: 9
2023-02-05 16:27:32.715028345  Session: 1
2023-02-05 16:27:32.715029706  
2023-02-05 16:27:32.715031014  
2023-02-05 16:27:32.715032679  13:27:32.714 TRC [rtsp] client request:
2023-02-05 16:27:32.715034358  OPTIONS rtsp://192.168.1.33:554/0/av0 RTSP/1.0
2023-02-05 16:27:32.715035743  CSeq: 9
2023-02-05 16:27:32.715037256  Session: uRHhiOLR030d
2023-02-05 16:27:32.715038505  
2023-02-05 16:27:32.715039716  
2023-02-05 16:27:32.715041314  13:27:32.714 TRC [rtsp] server request:
2023-02-05 16:27:32.715043061  OPTIONS rtsp://127.0.0.1:8554/rua?audio=aac RTSP/1.0
2023-02-05 16:27:32.715044415  Cseq: 9
2023-02-05 16:27:32.715045778  Session: 1
2023-02-05 16:27:32.715047075  
2023-02-05 16:27:32.715048228  
2023-02-05 16:27:32.719763080  13:27:32.719 TRC [rtsp] client response:
2023-02-05 16:27:32.719770819  RTSP/1.0 200 OK
2023-02-05 16:27:32.719772748  Server: TAS-Tech Streaming Server V100R001
2023-02-05 16:27:32.719774741  Public: DESCRIBE, SET_PARAMETER, SETUP, TEARDOWN, PAUSE, PLAY
2023-02-05 16:27:32.719776236  Cseq: 9
2023-02-05 16:27:32.719777530  
2023-02-05 16:27:32.719778780  
2023-02-05 16:27:32.916979062  13:27:32.916 TRC [rtsp] server request:
2023-02-05 16:27:32.916986911  OPTIONS rtsp://127.0.0.1:8554/rua_hd?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:32.916988662  Cseq: 10
2023-02-05 16:27:32.916990545  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:32.916992114  Session: 1
2023-02-05 16:27:32.916993563  
2023-02-05 16:27:32.916994930  
2023-02-05 16:27:33.427598023  13:27:33.426 TRC [rtsp] server request:
2023-02-05 16:27:33.427606070  OPTIONS rtsp://127.0.0.1:8554/portao?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:33.427607671  Session: 1
2023-02-05 16:27:33.427609096  Cseq: 10
2023-02-05 16:27:33.427610772  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:33.427612057  
2023-02-05 16:27:33.427613257  
2023-02-05 16:27:33.513665952  13:27:33.513 TRC [rtsp] server request:
2023-02-05 16:27:33.513674874  OPTIONS rtsp://127.0.0.1:8554/chafariz RTSP/1.0
2023-02-05 16:27:33.513676555  Cseq: 9
2023-02-05 16:27:33.513678285  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:33.513679776  Session: 1
2023-02-05 16:27:33.513681194  
2023-02-05 16:27:33.513682520  
2023-02-05 16:27:33.803057363  13:27:33.802 TRC [rtsp] server request:
2023-02-05 16:27:33.803066210  OPTIONS rtsp://127.0.0.1:8554/video_porteiro_do_terreiro RTSP/1.0
2023-02-05 16:27:33.803068403  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:33.803070074  Session: 1
2023-02-05 16:27:33.803071738  Cseq: 9
2023-02-05 16:27:33.803073250  
2023-02-05 16:27:33.803074718  
2023-02-05 16:27:33.878816362  13:27:33.878 TRC [rtsp] server request:
2023-02-05 16:27:33.878824317  OPTIONS rtsp://127.0.0.1:8554/escada_do_terreiro RTSP/1.0
2023-02-05 16:27:33.878825983  Cseq: 9
2023-02-05 16:27:33.878827823  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:33.878829287  Session: 1
2023-02-05 16:27:33.878830754  
2023-02-05 16:27:33.878832133  
2023-02-05 16:27:34.013151161  13:27:34.012 TRC [rtsp] server request:
2023-02-05 16:27:34.013159954  OPTIONS rtsp://127.0.0.1:8554/morro?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:34.013162063  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:34.013163669  Session: 1
2023-02-05 16:27:34.013165238  Cseq: 10
2023-02-05 16:27:34.013166700  
2023-02-05 16:27:34.013168064  
2023-02-05 16:27:34.295029361  13:27:34.294 TRC [rtsp] server request:
2023-02-05 16:27:34.295037230  OPTIONS rtsp://127.0.0.1:8554/terreiro?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:34.295038914  Cseq: 10
2023-02-05 16:27:34.295040788  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:34.295042330  Session: 1
2023-02-05 16:27:34.295043729  
2023-02-05 16:27:34.295045069  
2023-02-05 16:27:34.474987889  13:27:34.474 TRC [rtsp] server request:
2023-02-05 16:27:34.474996215  OPTIONS rtsp://127.0.0.1:8554/video_porteiro_hd?video=copy&audio=aac RTSP/1.0
2023-02-05 16:27:34.474997912  Cseq: 10
2023-02-05 16:27:34.474999785  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:34.475001299  Session: 1
2023-02-05 16:27:34.475092829  
2023-02-05 16:27:34.475095105  
2023-02-05 16:27:34.500462574  13:27:34.499 TRC [rtsp] client request:
2023-02-05 16:27:34.500470342  OPTIONS rtsp://127.0.0.1:8554/video_porteiro?audio=opus&audio=aac RTSP/1.0
2023-02-05 16:27:34.500471971  CSeq: 9
2023-02-05 16:27:34.500473533  Session: 1
2023-02-05 16:27:34.500474964  
2023-02-05 16:27:34.500476245  
2023-02-05 16:27:34.500477894  13:27:34.499 TRC [rtsp] server request:
2023-02-05 16:27:34.500479892  OPTIONS rtsp://127.0.0.1:8554/video_porteiro?audio=opus&audio=aac RTSP/1.0
2023-02-05 16:27:34.500481301  Cseq: 9
2023-02-05 16:27:34.500482671  Session: 1
2023-02-05 16:27:34.500483899  
2023-02-05 16:27:34.500485090  
2023-02-05 16:27:34.604146438  13:27:34.500 TRC [rtsp] server request:
2023-02-05 16:27:34.604695125  OPTIONS rtsp://127.0.0.1:8554/portao_do_terreiro RTSP/1.0
2023-02-05 16:27:34.604698713  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:34.604700443  Session: 1
2023-02-05 16:27:34.604702012  Cseq: 9
2023-02-05 16:27:34.604703519  
2023-02-05 16:27:34.604704879  
2023-02-05 16:27:34.611105780  13:27:34.610 TRC [rtsp] server request:
2023-02-05 16:27:34.611115006  OPTIONS rtsp://127.0.0.1:8554/video_porteiro?video=copy RTSP/1.0
2023-02-05 16:27:34.611117080  Cseq: 9
2023-02-05 16:27:34.611119228  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:27:34.611120958  Session: 1
2023-02-05 16:27:34.611122653  
2023-02-05 16:27:34.611124219  
2023-02-05 16:27:57.186754305  13:27:57.186 TRC [rtsp] client request:
2023-02-05 16:27:57.186763510  OPTIONS rtsp://192.168.1.32:6554/stream_1 RTSP/1.0
2023-02-05 16:27:57.186765674  CSeq: 11
2023-02-05 16:27:57.186767783  Session: 3430991830761536445
2023-02-05 16:27:57.186769577  
2023-02-05 16:27:57.186774293  
2023-02-05 16:27:57.186776528  13:27:57.186 TRC [rtsp] client request:
2023-02-05 16:27:57.186778883  OPTIONS rtsp://192.168.1.34:6554/stream_1 RTSP/1.0
2023-02-05 16:27:57.186780707  CSeq: 11
2023-02-05 16:27:57.186782757  Session: 480991945282165083
2023-02-05 16:27:57.186784420  
2023-02-05 16:27:57.186785851  
2023-02-05 16:27:57.190157988  13:27:57.189 TRC [rtsp] client response:
2023-02-05 16:27:57.190165129  RTSP/1.0 200 OK
2023-02-05 16:27:57.190166819  Cseq: 11
2023-02-05 16:27:57.190168810  Date: Sun, Feb 05 2023 16:27:55 GMT
2023-02-05 16:27:57.190171407  Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2023-02-05 16:27:57.190173080  
2023-02-05 16:27:57.190174570  
2023-02-05 16:27:57.200640350  13:27:57.200 TRC [rtsp] client response:
2023-02-05 16:27:57.200648306  RTSP/1.0 200 OK
2023-02-05 16:27:57.200650173  Date: Sun, Feb 05 2023 16:27:55 GMT
2023-02-05 16:27:57.200652514  Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2023-02-05 16:27:57.200654104  Cseq: 11
2023-02-05 16:27:57.200655566  
2023-02-05 16:27:57.200656896  
2023-02-05 16:27:57.294181664  13:27:57.288 TRC [rtsp] client request:
2023-02-05 16:27:57.294189217  OPTIONS rtsp://192.168.1.31:6554/stream_1 RTSP/1.0
2023-02-05 16:27:57.294191022  CSeq: 11
2023-02-05 16:27:57.294192869  Session: 39864242631551068
2023-02-05 16:27:57.294194352  
2023-02-05 16:27:57.294195776  
2023-02-05 16:27:57.489988439  13:27:57.484 TRC [rtsp] client response:
2023-02-05 16:27:57.489997162  RTSP/1.0 200 OK
2023-02-05 16:27:57.489998804  Cseq: 11
2023-02-05 16:27:57.490000632  Date: Sun, Feb 05 2023 16:27:56 GMT
2023-02-05 16:27:57.490002968  Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
2023-02-05 16:27:57.490004480  
2023-02-05 16:27:57.490005884  
2023-02-05 16:27:57.547830923  13:27:57.547 TRC [rtsp] client request:
2023-02-05 16:27:57.547838533  OPTIONS rtsp://192.168.1.33:554/0/av1 RTSP/1.0
2023-02-05 16:27:57.547840228  CSeq: 11
2023-02-05 16:27:57.547841950  Session: x4DEUrYw030f
2023-02-05 16:27:57.547843398  
2023-02-05 16:27:57.547844773  
2023-02-05 16:27:57.549300524  13:27:57.549 TRC [rtsp] client response:
2023-02-05 16:27:57.549307106  RTSP/1.0 200 OK
2023-02-05 16:27:57.549308646  Cseq: 11
2023-02-05 16:27:57.549310365  Server: TAS-Tech Streaming Server V100R001
2023-02-05 16:27:57.549312315  Public: DESCRIBE, SET_PARAMETER, SETUP, TEARDOWN, PAUSE, PLAY
2023-02-05 16:27:57.549313697  
2023-02-05 16:27:57.549314920  
2023-02-05 16:27:57.715744693  13:27:57.715 TRC [rtsp] client request:
2023-02-05 16:27:57.715752091  OPTIONS rtsp://192.168.1.33:554/0/av0 RTSP/1.0
2023-02-05 16:27:57.715753815  CSeq: 10
2023-02-05 16:27:57.715755523  Session: uRHhiOLR030d
2023-02-05 16:27:57.715756934  
2023-02-05 16:27:57.715758267  
2023-02-05 16:27:57.715759870  13:27:57.715 TRC [rtsp] client request:
2023-02-05 16:27:57.715761730  OPTIONS rtsp://127.0.0.1:8554/rua?audio=aac RTSP/1.0
2023-02-05 16:27:57.715763125  CSeq: 10
2023-02-05 16:27:57.715764490  Session: 1
2023-02-05 16:27:57.715765851  
2023-02-05 16:27:57.715767086  
2023-02-05 16:27:57.715768650  13:27:57.715 TRC [rtsp] server request:
2023-02-05 16:27:57.715770364  OPTIONS rtsp://127.0.0.1:8554/rua?audio=aac RTSP/1.0
2023-02-05 16:27:57.715771753  Cseq: 10
2023-02-05 16:27:57.715773147  Session: 1
2023-02-05 16:27:57.715774489  
2023-02-05 16:27:57.715775748  
2023-02-05 16:27:57.802060543  13:27:57.801 TRC [rtsp] client response:
2023-02-05 16:27:57.802067414  RTSP/1.0 200 OK
2023-02-05 16:27:57.802068978  Cseq: 10
2023-02-05 16:27:57.802070750  Server: TAS-Tech Streaming Server V100R001
2023-02-05 16:27:57.802072748  Public: DESCRIBE, SET_PARAMETER, SETUP, TEARDOWN, PAUSE, PLAY
2023-02-05 16:27:57.802074156  
2023-02-05 16:27:57.802075396  
2023-02-05 16:27:59.499901250  13:27:59.499 TRC [rtsp] client request:
2023-02-05 16:27:59.499909308  OPTIONS rtsp://127.0.0.1:8554/video_porteiro?audio=opus&audio=aac RTSP/1.0
2023-02-05 16:27:59.499911040  CSeq: 10
2023-02-05 16:27:59.499912582  Session: 1
2023-02-05 16:27:59.499914019  
2023-02-05 16:27:59.499915380  
2023-02-05 16:27:59.499917129  13:27:59.499 TRC [rtsp] server request:
2023-02-05 16:27:59.499919248  OPTIONS rtsp://127.0.0.1:8554/video_porteiro?audio=opus&audio=aac RTSP/1.0
2023-02-05 16:27:59.499920788  Session: 1
2023-02-05 16:27:59.499922277  Cseq: 10
2023-02-05 16:27:59.499923638  
2023-02-05 16:27:59.499924930  
2023-02-05 16:28:02.121016662  13:28:02.120 TRC [rtsp] server request:
2023-02-05 16:28:02.121026286  OPTIONS rtsp://localhost:8554/portao?audio RTSP/1.0
2023-02-05 16:28:02.121028141  Cseq: 10
2023-02-05 16:28:02.121029998  User-Agent: go2rtc/ffmpeg
2023-02-05 16:28:02.121031597  Session: 1
2023-02-05 16:28:02.121033063  
2023-02-05 16:28:02.121034412  
2023-02-05 16:28:02.322476591  13:28:02.322 TRC [rtsp] server request:
2023-02-05 16:28:02.322484802  OPTIONS rtsp://localhost:8554/morro?audio RTSP/1.0
2023-02-05 16:28:02.322486378  Cseq: 10
2023-02-05 16:28:02.322487957  User-Agent: go2rtc/ffmpeg
2023-02-05 16:28:02.322489371  Session: 1
2023-02-05 16:28:02.322490679  
2023-02-05 16:28:02.322491837  
2023-02-05 16:28:02.558191505  13:28:02.558 TRC [rtsp] server request:
2023-02-05 16:28:02.558200014  OPTIONS rtsp://localhost:8554/terreiro?audio RTSP/1.0
2023-02-05 16:28:02.558201842  Cseq: 10
2023-02-05 16:28:02.558203718  User-Agent: go2rtc/ffmpeg
2023-02-05 16:28:02.558205376  Session: 1
2023-02-05 16:28:02.558206842  
2023-02-05 16:28:02.558208246  
2023-02-05 16:28:02.603858630  13:28:02.603 TRC [rtsp] server request:
2023-02-05 16:28:02.603867182  OPTIONS rtsp://localhost:8554/rua?audio RTSP/1.0
2023-02-05 16:28:02.603869250  Cseq: 10
2023-02-05 16:28:02.603871176  User-Agent: go2rtc/ffmpeg
2023-02-05 16:28:02.603872960  Session: 1
2023-02-05 16:28:02.603874567  
2023-02-05 16:28:02.603876045  
2023-02-05 16:28:02.772313910  13:28:02.764 TRC [rtsp] server request:
2023-02-05 16:28:02.772322157  OPTIONS rtsp://127.0.0.1:8554/rua?video=copy RTSP/1.0
2023-02-05 16:28:02.772323995  Cseq: 10
2023-02-05 16:28:02.772326057  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:02.772327710  Session: 1
2023-02-05 16:28:02.772329080  
2023-02-05 16:28:02.772330454  
2023-02-05 16:28:02.923989945  13:28:02.923 TRC [rtsp] server request:
2023-02-05 16:28:02.923997823  OPTIONS rtsp://127.0.0.1:8554/rua_hd?video=copy&audio=aac RTSP/1.0
2023-02-05 16:28:02.923999490  Cseq: 11
2023-02-05 16:28:02.924001231  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:02.924002641  Session: 1
2023-02-05 16:28:02.924003938  
2023-02-05 16:28:02.924005170  
2023-02-05 16:28:03.513247657  13:28:03.513 TRC [rtsp] server request:
2023-02-05 16:28:03.513255936  OPTIONS rtsp://127.0.0.1:8554/portao?video=copy&audio=aac RTSP/1.0
2023-02-05 16:28:03.513257727  Cseq: 11
2023-02-05 16:28:03.513259668  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:03.513261266  Session: 1
2023-02-05 16:28:03.513262676  
2023-02-05 16:28:03.513264001  
2023-02-05 16:28:03.520095855  13:28:03.519 TRC [rtsp] server request:
2023-02-05 16:28:03.520104281  OPTIONS rtsp://127.0.0.1:8554/chafariz RTSP/1.0
2023-02-05 16:28:03.520106088  Cseq: 10
2023-02-05 16:28:03.520108140  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:03.520109733  Session: 1
2023-02-05 16:28:03.520111226  
2023-02-05 16:28:03.520112595  
2023-02-05 16:28:03.849686884  13:28:03.849 TRC [rtsp] server request:
2023-02-05 16:28:03.849694740  OPTIONS rtsp://127.0.0.1:8554/video_porteiro_do_terreiro RTSP/1.0
2023-02-05 16:28:03.849696365  Cseq: 10
2023-02-05 16:28:03.849698126  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:03.849699538  Session: 1
2023-02-05 16:28:03.849700869  
2023-02-05 16:28:03.849702082  
2023-02-05 16:28:03.897321540  13:28:03.897 TRC [rtsp] server request:
2023-02-05 16:28:03.897329623  OPTIONS rtsp://127.0.0.1:8554/escada_do_terreiro RTSP/1.0
2023-02-05 16:28:03.897331767  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:03.897333379  Session: 1
2023-02-05 16:28:03.897334911  Cseq: 10
2023-02-05 16:28:03.897336311  
2023-02-05 16:28:03.897337657  
2023-02-05 16:28:04.055916449  13:28:04.055 TRC [rtsp] server request:
2023-02-05 16:28:04.055925039  OPTIONS rtsp://127.0.0.1:8554/morro?video=copy&audio=aac RTSP/1.0
2023-02-05 16:28:04.055926727  Cseq: 11
2023-02-05 16:28:04.055928603  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:04.055930122  Session: 1
2023-02-05 16:28:04.055931556  
2023-02-05 16:28:04.055932825  
2023-02-05 16:28:04.293635456  13:28:04.293 TRC [rtsp] server request:
2023-02-05 16:28:04.293643592  OPTIONS rtsp://127.0.0.1:8554/terreiro?video=copy&audio=aac RTSP/1.0
2023-02-05 16:28:04.293645242  Cseq: 11
2023-02-05 16:28:04.293647118  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:04.293648637  Session: 1
2023-02-05 16:28:04.293649985  
2023-02-05 16:28:04.293651226  
2023-02-05 16:28:04.496632890  13:28:04.494 TRC [rtsp] server request:
2023-02-05 16:28:04.496640917  OPTIONS rtsp://127.0.0.1:8554/video_porteiro_hd?video=copy&audio=aac RTSP/1.0
2023-02-05 16:28:04.496642681  Cseq: 11
2023-02-05 16:28:04.496644587  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:04.496646171  Session: 1
2023-02-05 16:28:04.496647579  
2023-02-05 16:28:04.496648917  
2023-02-05 16:28:04.498975029  13:28:04.498 TRC [rtsp] server request:
2023-02-05 16:28:04.498982693  OPTIONS rtsp://127.0.0.1:8554/portao_do_terreiro RTSP/1.0
2023-02-05 16:28:04.498984191  Cseq: 10
2023-02-05 16:28:04.498985944  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:04.498987369  Session: 1
2023-02-05 16:28:04.498988771  
2023-02-05 16:28:04.498990036  
2023-02-05 16:28:04.795582655  13:28:04.795 TRC [rtsp] server request:
2023-02-05 16:28:04.795590880  OPTIONS rtsp://127.0.0.1:8554/video_porteiro?video=copy RTSP/1.0
2023-02-05 16:28:04.795593026  User-Agent: FFmpeg Frigate/0.12.0-66881eb
2023-02-05 16:28:04.795594657  Session: 1
2023-02-05 16:28:04.795596286  Cseq: 10
2023-02-05 16:28:04.795597756  
2023-02-05 16:28:04.795599131  

@felipecrs
Copy link
Contributor Author

@AlexxIT I just realized that this error actually appears all the time, and I reported it already at #397. More people seem to have the same issue.

Now, I'm not sure if this is why DashCast isn't working though.

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 5, 2023

ondata because codec fails. And codec fails because wrong SDP response from one of your cameras. I think I have already saw it. But want to see against. There is no anything useful in your latest logs. Needs start moment.

@felipecrs
Copy link
Contributor Author

Ok. I'll try to isolate the issue. Do you still want only rtsp: trace?

@felipecrs
Copy link
Contributor Author

felipecrs commented Feb 5, 2023

There we go. I noticed something btw, that the issue apparently only triggers when there's more than 1 stream at the same time in the same HA view.

Click here to show logs
17:17:57.253 INF go2rtc version 1.1.1 linux/amd64
17:17:57.254 INF [api] listen addr=:1984
17:17:57.254 INF [rtsp] listen addr=:8554
17:17:57.255 INF [srtp] listen addr=:8443
17:17:57.255 INF [webrtc] listen addr=:8555
17:18:03.356 TRC [rtsp] client request:
DESCRIBE rtsp:https://192.168.1.32:6554/stream_1 RTSP/1.0
Accept: application/sdp
Require: www.onvif.org/ver20/backchannel
CSeq: 1

17:18:03.358 TRC [rtsp] client response:
RTSP/1.0 200 OK
Date: Sun, Feb 05 2023 20:18:02 GMT
Cseq: 1
Content-Type: application/sdp
Content-Length: 356

v=0
o=- 1675628282 1675628283 IN IP4 192.168.1.32
s=streamed by the RTSP server
t=0 0
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=control:track0
m=audio 0 RTP/AVP 8
a=rtpmap:0 pcma/8000/1
a=control:track1
a=framerate:25
a=range:npt=now-
a=fmtp:96 packetization-mode=1;profile-level-id=64001F;sprop-parameter-sets=Z0IAH5WoFAFuQA==,aM48gA==

17:18:03.362 TRC [rtsp] client request:
SETUP rtsp:https://192.168.1.32:6554/stream_1/track0 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
CSeq: 2

17:18:03.365 TRC [rtsp] client response:
RTSP/1.0 200 OK
Cseq: 2
Date: Sun, Feb 05 2023 20:18:02 GMT
Session: 4400996041345183680
Transport: RTP/AVP/TCP;unicast;interleaved=0-1

17:18:03.365 TRC [rtsp] client request:
SETUP rtsp:https://192.168.1.32:6554/stream_1/track1 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
CSeq: 3
Session: 4400996041345183680

17:18:03.366 TRC [rtsp] client response:
RTSP/1.0 200 OK
Cseq: 3
Date: Sun, Feb 05 2023 20:18:02 GMT
Session: 4400996041345183680
Transport: RTP/AVP/TCP;unicast;interleaved=2-3

17:18:03.367 TRC [rtsp] client request:
PLAY rtsp:https://192.168.1.32:6554/stream_1 RTSP/1.0
CSeq: 4
Session: 4400996041345183680

17:18:03.373 TRC [rtsp] client response:
RTSP/1.0 200 OK
Cseq: 4
Date: Sun, Feb 05 2023 20:18:02 GMT
Session: 4400996041345183680

17:18:04.530 TRC [rtsp] server request:
OPTIONS rtsp:https://localhost:8554/portao?audio RTSP/1.0
Cseq: 1
User-Agent: go2rtc/ffmpeg

17:18:04.530 TRC [rtsp] server response:
RTSP/1.0 200 OK
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD
Cseq: 1

17:18:04.531 TRC [rtsp] server request:
DESCRIBE rtsp:https://localhost:8554/portao?audio RTSP/1.0
Accept: application/sdp
Cseq: 2
User-Agent: go2rtc/ffmpeg

17:18:04.531 DBG [rtsp] new consumer stream=portao
17:18:04.531 TRC [rtsp] server response:
RTSP/1.0 200 OK
Content-Type: application/sdp
Cseq: 2
Content-Length: 115

v=0
o=- 1 1 IN IP4 0.0.0.0
s=go2rtc/1.1.1
c=IN IP4 0.0.0.0
t=0 0
m=audio 0 RTP/AVP 96
a=rtpmap:96 PCMA/8000
17:18:04.531 TRC [rtsp] server request:
SETUP rtsp:https://localhost:8554/portao?audio RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Cseq: 3
User-Agent: go2rtc/ffmpeg

17:18:04.531 TRC [rtsp] server response:
RTSP/1.0 200 OK
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Cseq: 3
Session: 1

17:18:04.532 TRC [rtsp] server request:
PLAY rtsp:https://localhost:8554/portao?audio RTSP/1.0
Cseq: 4
User-Agent: go2rtc/ffmpeg
Session: 1
Range: npt=0.000-

17:18:04.532 TRC [rtsp] server response:
RTSP/1.0 200 OK
Session: 1
Cseq: 4

17:18:04.553 TRC [rtsp] server request:
OPTIONS rtsp:https://localhost:8554/0914cbf199f63847a2d4d990784a8a2d RTSP/1.0
Cseq: 1
User-Agent: ffmpeg/go2rtc

17:18:04.553 TRC [rtsp] server response:
RTSP/1.0 200 OK
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD
Cseq: 1

17:18:04.594 TRC [rtsp] server request:
ANNOUNCE rtsp:https://localhost:8554/0914cbf199f63847a2d4d990784a8a2d RTSP/1.0
Content-Type: application/sdp
Cseq: 2
User-Agent: ffmpeg/go2rtc
Content-Length: 577

v=0
o=- 0 0 IN IP6 ::1
s=Media Server
c=IN IP6 ::1
t=0 0
a=tool:libavformat LIBAVFORMAT_VERSION
m=video 0 RTP/AVP 96
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0JAIKaAUAXfiUAA,aM48gAA=; profile-level-id=424020
a=control:streamid=0
m=audio 0 RTP/AVP 97
b=AS:96
a=rtpmap:97 opus/48000/2
a=fmtp:97 sprop-stereo=1
a=control:streamid=1
m=audio 0 RTP/AVP 98
b=AS:69
a=rtpmap:98 MPEG4-GENERIC/16000/1
a=fmtp:98 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=140856E500
a=control:streamid=2
17:18:04.594 TRC [rtsp] server response:
RTSP/1.0 200 OK
Cseq: 2

17:18:04.595 TRC [rtsp] server request:
SETUP rtsp:https://localhost:8554/0914cbf199f63847a2d4d990784a8a2d/streamid=0 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=record
Cseq: 3
User-Agent: ffmpeg/go2rtc

17:18:04.595 TRC [rtsp] server response:
RTSP/1.0 200 OK
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Cseq: 3
Session: 1

17:18:04.596 TRC [rtsp] server request:
SETUP rtsp:https://localhost:8554/0914cbf199f63847a2d4d990784a8a2d/streamid=1 RTSP/1.0
Session: 1
Transport: RTP/AVP/TCP;unicast;interleaved=2-3;mode=record
Cseq: 4
User-Agent: ffmpeg/go2rtc

17:18:04.596 TRC [rtsp] server response:
RTSP/1.0 200 OK
Session: 1
Transport: RTP/AVP/TCP;unicast;interleaved=2-3
Cseq: 4

17:18:04.596 TRC [rtsp] server request:
SETUP rtsp:https://localhost:8554/0914cbf199f63847a2d4d990784a8a2d/streamid=2 RTSP/1.0
Cseq: 5
User-Agent: ffmpeg/go2rtc
Session: 1
Transport: RTP/AVP/TCP;unicast;interleaved=4-5;mode=record

17:18:04.596 TRC [rtsp] server response:
RTSP/1.0 200 OK
Session: 1
Transport: RTP/AVP/TCP;unicast;interleaved=4-5
Cseq: 5

17:18:04.597 TRC [rtsp] server request:
RECORD rtsp:https://localhost:8554/0914cbf199f63847a2d4d990784a8a2d RTSP/1.0
Range: npt=0.000-
Cseq: 6
User-Agent: ffmpeg/go2rtc
Session: 1

17:18:04.597 TRC [rtsp] server response:
RTSP/1.0 200 OK
Cseq: 6
Session: 1

17:18:04.955 TRC [rtsp] server request:
OPTIONS rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93 RTSP/1.0
Cseq: 1
User-Agent: ffmpeg/go2rtc

17:18:04.955 TRC [rtsp] server response:
RTSP/1.0 200 OK
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD
Cseq: 1

17:18:04.996 TRC [rtsp] server request:
ANNOUNCE rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93 RTSP/1.0
Content-Type: application/sdp
Cseq: 2
User-Agent: ffmpeg/go2rtc
Content-Length: 298

v=0
o=- 0 0 IN IP6 ::1
s=go2rtc/1.1.1
c=IN IP6 ::1
t=0 0
a=tool:libavformat LIBAVFORMAT_VERSION
m=audio 0 RTP/AVP 96
b=AS:48
a=rtpmap:96 MPEG4-GENERIC/8000/1
a=fmtp:96 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=158856E500
a=control:streamid=0
17:18:04.996 TRC [rtsp] server response:
RTSP/1.0 200 OK
Cseq: 2

17:18:04.997 TRC [rtsp] server request:
SETUP rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93/streamid=0 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=record
Cseq: 3
User-Agent: ffmpeg/go2rtc

17:18:04.997 TRC [rtsp] server response:
RTSP/1.0 200 OK
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Cseq: 3
Session: 1

17:18:04.997 TRC [rtsp] server request:
RECORD rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93 RTSP/1.0
Cseq: 4
User-Agent: ffmpeg/go2rtc
Session: 1
Range: npt=0.000-

17:18:04.997 TRC [rtsp] server response:
RTSP/1.0 200 OK
Cseq: 4
Session: 1

17:18:04.997 TRC [rtsp] server request:
TEARDOWN rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93 RTSP/1.0
CSeq: 1
Session: 1

17:18:05.177 TRC [rtsp] server request:
TEARDOWN rtsp:https://localhost:8554/portao?audio RTSP/1.0
Session: 1
Cseq: 5
User-Agent: go2rtc/ffmpeg

17:18:05.177 DBG [rtsp] handle=EOF
17:18:05.177 DBG [rtsp] disconnect stream=portao
17:18:09.867 TRC [rtsp] server request:
OPTIONS rtsp:https://localhost:8554/portao?audio RTSP/1.0
User-Agent: go2rtc/ffmpeg
Cseq: 1

17:18:09.867 TRC [rtsp] server response:
RTSP/1.0 200 OK
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD
Cseq: 1

17:18:09.868 TRC [rtsp] server request:
DESCRIBE rtsp:https://localhost:8554/portao?audio RTSP/1.0
Accept: application/sdp
Cseq: 2
User-Agent: go2rtc/ffmpeg

17:18:09.868 DBG [rtsp] new consumer stream=portao
17:18:09.868 TRC [rtsp] server response:
RTSP/1.0 200 OK
Content-Length: 115
Content-Type: application/sdp
Cseq: 2

v=0
o=- 1 1 IN IP4 0.0.0.0
s=go2rtc/1.1.1
c=IN IP4 0.0.0.0
t=0 0
m=audio 0 RTP/AVP 96
a=rtpmap:96 PCMA/8000
17:18:09.868 TRC [rtsp] server request:
SETUP rtsp:https://localhost:8554/portao?audio RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Cseq: 3
User-Agent: go2rtc/ffmpeg

17:18:09.868 TRC [rtsp] server response:
RTSP/1.0 200 OK
Session: 1
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Cseq: 3

17:18:09.869 TRC [rtsp] server request:
PLAY rtsp:https://localhost:8554/portao?audio RTSP/1.0
Range: npt=0.000-
Cseq: 4
User-Agent: go2rtc/ffmpeg
Session: 1

17:18:09.869 TRC [rtsp] server response:
RTSP/1.0 200 OK
Cseq: 4
Session: 1

17:18:09.945 TRC [rtsp] server request:
OPTIONS rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93 RTSP/1.0
Cseq: 1
User-Agent: ffmpeg/go2rtc

17:18:09.945 TRC [rtsp] server response:
RTSP/1.0 200 OK
Public: OPTIONS, SETUP, TEARDOWN, DESCRIBE, PLAY, PAUSE, ANNOUNCE, RECORD
Cseq: 1

17:18:09.986 TRC [rtsp] server request:
ANNOUNCE rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93 RTSP/1.0
Content-Type: application/sdp
Cseq: 2
User-Agent: ffmpeg/go2rtc
Content-Length: 298

v=0
o=- 0 0 IN IP6 ::1
s=go2rtc/1.1.1
c=IN IP6 ::1
t=0 0
a=tool:libavformat LIBAVFORMAT_VERSION
m=audio 0 RTP/AVP 96
b=AS:48
a=rtpmap:96 MPEG4-GENERIC/8000/1
a=fmtp:96 profile-level-id=1;mode=AAC-hbr;sizelength=13;indexlength=3;indexdeltalength=3; config=158856E500
a=control:streamid=0
17:18:09.986 TRC [rtsp] server response:
RTSP/1.0 200 OK
Cseq: 2

17:18:09.986 TRC [rtsp] server request:
SETUP rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93/streamid=0 RTSP/1.0
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;mode=record
Cseq: 3
User-Agent: ffmpeg/go2rtc

17:18:09.986 TRC [rtsp] server response:
RTSP/1.0 200 OK
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
Cseq: 3
Session: 1

17:18:09.987 TRC [rtsp] server request:
RECORD rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93 RTSP/1.0
User-Agent: ffmpeg/go2rtc
Session: 1
Range: npt=0.000-
Cseq: 4

17:18:09.987 TRC [rtsp] server response:
RTSP/1.0 200 OK
Cseq: 4
Session: 1

17:18:10.999 TRC [rtsp] server request:
TEARDOWN rtsp:https://localhost:8554/e6a31883f99b72ddbbb3309de1b73c93 RTSP/1.0
CSeq: 1
Session: 1

17:18:11.059 TRC [rtsp] server request:
TEARDOWN rtsp:https://localhost:8554/portao?audio RTSP/1.0
Session: 1
Cseq: 5
User-Agent: go2rtc/ffmpeg

17:18:11.059 DBG [rtsp] handle=EOF
17:18:11.059 DBG [rtsp] disconnect stream=portao
17:18:28.372 TRC [rtsp] client request:
OPTIONS rtsp:https://192.168.1.32:6554/stream_1 RTSP/1.0
Session: 4400996041345183680
CSeq: 5

17:18:28.373 TRC [rtsp] client response:
RTSP/1.0 200 OK
Cseq: 5
Date: Sun, Feb 05 2023 20:18:27 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

17:18:53.374 TRC [rtsp] client request:
OPTIONS rtsp:https://192.168.1.32:6554/stream_1 RTSP/1.0
CSeq: 6
Session: 4400996041345183680

17:18:53.374 TRC [rtsp] client response:
RTSP/1.0 200 OK
Cseq: 6
Date: Sun, Feb 05 2023 20:18:52 GMT
Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 6, 2023

What is camera model? rtsp:https://192.168.1.32:6554/stream_1
Is is works for you with WebRTC? MSE? VLC?

@felipecrs
Copy link
Contributor Author

It's yet another chinese camera: https://aliexpress.com/item/4000495183225.html

Is is works for you with WebRTC? MSE? VLC?

Yes, all works perfectly.

image

chrome_3vgX11VZct.mp4

@felipecrs
Copy link
Contributor Author

felipecrs commented Feb 6, 2023

BTW, the go2rtc configuration for this camera is:

stream:
  portao:
    - rtsp:https://admin:<pass>@192.168.1.32:6554/stream_1
    - "ffmpeg:portao#audio=aac"

@atv2016
Copy link

atv2016 commented Feb 9, 2023

@felipecrs What are you casting to ? Chromecast? Because i can't get this to work either with a normal RTSP stream, tried Chromecast V1 and Latest version.

@felipecrs
Copy link
Contributor Author

It's a Chromecast with Google TV the 4K version. I will try again once I upgrade go2rtc because there are some fixes with the newest version which was not yet released to this integration.

@atv2016
Copy link

atv2016 commented Feb 10, 2023 via email

@felipecrs
Copy link
Contributor Author

Ok, after go2rtc 1.1.2 I no longer see these ondata issues in my HA logs, and MSE works correctly for my chinese cameras. So, thanks a lot!

About this issue in specific, however, nothing has changed. DashCast does not work and it behaves exactly the same as before. And there are no logs when I trigger the service.

However, I noticed that there are some improvements related to Chromecast that were not yet released in (this) WebRTC project, so maybe it was already fixed.

@atv2016
Copy link

atv2016 commented Feb 12, 2023 via email

@nikrays
Copy link

nikrays commented Mar 29, 2023

Attention! Guys this is the only way that works.
#88 (comment)

@mouldybread
Copy link

mouldybread commented Jul 7, 2023

I have a Google Chromecast with Google TV 4K version, same issue.

Using https://stestagg.github.io/dashcast/ with the force option enabled resolves the issue.

Is there some way I can do that with WebRTC?

Edit: For those reading with a similar issue, I ended up using the separate Dashcast service from https://github.com/AlexxIT/DashCast with WebRTC generated URLs as a workaround, as that service has the force option.

Further edit: Eventually I solved this using a Let's Encrypt DNS-01 authenticated valid https certificate. This method of authentication means I don't have to expose a http server, and the public DNS just points to an RFC1918 address. https://github.com/home-assistant/addons/blob/master/letsencrypt/DOCS.md

@AlexxIT
Copy link
Owner

AlexxIT commented Aug 24, 2023

@felipecrs
Copy link
Contributor Author

felipecrs commented Aug 26, 2023

Were someone able to make it work with the new version? For me, it's just like before. Even enabling force.

By the way, I explained an alternative method to cast camera streams with no latency here: dermotduffy/frigate-hass-card#1231

1_5116194257362748298.mp4

In case someone needs.

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

5 participants