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

vlc play stream successful,but in this program it failed. #221

Open
7288Fzq opened this issue Oct 23, 2023 · 1 comment
Open

vlc play stream successful,but in this program it failed. #221

7288Fzq opened this issue Oct 23, 2023 · 1 comment

Comments

@7288Fzq
Copy link

7288Fzq commented Oct 23, 2023

the console output is like this:
`2023/10/23 21:04:13 [Recovery] 2023/10/23 - 21:04:13 panic recovered:
runtime error: index out of range [0] with length 0
/home/tony/Downloads/go1.21.3.linux-amd64/go/src/runtime/panic.go:114 (0x438b7b)
goPanicIndex: panic(boundsError{x: int64(x), signed: true, y: y, code: boundsIndex})
/home/tony/go/pkg/mod/github.com/deepch/vdk@v0.0.20/codec/h264parser/parser.go:668 (0xa1d865)
CodecData.SPS: return self.RecordInfo.SPS[0]
/home/tony/RTSPtoWebRTC/config.go:186 (0xa1d5f8)
(*ConfigST).coGe: if codecVideo.SPS() != nil && codecVideo.PPS() != nil && len(codecVideo.SPS()) > 0 && len(codecVideo.PPS()) > 0 {
/home/tony/RTSPtoWebRTC/http.go:74 (0xa1ebfa)
HTTPAPIServerStreamCodec: codecs := Config.coGe(c.Param("uuid"))
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174 (0x9f754a)
(*Context).Next: c.handlersc.index
/home/tony/RTSPtoWebRTC/http.go:170 (0xa223b9)
serveHTTP.CORSMiddleware.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174 (0xa043b9)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/recovery.go:102 (0xa043a7)
CustomRecoveryWithWriter.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174 (0xa0355d)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/logger.go:240 (0xa0352c)
LoggerWithConfig.func1: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/context.go:174 (0xa0263a)
(*Context).Next: c.handlersc.index
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/gin.go:620 (0xa022cd)
(*Engine).handleHTTPRequest: c.Next()
/home/tony/go/pkg/mod/github.com/gin-gonic/gin@v1.9.0/gin.go:576 (0xa01dfc)
(*Engine).ServeHTTP: engine.handleHTTPRequest(c)
/home/tony/Downloads/go1.21.3.linux-amd64/go/src/net/http/server.go:2938 (0x6e29cd)
serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)
/home/tony/Downloads/go1.21.3.linux-amd64/go/src/net/http/server.go:2009 (0x6de8b3)
(*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)
/home/tony/Downloads/go1.21.3.linux-amd64/go/src/runtime/asm_amd64.s:1650 (0x46d6c0)
goexit: BYTE $0x90 // NOP

[GIN] 2023/10/23 - 21:04:13 | 500 | 632.757µs | 127.0.0.1 | GET "/stream/codec/demo3"
`

@7288Fzq
Copy link
Author

7288Fzq commented Oct 23, 2023

O[2023-10-23T23:47:15+08:00] Server CORE start func=main module=main
INFO[2023-10-23T23:47:15+08:00] Server RTSP start call=Start func=RTSPServer module=rtsp_server
INFO[2023-10-23T23:47:15+08:00] Server HTTP start call=Start func=RTSPServer module=http_server
INFO[2023-10-23T23:47:15+08:00] Server start success a wait signals func=main module=main
DEBU[2023-10-23T23:48:01+08:00] Saving configuration to config.json func=NewStreamCore module=config
INFO[2023-10-23T23:48:01+08:00] Run stream call=Run channel=0 func=StreamServerRunStreamDo module=core stream=85a28e2d-3691-439a-b576-07da2eb5f58d
INFO[2023-10-23T23:48:01+08:00] Success connection RTSP call=Start channel=0 func=StreamServerRunStream module=core stream=85a28e2d-3691-439a-b576-07da2eb5f58d
ERRO[2023-10-23T23:48:08+08:00] stream not found call=HLSMuxerM3U8 channel=0 func=HTTPAPIServerStreamHLSLLM3U8 module=http_hlsll stream=85a28e2d-3691-439a-b576-07da2eb5f58d
ERRO[2023-10-23T23:48:10+08:00] stream channel codec not ready, possible stream offline call=StreamCodecs channel=0 func=HTTPAPIServerStreamMSE module=http_mse stream=85a28e2d-3691-439a-b576-07da2eb5f58d
ERRO[2023-10-23T23:48:10+08:00] call=Close channel=0 func=HTTPAPIServerStreamMSE module=http_mse stream=85a28e2d-3691-439a-b576-07da2eb5f58d
INFO[2023-10-23T23:48:10+08:00] Client Full Exit
ERRO[2023-10-23T23:48:10+08:00] stream channel codec not ready, possible stream offline call=StreamCodecs channel=0 func=HTTPAPIServerStreamWebRTC module=http_webrtc stream=85a28e2d-3691-439a-b576-07da2eb5f58d
ERRO[2023-10-23T23:48:21+08:00] Stream error restart stream stream no video call=Restart
INFO[2023-10-23T23:48:23+08:00] Run stream call=Run channel=0 func=StreamServerRunStreamDo module=core stream=85a28e2d-3691-439a-b576-07da2eb5f58d
INFO[2023-10-23T23:48:23+08:00] Success connection RTSP call=Start channel=0 func=StreamServerRunStream module=core stream=85a28e2d-3691-439a-b576-07da2eb5f58d
ERRO[2023-10-23T23:48:43+08:00] Stream error restart stream stream no video call=Restart
INFO[2023-10-23T23:48:45+08:00] Run stream call=Run channel=0 func=StreamServerRunStreamDo module=core stream=85a28e2d-3691-439a-b576-07da2eb5f58d
INFO[2023-10-23T23:48:45+08:00] Success connection RTSP call=Start channel=0 func=StreamServerRunStream module=core stream=85a28e2d-3691-439a-b576-07da2eb5f58d

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