'RTMP_Connect1, handshake failed. Error while using rtmp command via FFmpeg

when I try to stream using rtmp protocol via ffmpeg with the following command:

ffmpeg -stream_loop -1 -re -i "video.mp4" -c:v copy -c:a aac -ar 44100 -ac 1 -f flv rtmps://dc5-1.rtmp.t.me/s/1520759423:xxxx

I get the following error:

RTMP_Connect1, handshake failed. rtmps://dc5-1.rtmp.t.me/s/1520759423:xxxx: Unknown error occurred

I am sure its not the client side error where I am trying to stream, and its not my network/IP related error because this same command is working via windows on the same network. When I switched to linux(Fedora 35) I started facing this issue.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source