Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
11.55k
stars
1.46k
forks
source link
[WebRTC] Gstreamer sample code not working, server never gets the stream. #3573
Which version are you using?
v1.8.4
Which operating system are you using?
Describe the issue
The gstreamer command cannot properly stream video to the server. The log shows nothing publishing to the server.
Describe how to replicate the issue
gst-launch-1.0 videotestsrc \ ! video/x-raw,width=1920,height=1080,format=I420 \ ! x264enc speed-preset=ultrafast bitrate=2000 \ ! video/x-h264,profile=baseline \ ! whipclientsink signaller::whip-endpoint=http://localhost:8889/mystream/whip
Did you attach the server logs?
yes. 2024/07/24 19:43:56 INF MediaMTX v1.8.4 2024/07/24 19:43:56 INF configuration loaded from C:\Users\xwh\Projects\mediamtx_v1.8.4_windows_amd64\mediamtx.yml 2024/07/24 19:43:56 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP) 2024/07/24 19:43:56 INF [RTMP] listener opened on :1935 2024/07/24 19:43:56 INF [HLS] listener opened on :8888 2024/07/24 19:43:56 INF [WebRTC] listener opened on :8889 (HTTP), :8189 (ICE/UDP) 2024/07/24 19:43:56 INF [SRT] listener opened on :8890 (UDP)
Nothing happened.
Did you attach a network dump?
no. I tested on localhost.