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

Unsupported stream still returns 200(Http OK) #423

Open
sahin52 opened this issue Dec 25, 2023 · 0 comments
Open

Unsupported stream still returns 200(Http OK) #423

sahin52 opened this issue Dec 25, 2023 · 0 comments

Comments

@sahin52
Copy link
Contributor

sahin52 commented Dec 25, 2023

Hello,
I am using a camera that uses H265, it is currently not supported. But when I look at the logs:

[GIN] 2023/12/25 - 13:47:51 | 200 |       624.6µs |             ::1 | GET      "/streams"
[GIN] 2023/12/25 - 13:47:51 | 200 |       722.7µs |       127.0.0.1 | GET      "/stream/47/channel/main/delete"
[GIN] 2023/12/25 - 13:50:52 | 200 |       550.3µs |             ::1 | GET      "/streams"
[GIN] 2023/12/25 - 13:50:52 | 200 |       999.8µs |       127.0.0.1 | POST     "/stream/47/channel/main/add"
time="2023-12-25T13:50:52+03:00" level=info msg="Run stream" call=Run channel=main func=StreamServerRunStreamDo module=core stream=47
time="2023-12-25T13:50:52+03:00" level=info msg="Success connection RTSP" call=Start channel=main func=StreamServerRunStream module=core stream=47
[GIN] 2023/12/25 - 13:50:59 | 200 |     7.078482s |             ::1 | GET      "/stream/47/channel/main/hls/live/index.m3u8?token=79b330d5-79f5-43db-9a4b-dd9e9f9b32cd"
[GIN] 2023/12/25 - 13:50:59 | 200 |      4.4921ms |             ::1 | GET      "/stream/47/channel/main/hls/live/index.m3u8?token=79b330d5-79f5-43db-9a4b-dd9e9f9b32cd"
ts: codec type=H265 is not supported
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
[GIN] 2023/12/25 - 13:50:59 | 200 |      2.4951ms |             ::1 | GET      "/stream/47/channel/main/hls/live/segment/1/file.ts"
ts: codec type=H265 is not supported
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0
Warning, unsupported stream index: 0

As you see, It says it is not supported, but when I ask for file.ts it is returning 200. Mustn't it return 500 or 400. I dont think that's related to frontend by the way. Is Warning, unsupported stream index: 0 log, related to UI or is it related to RtspToWeb?

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

No branches or pull requests

1 participant