Lags Streaming 4K HDR 10 Bits With 2 Gbps Optic Fiber Connection up until the PC (SFP+ Card) on Youtube

Lags Streaming With 2 Gbps Optic Fiber Connection up until the PC (SFP+ Card) by streaming 4K HDR Content to Youtube as soon as going over 20 000 Kbs with OBS while no issues at all with the same settings for recording :
Preset : P1 Fastest
Tuning : High Quality
MultiPass Mode : Single Pass
Profile : Main 10
Psycho Visual Tuning : Checked.
The Max Bitrate are noted as 51 000 kbps so why over only 20 000 kbps it produces lags ?
Again, the issue doesen t come from OBS because with the recording it s possible to go beyond these settings with absoluetly no issue.
So their 51 000 kbps are apparently fake advertising and misleading informations......

Does Anyone Manage to Stream 4K HDR over 20 000 kbps without lags ?

RIG :
Nvidia EVGA RTX 2080 Ti
Intel i9900K
Kingston Fury 32 GB 2666 MHz
2 Gbps Internet Optic Fiber Connection
SFP+ On Motherboard Card 10G+ Optic Fiber.

__ACI XCIX-0001.
 
OK No one answer, a previous e mail banned for nothing, what s up here ????
How to reach out someone who have an answer even if it s an open source project ????
 

sandrix

Member
Internet connection speed means almost nothing. The final CDN server where you stream can be located very far from you. Therefore, while the stream reaches the server, anything can happen to it. For example, 2 screenshots. 1. the user just measured the speed on speedtest 2. He specified a server in Germany. These are the real figures.
scale_1200
scale_1200

YouTube doesn't cheat and I can stream at 60Mbps via RTMP if I wanted to.

For HDR you should use the HLS protocol, this is a requirement. Transmission through this protocol is quite complicated and you need a very stable Internet.

For many users, frame drops start at 13000 kbps when using HLS. The whole solution one way or another comes down to calling the technical department of the Internet provider or changing it.
 
Last edited:
OK Thank for your very detailled answer !
I m obsiously using the HLS because if not I couldn t stream anything but, good thing that you asked if I were using the HLS protocol because as you said very well, this a requirement for HDR.

OK Got it about the server distance and potential processes appllied to it.
Thank to you also becaue you provided not only an answer but also a solution.

A bit disturbing though, because even if the server are far or some strange process are apllied to the data in route, just check out the speed test result......



Even ifthere were some distance or process.... 60 Mbps of data should reach the server no issue......
What s your opinion about that ?

OK Go it.....

But do you think that there are no YouTube Server in Europe ?
And there is more than just 60 Mpbs anyway even to Los Angeles or San Francisco ?
 
Last edited:

TryHD

Member
YouTube doesn't cheat and I can stream at 60Mbps via RTMP if I wanted to.

For HDR you should use the HLS protocol, this is a requirement. Transmission through this protocol is quite complicated and you need a very stable Internet.

For many users, frame drops start at 13000 kbps when using HLS. The whole solution one way or another comes down to calling the technical department of the Internet provider or changing it.
I did some testing and that is actually not a HLS problem but a ffmpeg on windows problem (OBS uses ffmpeg for hls). You can reproduce that very easy. Record your video at 50 mbps and stream it to youtube via HLS with this command
Code:
ffmpeg.exe -hide_banner -re -i .\file.mkv -c:v copy -c:a copy -hls_time 2 -hls_list_size 4 -http_persistent 1 -method POST 'https://a.upload.youtube.com/http_upload_hls?cid=${STREAMKEY}&copy=0&file=master.m3u8'
You will notice that it will not upload with the full bitrate of the video.
Do the same with WSL on the same computer and it does work without a problem.

This is a bug or bottleneck in ffmpeg on windows and OBS suffers from it.
 

sandrix

Member
I do not rule out that there are problems with HLS in OBS, these are private phenomena. In my experience, it is users who are far from the potential location to the server that have problems. As I stated earlier, many people report dropping frames at 13000 kbps when using HLS. Even if the user has the most expensive plan, it doesn't matter. I have a video on setting up OBS to stream on youtube via NVENC HEVC so I get feedback from viewers and see a pattern.

These are just observations based on my experience.

Personally, I live in Europe, my internet is 100 Mbps and everything works flawlessly.
1667593712012.png
 

sandrix

Member
Try switching back to using RTMP and test different speed options. You just need to understand what the problem is. In OBS, your network equipment (we do not exclude), in the Internet provider. After that, make decisions. Maybe you should just use RTMP with SDR (Standard Dynamic Range) or contact your Internet Service Provider.

P.S. I myself would like to understand why HLS works so poorly for some users, unlike RTMP, but I have not found anything concrete.
 
Last edited:
OK, Thank @TryHD for this detailled answer. Go it, Maybe it s the bottleneck imposed by ffmpeg on windows during streamin in HLS protocol since you ve made the test and as you noticedeven if the video is prerecorded no issue with the linux emulator (Windows Subsystem for Linux WSL) on the same PC.
But anyway strange that ffmpeg bottlneck so much of the connection. Isn t nothing plan by the developper to passthrough this limitations ?

Thank for your answer @sandrix as well.
But very strange behavior because when set to 20 Mpbs for instance the stats are report 21 Mpbs, the lags frame drops are less than 1%, and absoluetly no issue reported by the you tube strem preview stats.

Also, does one of you 2 or someone else knows why just when recording with OBS in 4K HDR [CBR 40 Mpbs Preset 1 (Fastest) Tuning High Quality Single Pass Main10] there are lags and stutters while on the opposite with Nvidia ShadowPlay No issues at all with the same settings ??
 

Attachments

  • Screenshot 2022-11-04 231405.png
    Screenshot 2022-11-04 231405.png
    46.7 KB · Views: 34
  • Screenshot 2022-11-04 231423.png
    Screenshot 2022-11-04 231423.png
    101 KB · Views: 35
  • Screenshot 2022-11-04 231440.png
    Screenshot 2022-11-04 231440.png
    78.3 KB · Views: 34
  • Screenshot 2022-11-04 232020.png
    Screenshot 2022-11-04 232020.png
    92.5 KB · Views: 29
  • Screenshot 2022-11-04 232106.png
    Screenshot 2022-11-04 232106.png
    106.3 KB · Views: 28
  • Screenshot 2022-11-04 232120.png
    Screenshot 2022-11-04 232120.png
    95.1 KB · Views: 29

PaiSand

Active Member
Don't use CBR for recording. Instead use CQP setting the CQ level between 23 and 15 (lower better quality).
Do not ignore streaming service settings recommendations.
Streaming at 20mbps and using P1 is kind of pointless, look for a P4 / P6. You still can try streaming at 2k.

To get better results on 4k you need a new computer. AMD just announced it's new GPU that looks perfect for what you want. But still you need newer cpu, motherboard and ram.
And remember, the vast majority of your audience won't even get a 2k screen anytime soon. At this point in time, technology has gotten a long way from what people can actually buy.
 

PaiSand

Active Member
Thank for your answer !
OK I ll try CQP. But for Real to Stream 4K HDR 10 Bits you need a 4090 TI ??
Or just stream and not record freeing the precious resources to be used excusive by the stream process. As I said, you have a better option than the 4090. Eventually you'll end up on a bottleneck like now.
 
Top