Cannot find stream error when streaming a rtsp stream using OME in edge mode with webrtc over tcp
amans33 opened this issue · 0 comments
Describe the bug
I have a rtsp stream from camera(hanwha) which I want to live stream using OME in edge mode with webrtc over tcp. Whenever I load the ovenplayer using url ws://localhost:3333/app/live.stream?transport=tcp, first I get the connection failed error.
Console:
{code: 501, message: 'Connection with low-latency(OME) server failed.', reason: 'WebSocket connection failed.', error: 'Cannot create offer'}.
After showing error for a second, streaming starts and keep playing without any issue.
To Reproduce
Steps to reproduce the behavior:
- Set Server.xml as follows
Server.xml.zip - Get a rtsp stream from camera or Start a rtsp stream using ffmpeg and mediamtx by looping over a video.mp4 file(I even tried with a random mp4 file from internet but got same errors)
- See error:
[2024-08-07 06:22:50.601] E [SPRtcSig-t3333:10] WebRTC Publisher | webrtc_publisher.cpp:333 | Cannot find stream (#default#app/live.stream)
[2024-08-07 06:22:50.601] E [SPRtcSig-t3333:10] Signalling | rtc_signalling_server.cpp:407 | Cannot find stream [#default#app/live.stream]
Expected behavior
With version 0.15.0 there are no such "cannot find stream" errors. These errors should not come in newer version and streaming should work without any error.
Logs
ome0.16.5logs.txt
Server:
- OS: Mac with docker
- OvenMediaEngine Version: 0.16.5(from releases)
- Branch: master
Player:
- Device: Mac
- OS: MacOS
- Browser: Chrome
- Version 127
Additional context
With older version 0.15.0, same setup works fine. Newer versions are not working properly. Same errors seen in latest version 0.16.8 and it is also getting killed when it goes to delete the applications after stopping the streaming. I know this is not related to my issue but still reporting here with logs.
[2024-07-26 06:30:51.061] E [DQOrchestrator:23] Publisher | publisher.cpp:125 | Push publisher hasn't the #default#app application.
[2024-07-26 06:30:51.061] E [DQOrchestrator:23] Orchestrator | orchestrator_internal.cpp:884 | The module 0x7f63811a7010 (Publisher) returns error while deleting the application [#default#app]
[2024-07-26 06:30:51.061] E [DQOrchestrator:23] Publisher | publisher.cpp:125 | File publisher hasn't the #default#app application.
[2024-07-26 06:30:51.061] E [DQOrchestrator:23] Orchestrator | orchestrator_internal.cpp:884 | The module 0x7f638cc96010 (Publisher) returns error while deleting the application [#default#app]
[2024-07-26 06:30:51.061] C [AW-WebRTC0:27] OvenMediaEngine | signals.cpp:124 | OME v0.16.8 ((From archive)) received signal 11 (SIGSEGV), interrupt.