kaltura / nginx-srt-module

Nginx SRT/TCP gateway
GNU Affero General Public License v3.0
82 stars 15 forks source link

SRT to RTMP? #23

Open irlkitcom opened 1 year ago

irlkitcom commented 1 year ago

Is it possible to convert SRT to RTMP? Especially handling HEVC to H.264.

erankor commented 1 year ago

this module handles only the transport layer (SRT/TCP), it does not parse any higher level protocols (like mpeg-ts)

winlinvip commented 11 months ago

See this guide, convert SRT to RTMP

streamingsystems commented 7 months ago

Hi,

I am looking to convert the inbound SRT to RTMP.

Instead of sending this data upstream to the media-framework can I just use this server to receive the SRT via nginx (using this module) and then call ffmpeg (externally) to connect and read in the data and then output to RTMP?

Or, does this module strictly take the SRT and send it upstream as TCP? Possibly I can have a TCP listener on nginx and use ffmpeg to connect to that?

We have some reasons that we want to use ffmpeg to convert but would like to use nginx as a server to receive the inbound SRT.

Thanks!

erankor commented 7 months ago

This module does not support connecting 2 incoming connections, there's always one incoming connection (e.g. SRT) and one outgoing connection (e.g. TCP). You may be able to start ffmpeg in listen mode, and have nginx connect to that.