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

Cannot publish rtsp stream via gstreamer #135

Closed
GrumpyChubbyCat opened this issue Jun 24, 2024 · 3 comments · Fixed by #139
Closed

Cannot publish rtsp stream via gstreamer #135

GrumpyChubbyCat opened this issue Jun 24, 2024 · 3 comments · Fixed by #139
Labels
bug Something isn't working

Comments

@GrumpyChubbyCat
Copy link

GrumpyChubbyCat commented Jun 24, 2024

XIU version
XIU 0.12.7

Describe the bug
I'm trying to publish an rtsp broadcast using gstreamer. Xiu cannot parse requests from the gstreamer's rtspclientsink element - GStreamer 1.16.3
To Reproduce
To publish a stream I use the following gstreamer command:

gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink protocols=tcp location=rtsp://0.0.0.0:8554/test-stream

Log from Xiu:

[2024-06-24T09:32:10Z INFO  xrtsp::rtsp] Rtsp server listening on tcp://0.0.0.0:8554
[2024-06-24T09:32:10Z INFO  xiu::api] Http api server listening on http://0.0.0.0:8000
[2024-06-24T09:32:22Z DEBUG xrtsp::session] dollar sign: false
[2024-06-24T09:32:22Z DEBUG xrtsp::session] dollar sign: false
[2024-06-24T09:32:22Z INFO  xrtsp::sdp] not parsed: i=rtspclientsink
[2024-06-24T09:32:22Z INFO  xrtsp::session] media_name: video
[2024-06-24T09:32:22Z INFO  streamhub] event data: {"Publish":{"identifier":{"rtsp":{"stream_path":"test-stream"}},"info":{"id":"1719221542","pub_type":"PushRtsp","notify_info":{"request_url":"","remote_addr":""}}}}
[2024-06-24T09:32:22Z INFO  streamhub] transceiver run success, idetifier: RTSP - stream_name: test-stream
[2024-06-24T09:32:22Z DEBUG xrtsp::session] dollar sign: false
[2024-06-24T09:32:22Z DEBUG xrtsp::session] dollar sign: false
[2024-06-24T09:32:42Z ERROR xrtsp::rtsp] session run error, err: net io error: none return
[2024-06-24T09:32:42Z DEBUG xrtsp::session] dollar sign: false
[2024-06-24T09:32:42Z ERROR xrtsp::rtsp] session run error, err: net io error: none return

When try to connect again, an error occurs:

2024-06-24T09:40:45Z DEBUG xrtsp::session] dollar sign: false
[2024-06-24T09:40:45Z DEBUG xrtsp::session] dollar sign: false
[2024-06-24T09:40:45Z INFO  xrtsp::sdp] not parsed: i=rtspclientsink
[2024-06-24T09:40:45Z INFO  xrtsp::session] media_name: video
[2024-06-24T09:40:45Z INFO  streamhub] event data: {"Publish":{"identifier":{"rtsp":{"stream_path":"test-stream"}},"info":{"id":"1719222045","pub_type":"PushRtsp","notify_info":{"request_url":"","remote_addr":""}}}}
[2024-06-24T09:40:45Z ERROR streamhub] event_loop Publish err: exists
[2024-06-24T09:40:45Z ERROR xrtsp::rtsp] session run error, err: event execute error: exists
[2024-06-24T09:40:45Z DEBUG xrtsp::session] dollar sign: false
[2024-06-24T09:40:45Z INFO  xrtsp::sdp] not parsed: i=rtspclientsink
[2024-06-24T09:40:45Z INFO  xrtsp::session] media_name: video
[2024-06-24T09:40:45Z INFO  streamhub] event data: {"Publish":{"identifier":{"rtsp":{"stream_path":"test-stream"}},"info":{"id":"1719222045","pub_type":"PushRtsp","notify_info":{"request_url":"","remote_addr":""}}}}
[2024-06-24T09:40:45Z ERROR streamhub] event_loop Publish err: exists
[2024-06-24T09:40:45Z ERROR xrtsp::rtsp] session run error, err: event execute error: exists
[2024-06-24T09:40:45Z DEBUG xrtsp::session] dollar sign: false
[2024-06-24T09:40:45Z ERROR xrtsp::rtsp] session run error, err: net io error: none return
@harlanc
Copy link
Owner

harlanc commented Jun 24, 2024

seems a bug..

@harlanc harlanc added the bug Something isn't working label Jun 24, 2024
harlanc added a commit that referenced this issue Jul 19, 2024
fix error that xiu cannot receive RTSP stream published by gstreamer #135
@harlanc
Copy link
Owner

harlanc commented Jul 19, 2024

@GrumpyChubbyCat try to use the master branch codes to check if the problem is fixed.

@GrumpyChubbyCat
Copy link
Author

GrumpyChubbyCat commented Aug 8, 2024

@GrumpyChubbyCat try to use the master branch codes to check if the problem is fixed.

Stream successfully published using the command above! Thank you!

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

Successfully merging a pull request may close this issue.

2 participants