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

Windows cmd's hang/don't close on hooks #3980

Open
yelodevopsi opened this issue Nov 26, 2024 · 0 comments
Open

Windows cmd's hang/don't close on hooks #3980

yelodevopsi opened this issue Nov 26, 2024 · 0 comments

Comments

@yelodevopsi
Copy link

Which version are you using?

v1.9.3

Which operating system are you using?

Windows amd64 standard

Describe how to replicate the issue

  1. Setup the mediamtx.yml with a hook-stream like e.g:
paths:
  TEST:
    runOnDemand: gst-launch-1.0 videotestsrc is-live=true ! x264enc tune=zerolatency key-int-max=30 ! rtspclientsink name=sink location=rtsp://localhost:$RTSP_PORT/$MTX_PATH
  1. Play it with http://localhost:8889/TEST
  2. Stop it. See the terminal output that the process is not closed. (gst-launch-1.0 is still running).

Note:
PR coming. I've already found a fix into cmd_win.go

Server logs

2024/11/26 08:53:27 INF [WebRTC] [session b7f9df6b] peer connection established, local candidate: host/udp/10.249.0.223/8189, remote candidate: prflx/udp/10.249.0.223/55204
2024/11/26 08:53:27 INF [WebRTC] [session b7f9df6b] is reading from path 'GST-04', 1 track (H264)
Redistribute latency...
2024/11/26 08:58:16 INF [WebRTC] [session b7f9df6b] closed: terminated
2024/11/26 08:58:26 INF [path GST-04] runOnDemand command stopped: not needed by anyone

Network dump

No response

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