sipsorcery-org / sipsorcery

A WebRTC, SIP and VoIP library for C# and .NET. Designed for real-time communications apps.
https://sipsorcery-org.github.io/sipsorcery
Other
1.47k stars 442 forks source link

FFplay to RTMP #1000

Closed Confygre closed 9 months ago

Confygre commented 1 year ago

From this demo application we can view the stream using FFplay (ffplay -probesize 32 -protocol_whitelist "file,rtp,udp" -i ffplay.sdp). Is it possible to redirect the stream to RTMP url?

sipsorcery commented 9 months ago

Not with ffplay but possibly with ffmpeg.

Here's what ChatGPT gave me:

ffmpeg -i [input_stream] -c copy -f flv rtmp://[RTMP_endpoint]