Viewed stream skips ahead 15-45 seconds randomly

Tloc

New Member
I recently had to setup a new streaming computer to stream content to youtube. I tested some recordings and streams and they all looked okay, but while reviewing the recording on youtube, there are some spots where the recording skips ahead 15-45 seconds. I'm using an i5-14500T, with 32gb of ram, dedicated 2gig business internet, wired ethernet to the desktop, and ingesting 1080p HDMI input from an avermedia live gamer ultra and using OBS to stream that capture to youtube. After running numerous tests and analyzing the recordings, I have determined that this only occurs when I have the intel QSV HEVC codec selected. Switching to H.264 prevents this from occuring. Is anyone aware of what may be causing that issue?
 

Attachments

  • 2025-02-26 09-21-05.txt
    35.4 KB · Views: 5

rockbottom

Active Member
Use a faster Preset, like TU3 or TU4. Your internet connection is lame, bad cable, driver or something else. More dropped frames than encoding lag.

09:25:53.722: [rtmp stream: 'adv_stream'] Interface: Intel(R) Ethernet Connection (17) I219-LM (ethernet, 100↓/100↑ mbps)
09:25:53.834: [rtmp stream: 'adv_stream'] Connection to rtmps://a.rtmps.youtube.com:443/live2 (142.251.32.12) successful
09:25:53.835: [rtmp stream: 'adv_stream'] Socket send buffer is 65536 bytes
09:25:53.846: ==== Streaming Start ===============================================
10:29:26.581: WriteN, RTMP send error 10060 (2981 bytes)
10:29:29.002: WriteN, RTMP send error 10038 (59 bytes)
10:29:29.002: WriteN, RTMP send error 10038 (42 bytes)
10:29:29.002: [rtmp stream: 'adv_stream'] Disconnected from rtmps://a.rtmps.youtube.com:443/live2
10:29:29.002: Output 'adv_stream': stopping
10:29:29.002: Output 'adv_stream': Total frames output: 227907 (228892 attempted)
10:29:29.002: Output 'adv_stream': Total drawn frames: 228919
10:29:29.002: Output 'adv_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 985 (0.4%)
10:29:29.002: Output 'adv_stream': Reconnecting in 2.00 seconds..
10:29:29.003: [rtmp stream: 'adv_stream'] Freeing 876 remaining packets
10:29:29.003: Video stopped, number of skipped frames due to encoding lag: 33/228908 (0.0%)
 

rockbottom

Active Member
I was test streaming H265 with my UHD 770 the other day. Using these settings my encoder was 45% utilized. H264 is uses roughly half.

:12:57.090: codec: HEVC
17:12:57.090: rate_control: CBR
17:12:57.090: target_bitrate: 8200
17:12:57.090: Lookahead Depth:60
17:12:57.090: target_usage: TU3
17:12:57.090: profile: main
17:12:57.090: keyint: 2
17:12:57.090: latency: normal
17:12:57.090: b-frames: 2
17:12:57.090: fps_num: 60
17:12:57.090: fps_den: 1
17:12:57.090: width: 1920
17:12:57.090: height: 1080
17:12:57.090: [qsv encoder: 'rtsp_output_video'] debug info:
17:12:57.195: surf: Texture
17:12:57.410: m_nSurfNum: 11
17:12:57.432: m_nTaskPool: 4
17:12:57.432: major: 2
17:12:57.432: minor: 13
 

rockbottom

Active Member
Is that a Dell? Your driver looks like it's stale, released in late 2023 from what I can find. An update is in order. If it is a Dell, check their support page. No Windows driver on the Intel CPU page.
Driver Version: 31.0.101.4953


This is the latest driver from Intel but I don't see your CPU on the support list.
 

Tloc

New Member
Hahahaha, i forgot my phone passthrough is only fast ethernet. But this still happened on gigabit. I totally missed this video driver, and IDK how because I had updated everything else on this machine. I'll get that updated and try again! Thank you!
 

rockbottom

Active Member
If you see the below after you switch over, check for a NIC driver update too. These errors are generally caused by the driver (Default EEE settings).

10:29:26.581: WriteN, RTMP send error 10060 (2981 bytes)
10:29:29.002: WriteN, RTMP send error 10038 (59 bytes)
10:29:29.002: WriteN, RTMP send error 10038 (42 bytes)
 
Last edited:

rockbottom

Active Member
There was (4) encoding sessions in that log. (2) of them had the WriteN errors, (1) with dropped frames, (1) failed.

The (2) streams with no WriteN errors were A-OK, no dropped frames.
 

Tloc

New Member
Got video and network driver updated, also went into the ethernet settings and disabled EEE. I set my settings to match your previous post, and am attempting another stream.

Do you know how well RTMP streams handle packet inspection and SSL decryption? I'm wondering if I need to put this machine into a bypass rule as well.
 

Tloc

New Member
Its not a CDN, just local security appliances. But with QSV HEVC, my stream is sitting at an hour and 23 minutes, without a single hiccup, so its looking like the driver updates and minor settings tweaks really helped! Thank you again!
 
Top