bluenviron / mediamtx

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.94k stars 1.5k forks source link

When I was having gst-launch-1.0 send an rtspclient stream to simple-rtsp-server,I can't play it using gst-launch-1.0 #358

Closed javyxu closed 2 years ago

javyxu commented 3 years ago

Which version are you using?

v0.15.5

Which operating system are you using?

OS

ubuntu 18.04 gststreamer 1.14.5

Architecture

Describe the issue

Hello, I made the following configuration according to the documentation:

cam:
    runOnInit: gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/5E protocols=tcp ! rtph264depay ! h264parse ! avdec_h264 ! autovideoconvert ! rtspclientsink location=rtsp://127.0.0.1:8554/test protocols=tcp
    runOnInitRestart: yes

then start the service,and output the following information

image

Next, I use the gst-launch-1.0 playbin uri=rtsp://127.0.0.1:8554/test can't play video properly,but to use gst-launch-1.0 playbin uri=rtsp://127.0.0.1:8554/5E is normal。

Do you have a good solution, thank you !!!

aler9 commented 3 years ago

Hello, the pipeline seems good to me, what's the console output of gst-launch?

javyxu commented 3 years ago

Hello, this is the output information of gST-launch, which will always be stuck here image

When I modify the parameters readBufferSize: 10240 and readBufferCount: 2560, the screen will be broadcast, but it is like this, the connection will fail when using WebRTC to broadcast.

image