revmischa / rtsp-server

Lightweight RTSP/RTP streaming media server
https://metacpan.org/release/RTSP-Server
427 stars 111 forks source link

Does the server supports RTP over TCP ? #14

Open orenxperitos opened 7 years ago

orenxperitos commented 7 years ago

Hi revmischa.

I wanted to know if the server currently supports receiving streams over TCP.

If the answer is yes, how can i test it ?

revmischa commented 7 years ago

It only listens on UDP for RTP packets https://github.com/revmischa/rtsp-server/blob/master/lib/RTSP/Server/RTPListener.pm

orenxperitos commented 7 years ago

OK.. Is there an easy way to make it listen on TCP port instead ? Maybe to change just a few parameters ?

revmischa commented 7 years ago

Try changing RTPListener

revmischa commented 7 years ago

May I ask what your use case is for doing RTP over TCP? That is not standard. Is it NAT traversal?

orenxperitos commented 7 years ago

Its for recording an audio stream on a recording server, so it has to be loosless. But for now, i don't have the server yet, so i've done the testing on your server...

I found that DSS should suport this, so i'm testing it now...

2017-02-05 1:33 GMT+02:00 Mischa Spiegelmock notifications@github.com:

May I ask what your use case is for doing RTP over TCP? That is not standard. Is it NAT traversal?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/revmischa/rtsp-server/issues/14#issuecomment-277486033, or mute the thread https://github.com/notifications/unsubscribe-auth/AH1jaqtHpUIFVdKT-5XI8fxbqv6DSwTfks5rZQrRgaJpZM4LzMPf .

-- בברכה, אורן אברהם אקספריטוס בע"מ.

kzkysdjpn commented 7 years ago

Hello revmischa.

I tried to implement RTSP over RTP. https://github.com/kzkysdjpn/rtsp-server.git

This code is tested under ffmpeg RTSP interleaved mode. ./ffmpeg -re -loglevel debug -i BigBuckBunny.mp4 -vcodec copy -acodec copy -sn -f rtsp -rtsp_transport tcp rtsp://localhost:5545/live

Thanks.

Kazuki Yoshida

revmischa commented 7 years ago

Very cool! Send a pull request?