My stream freezes every 5 seconds. I can see everything perfect but then after 10 seconds it freezes again. Only while streaming. When I close streaming and it is uploaded, I can see the video perfectly.
OBS (Open Broadcaster Software) is free and open source software for video recording and live streaming. Stream to Twitch, YouTube and many other providers or record your own videos with high quality H264 / AAC encoding.
Make sure your GPU driver is up to date.
Check your home network or your ISP network. May be an issue on the connection.
To test your intenert connection against twitch servers use this tool: