HLS streaming on Youtube not working; network frames being lost

Frunobulax

New Member
So, I have this weird situation.

RTMPS streams for Youtube work flawlessly (250mbps upload, stream set to 9500kbps), but when I change the configuration to HLS, it just doesn't work. OBS informs network frames being lost at 90%+ - rendering/encoding is unaffected. I have even tried opening the firewall in my router, setting the PC's connection as the DMZ and whatnot. Pinging and tracing a.upload.youtube.com works just fine as well.

I have tried lowering the bitrate as shown in the log below, updating from 30.0 to the current beta, but no dice. I have tried using different encoder configurations.

In the log file provided, 00:39:14.973 logs an attempt with NVENC, and 00:44:11.795 uses FFmpeg (CPU) for example.

In Wireshark I can see a RST every couple of seconds, but I'm not sure if it's a red herring, really - not acquainted with HLS to discern.

1708401968323.png


As far as I know my ISP didn't block anything in particular in my connection. More likely candidates for blocking such as SSH work just fine, and I run another machine as a server here sometimes, and I can access it.

Does anyone have an idea on what it could be?
 

Attachments

  • 2024-02-20 00-23-41.txt
    117.4 KB · Views: 21

sandrix

Member
HLS works quite complexly. You send short video segments, approximately 2 seconds long. Therefore, you need a very good and stable Internet. It also all depends on the CDN server and how far it is from you. You're probably a little unlucky.
 

Frunobulax

New Member
I see. The connection here is fiber, and I've yet to find (any other) issue with it.

Ping shows good numbers:

1708432844222.png


And this is the traceroute:

1708432954732.png


This is pretty puzzling...

But yeah, I can keep using RTMP for now since it's working nice.
 

sandrix

Member
In my country, the HLS protocol works fine only in the central region. Users who live behind it report network drops. Fortunately, YouTube has an enhanced RTMP protocol, so there is no point in using HLS anymore. You have good data. Probably something to do with the Youtube server infrastructure. I find it difficult to answer.
 

Frunobulax

New Member
I more or less "figured out" and """fixed""" what was happening.

The other day I noticed a completely different application failing to fetch some JSON data. I dug into it with Wireshark, because if I take the exact address it was trying to fetch... It opened just fine on Firefox.

Apparently, the TLS handshake was failing to negotiate, or something related to that. Then I tried using the application on a Linux installation, and it worked just fine too - so it wasn't a network thing. I'm betting that it's the same issue I had with HLS.

I tried a bunch of things, everything I could find somewhat related to TLS, but nothing worked. I hadn't ever changed anything in Windows' TLS stuff in the first place.

Then I formatted my installation, and voilà. HLS working just fine.
 

koala

Active Member
May be you used a virus scanner with faulty ssl inspection that is gone after your Windows reinstall. I don't know the current state of https inspection today, but the last time I investigated it was not really stable - it was optimized for web browsing (requesting many connections with not much data each) instead of streaming (one connection and a long continuous data stream, resulting in much higher bandwidth than with the web browsing scenario).
 

nazoren

New Member
Hello everyone,
hope this message finds you well...
I've been suffering from the same problem.
HLS is especially important for us to do 10-bit HDR 4K in 4:2:0 as Nvidia guide describes it for youtube below:
We have few other fellas with rtx 4090 going thru the same problem... May be your fix would take care of this?
Wrote to the forums here and Reddit, also sent support request to Nvidia.
Having 10 and 12 bit HDR 6K cameras with 60-120 frames, special lenses with f/1.2 , high end PC and gbit network total of $10K + budget and none of it is in use now.
Stuck with 8 bit h264, pretty bad pixelation and artifacts due to low light and fast movements.
When HLS works for few seconds, teasing us with such a higher quality, 10-bit H265 4k with 4:2:2 depth just really a shame
And it is really not a big task, no big load to the system, cpu, gpu , ram, none goes over 30%
Good old h264 can stream up to 25-50 mbps but HLS drops the ball over 7-8 mbps
Below is the story, would appreciate any help, will try to format the installation and try the same as Frunobulax
Would really appreciate any advice and help...
We are even ready to offer a consultation or service fee to anyone wants to give it a shot to help us fix this...
Thank you !
 

nazoren

New Member
Nvidia responded starting with basic questions, let's see how it goes...
Meanwhile Youtube is giving an option to use RTMPS to send 10-bit HDR to match with what HLS has to offer:
SInce RTMPS works solid, this should work, will test in few hours and find out:
 

nazoren

New Member
I more or less "figured out" and """fixed""" what was happening.

The other day I noticed a completely different application failing to fetch some JSON data. I dug into it with Wireshark, because if I take the exact address it was trying to fetch... It opened just fine on Firefox.

Apparently, the TLS handshake was failing to negotiate, or something related to that. Then I tried using the application on a Linux installation, and it worked just fine too - so it wasn't a network thing. I'm betting that it's the same issue I had with HLS.

I tried a bunch of things, everything I could find somewhat related to TLS, but nothing worked. I hadn't ever changed anything in Windows' TLS stuff in the first place.

Then I formatted my installation, and voilà. HLS working just fine.
Did you format the whole computer or just OBS and drivers etc?
 
Top