Question / Help Low latency streaming

Oznerol256

New Member
Okay. Here we go. I know it must have been asked already by someone but i searched for a couple of hours now and i didnt find an answer.

Basically i want to share my screen while im playing. This is easier said than done since all classic screen capturing softwares dont work as soon as the output is hardware accelerated. I thought it would be easy by just using a livestream. While this works there is still a problem. The latency is so high (about 6 seconds) that the stream gets useless. Just imagine having 6 seconds delay in a skype conference! This would lead to 12 seconds until you get your answer.

So i began searching. I found that it is possible to stream using x264 with very low latency (http://x264dev.multimedia.cx/archives/249). I found that i should use my own server instead of twitch. I found that it may not even use OBS. However i didnt found how to make any software except open broadcaster capture directx video output. The server isnt a problem since there is a handy tutorial around here.

My question is: Is it possible to archive low latency (<1 second) with OBS? And what settings are needed to archive that?
I know i should use periodic intra refresh. But how do i enable it? I cant find any output of the encoder that may say me wheather the options i set work or not.

Hoping someone is able to answer to this
Oznerol256
 

Attachments

  • 2013-03-27-2325-02.log
    1.6 KB · Views: 221

Oznerol256

New Member
And is a log of tweaked settings. I dont know wheather they are good or bad or something. I dont even know if they were applied or some error occurred.
 

Attachments

  • 2013-03-28-0118-06.log
    16.4 KB · Views: 223

R1CH

Forum Admin
Developer
Your custom settings are in the wrong format. You should just use tune=zerolatency as this sets the other settings for you. Keep in mind that you will need to disable VBV to achieve low latency (set the buffer size to zero), so your bitrate may be quite volatile and your stream quality will certainly suffer.
 

Oznerol256

New Member
Thanks for your help.
I have set up a rtmp server using the guide on this forum. This gave me over 20 seconds delay. I found out that i have to change some settings with the nginx module. Now i have about 3 seconds delay in my stream. Im playing the stream using ffplay because VLC with rtmp-dump gives a lot of delay. I have tested tune=zerolatency but it didnt have an effect on the latency. The stream qualitiy isnt that important, i just want really low latency. Im currently testing in LAN only.
 

Attachments

  • 2013-03-28-1355-28.log
    13.2 KB · Views: 253

Raj84

New Member
Did anyone find solution why zerolatency did not help? Also can you tell me changes in nginx module to acheive 3 sec delay?
 
Top