Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

rtspsrc not working when using protocols=tcp and feeding from a cellphone app

I’m trying to use my cell phone as an RTSP server and my PC as the client. So for the cell phone, I’m using the RTSP Camera Server android app and on the PC I tried this command:

gst-launch-1.0.exe rtspsrc protocols=tcp location=rtsp://IP:Port/camera latency=100 ! queue ! decodebin ! autovideosink

After running this command the output is stuck in "Progress: (request) Sent PLAY request" state without showing any frames:
enter image description here

If I change the protocols to UDP or delete that argument, then it works:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

gst-launch-1.0.exe rtspsrc protocols=udp location=rtsp://IP:Port/camera latency=100 ! queue ! decodebin ! autovideosink

However, I need it to be TCP since I’m going to use the pipeline inside a docker.
Any idea about this problem?

>Solution :

Maybe your App doesn’t support RTSP over TCP. Please try another app like VXG RTSP Server

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading