datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.78k stars 438 forks source link

Restreamer's provided SRT address incompatible with OBS when special characters are used #752

Open kyelewis opened 4 months ago

kyelewis commented 4 months ago

When setting up a new video channel with an SRT source, the SRT URL provided to copy in restreamer will not work in OBS if there are some special characters.

Example with passphrase "def456@"

Restreamer provides: srt://192.168.0.1:6000?mode=caller&transtype=live&streamid=1bc02834-4604-438c-924c-f3de259887bc.stream,mode:publish,token:abc123&passphrase=def456%40

OBS requires: srt://192.168.0.1:6000?mode=caller&transtype=live&streamid=1bc02834-4604-438c-924c-f3de259887bc.stream,mode:publish,token:abc123&passphrase=def456@

kyelewis commented 4 months ago

(Open to discussion whether the restreamer or OBS behaviour is incorrect here, but worth discussing)

ioppermann commented 4 months ago

This is indeed worth discussing. The SRT URL uses the query syntax to transport values for options. This should allow character encoding and should be decoded by OBS.