RTSPtoWeb
RTSPtoWeb copied to clipboard
Unsupported stream still returns 200(Http OK)
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?