Question / Help My streaming freezes

MATiASc

New Member
Hi, I need some help

My transmission in Twitch freezes the image (as if it were playing at 1 FPS) when I use the "Software x264" Encoder, but when I use the "Hardware (NVENC)" Encoder the transmission is great, the only problem with the latter is the quality of the transmission is very bad even if I upload the video bitrate, that's why I want to use the "Software x264" Encoder instead of the other, this happens to me with OBS Studio and with the Classic version, I already tried several But the problem persists.

My PC specs:

Motherboard:

ASRock z97 Pro4
Processor:
Intel i5 4690k @ 4.50GHz + CoolerMaster 212 Evo
Memory:
Corsair Vengeance Pro Red DDR3 16GB @ 2400Mhz
Graphic Card:
Zotac GTX 970 AMP! Extreme Edition
Storage:
SSD Zotac T400 120GB Read 550MB/S Write 450MB/S + WD Caviar Blue 1TB
PSU:
NZXT HALE82 V2 700w 80+


From already thank you very much.

Regards.!

PS: Sorry for my English, I'm using an online translator.
 
Last edited:

MATiASc

New Member
This shows the transmission

The game runs well and has no fps losses

https://www.twitch.tv/videos/166512079


19:09:07.441: CPU Name: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
19:09:07.441: CPU Speed: 3502MHz
19:09:07.441: Physical Cores: 4, Logical Cores: 4
19:09:07.441: Physical Memory: 16334MB Total, 12856MB Free
19:09:07.441: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
19:09:07.442: Running as administrator: false
19:09:07.442: Aero is Enabled (Aero is always on for windows 8 and above)
19:09:07.442: Portable mode: false
19:09:07.451: OBS 20.0.1 (64bit, windows)
19:09:07.451: ---------------------------------
19:09:07.451: ---------------------------------
19:09:07.451: audio settings reset:
19:09:07.451: samples per sec: 44100
19:09:07.451: speakers: 2
19:09:07.452: ---------------------------------
19:09:07.452: Initializing D3D11...
19:09:07.452: Available Video Adapters:
19:09:07.453: Adapter 1: NVIDIA GeForce GTX 970
19:09:07.453: Dedicated VRAM: 4255711232
19:09:07.453: Shared VRAM: 4269262848
19:09:07.453: output 1: pos={0, 0}, size={1920, 1080}, attached=true
19:09:07.454: Loading up D3D11 on adapter NVIDIA GeForce GTX 970 (0)
19:09:07.935: D3D11 loaded successfully, feature level used: 45056
19:09:08.511: ---------------------------------
19:09:08.511: video settings reset:
19:09:08.511: base resolution: 1920x1080
19:09:08.511: output resolution: 1920x1080
19:09:08.511: downscale filter: Bicubic
19:09:08.511: fps: 60/1
19:09:08.511: format: NV12
19:09:08.513: Audio monitoring device:
19:09:08.513: name: Por defecto
19:09:08.513: id: default
19:09:08.513: ---------------------------------
19:09:08.514: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
19:09:08.515: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
19:09:08.515: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
19:09:08.516: Failed to initialize module 'enc-amf.dll'
19:09:08.521: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
19:09:08.521: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
19:09:08.521: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
19:09:08.522: Failed to load 'en-US' text for module: 'obs-browser.dll'
19:09:08.522: [browser_source: 'Version: 1.29.0']
19:09:08.524: NVENC supported
19:09:08.551: Couldn't find VLC installation, VLC video source disabled
19:09:08.557: No blackmagic support
19:09:08.592: ---------------------------------
19:09:08.592: Loaded Modules:
19:09:08.592: win-wasapi.dll
19:09:08.592: win-mf.dll
19:09:08.592: win-dshow.dll
19:09:08.592: win-decklink.dll
19:09:08.592: win-capture.dll
19:09:08.592: vlc-video.dll
19:09:08.592: text-freetype2.dll
19:09:08.592: rtmp-services.dll
19:09:08.592: obs-x264.dll
19:09:08.592: obs-vst.dll
19:09:08.592: obs-transitions.dll
19:09:08.592: obs-text.dll
19:09:08.592: obs-qsv11.dll
19:09:08.592: obs-outputs.dll
19:09:08.592: obs-filters.dll
19:09:08.592: obs-ffmpeg.dll
19:09:08.592: obs-browser.dll
19:09:08.592: image-source.dll
19:09:08.592: frontend-tools.dll
19:09:08.592: enc-amf.dll
19:09:08.592: coreaudio-encoder.dll
19:09:08.592: ---------------------------------
19:09:08.592: ==== Startup complete ===============================================
19:09:08.594: All scene data cleared
19:09:08.594: ------------------------------------------------
19:09:08.616: WASAPI: Device 'Sennheiser PC-350 (Realtek High Definition Audio)' initialized
19:09:08.623: WASAPI: Device 'Micrófono (Realtek High Definition Audio)' initialized
19:09:08.664: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
19:09:11.795: Switched to scene 'Escena'
19:09:11.795: [game-capture: 'Counter-Strike: Global Offensive'] attempting to hook process: csgo.exe
19:09:11.797: [game-capture: 'Counter-Strike: Global Offensive'] using helper (compatibility hook)
19:09:11.800: [game-capture: 'Counter-Strike: Global Offensive'] hook not loaded yet, retrying..
19:09:11.800: ------------------------------------------------
19:09:11.800: Loaded scenes:
19:09:11.800: - scene 'Escena':
19:09:11.800: - source: 'Counter-Strike: Global Offensive' (game_capture)
19:09:11.800: ------------------------------------------------
19:09:13.797: [game-capture: 'Counter-Strike: Global Offensive'] attempting to hook process: csgo.exe
19:09:15.830: [game-capture: 'Counter-Strike: Global Offensive'] capture stopped
19:09:17.813: [game-capture: 'Counter-Strike: Global Offensive'] attempting to hook process: csgo.exe
19:09:17.830: [game-capture: 'Counter-Strike: Global Offensive'] capture stopped
19:09:21.831: [game-capture: 'Counter-Strike: Global Offensive'] attempting to hook process: csgo.exe
19:09:21.846: [game-capture: 'Counter-Strike: Global Offensive'] capture stopped
19:09:24.132: ---------------------------------
19:09:24.132: [x264 encoder: 'simple_h264_stream'] preset: veryfast
19:09:24.132: [x264 encoder: 'simple_h264_stream'] settings:
19:09:24.132: rate_control: CBR
19:09:24.132: bitrate: 2884
19:09:24.132: buffer size: 2884
19:09:24.132: crf: 0
19:09:24.132: fps_num: 60
19:09:24.132: fps_den: 1
19:09:24.132: width: 1920
19:09:24.132: height: 1080
19:09:24.132: keyint: 120
19:09:24.132:
19:09:24.132: [x264 encoder: 'simple_h264_stream'] custom settings: scenecut=0
19:09:24.135: [Media Foundation AAC: 'simple_aac']: encoder created
19:09:24.135: bitrate: 160
19:09:24.135: channels: 2
19:09:24.135: sample rate: 44100
19:09:24.135: bits-per-sample: 16
19:09:24.135:
19:09:24.135: Output 'simple_stream': 30 second delay active, preserve on disconnect is on
19:09:25.846: [game-capture: 'Counter-Strike: Global Offensive'] attempting to hook process: csgo.exe
19:09:25.863: [game-capture: 'Counter-Strike: Global Offensive'] capture stopped
19:09:29.863: [game-capture: 'Counter-Strike: Global Offensive'] attempting to hook process: csgo.exe
19:09:29.880: [game-capture: 'Counter-Strike: Global Offensive'] shared texture capture successful
19:09:54.136: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://live-sao.twitch.tv/app...
19:09:54.196: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I218-V (ethernet, 1000 mbps)
19:09:56.352: [rtmp stream: 'simple_stream'] Connection to rtmp://live-sao.twitch.tv/app successful
19:09:56.353: ==== Streaming Start ===============================================
19:13:25.908: [game-capture: 'Counter-Strike: Global Offensive'] d3d9 shared texture capture successful
19:13:25.913: [game-capture: 'Counter-Strike: Global Offensive'] shared texture capture successful
19:13:31.032: [game-capture: 'Counter-Strike: Global Offensive'] ----------------- d3d9 capture freed -----------------
19:13:32.669: [game-capture: 'Counter-Strike: Global Offensive'] d3d9 shared texture capture successful
19:13:32.680: [game-capture: 'Counter-Strike: Global Offensive'] shared texture capture successful
19:15:19.305: ---------------------------------
19:15:19.305: [NVENC encoder: 'simple_h264_recording'] settings:
19:15:19.305: rate_control: CQP
19:15:19.305: bitrate: 0
19:15:19.305: cqp: 23
19:15:19.305: keyint: 250
19:15:19.305: preset: hq
19:15:19.305: profile: high
19:15:19.305: level: auto
19:15:19.305: width: 1920
19:15:19.305: height: 1080
19:15:19.305: 2-pass: true
19:15:19.305: b-frames: 2
19:15:19.305: GPU: 0
19:15:19.305:
19:15:19.667: [Media Foundation AAC: 'simple_aac_recording']: encoder created
19:15:19.667: bitrate: 128
19:15:19.667: channels: 2
19:15:19.667: sample rate: 44100
19:15:19.667: bits-per-sample: 16
19:15:19.667:
19:15:19.693: ==== Recording Start ===============================================
19:15:19.693: [ffmpeg muxer: 'simple_file_output'] Writing file 'C:/Users/Matías/Videos/2017-08-12 19-15-19.flv'...
19:15:21.607: [ffmpeg muxer: 'simple_file_output'] Output of file 'C:/Users/Matías/Videos/2017-08-12 19-15-19.flv' stopped
19:15:21.607: Output 'simple_file_output': stopping
19:15:21.607: Output 'simple_file_output': Total frames output: 83
19:15:21.607: Output 'simple_file_output': Total drawn frames: 115
19:15:21.608: ==== Recording Stop ================================================
19:15:24.321: Output 'simple_stream': stopping
19:15:24.321: Output 'simple_stream': Total frames output: 19145
19:15:24.321: Output 'simple_stream': Total drawn frames: 19802 (19811 attempted)
19:15:24.321: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 9 (0.0%)
19:15:24.321: Video stopped, number of skipped frames due to encoding lag: 12103/21611 (56.0%)
19:15:24.323: ==== Streaming Stop ================================================
19:15:24.323: [rtmp stream: 'simple_stream'] User stopped the stream
19:15:24.332: ==== Streaming Stop ================================================
 
no way this cpu will stream 1080p60
19:15:24.321: Video stopped, number of skipped frames due to encoding lag: 12103/21611 (56.0%)
you have lost more than half of stream
you can try 720p60@6000 with x264 and monitor cpu load
 

MATiASc

New Member
The problem persists, before reinstalling Windows could transmit to 1080p @ 60FPS without problems, the only thing I did was reinstall Windows and change the monitor of a LG IPS 60Hz 1080p to a AOC TN 144Hz 1080p

I leave a new LOG

12:29:18.436: CPU Name: Intel(R) Core(TM) i5-4690K CPU @ 3.50GHz
12:29:18.436: CPU Speed: 3502MHz
12:29:18.436: Physical Cores: 4, Logical Cores: 4
12:29:18.436: Physical Memory: 16334MB Total, 12052MB Free
12:29:18.436: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
12:29:18.436: Running as administrator: false
12:29:18.436: Aero is Enabled (Aero is always on for windows 8 and above)
12:29:18.438: Portable mode: false
12:29:18.470: OBS 20.0.1 (64bit, windows)
12:29:18.470: ---------------------------------
12:29:18.471: ---------------------------------
12:29:18.471: audio settings reset:
12:29:18.471: samples per sec: 44100
12:29:18.471: speakers: 2
12:29:18.478: ---------------------------------
12:29:18.478: Initializing D3D11...
12:29:18.478: Available Video Adapters:
12:29:18.479: Adapter 1: NVIDIA GeForce GTX 970
12:29:18.479: Dedicated VRAM: 4255711232
12:29:18.479: Shared VRAM: 4269262848
12:29:18.479: output 1: pos={0, 0}, size={1920, 1080}, attached=true
12:29:18.481: Loading up D3D11 on adapter NVIDIA GeForce GTX 970 (0)
12:29:19.224: D3D11 loaded successfully, feature level used: 45056
12:29:19.843: ---------------------------------
12:29:19.843: video settings reset:
12:29:19.843: base resolution: 1920x1080
12:29:19.843: output resolution: 1920x1080
12:29:19.843: downscale filter: Bicubic
12:29:19.843: fps: 60/1
12:29:19.843: format: NV12
12:29:19.844: Audio monitoring device:
12:29:19.844: name: Por defecto
12:29:19.844: id: default
12:29:19.845: ---------------------------------
12:29:19.854: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
12:29:19.859: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
12:29:19.872: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
12:29:19.872: Failed to initialize module 'enc-amf.dll'
12:29:19.963: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
12:29:19.964: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
12:29:19.971: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
12:29:19.977: Failed to load 'en-US' text for module: 'obs-browser.dll'
12:29:19.977: [browser_source: 'Version: 1.29.0']
12:29:20.025: NVENC supported
12:29:20.142: Couldn't find VLC installation, VLC video source disabled
12:29:20.162: No blackmagic support
12:29:20.336: ---------------------------------
12:29:20.336: Loaded Modules:
12:29:20.336: win-wasapi.dll
12:29:20.336: win-mf.dll
12:29:20.336: win-dshow.dll
12:29:20.336: win-decklink.dll
12:29:20.336: win-capture.dll
12:29:20.336: vlc-video.dll
12:29:20.336: text-freetype2.dll
12:29:20.336: rtmp-services.dll
12:29:20.336: obs-x264.dll
12:29:20.336: obs-vst.dll
12:29:20.336: obs-transitions.dll
12:29:20.336: obs-text.dll
12:29:20.336: obs-qsv11.dll
12:29:20.336: obs-outputs.dll
12:29:20.336: obs-filters.dll
12:29:20.336: obs-ffmpeg.dll
12:29:20.336: obs-browser.dll
12:29:20.336: image-source.dll
12:29:20.336: frontend-tools.dll
12:29:20.336: enc-amf.dll
12:29:20.336: coreaudio-encoder.dll
12:29:20.336: ---------------------------------
12:29:20.336: ==== Startup complete ===============================================
12:29:20.351: All scene data cleared
12:29:20.351: ------------------------------------------------
12:29:20.399: WASAPI: Device 'Sennheiser PC-350 (Realtek High Definition Audio)' initialized
12:29:20.421: WASAPI: Device 'Micrófono (Realtek High Definition Audio)' initialized
12:29:20.452: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
12:29:22.095: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
12:29:23.749: Switched to scene 'Escena'
12:29:23.750: ------------------------------------------------
12:29:23.750: Loaded scenes:
12:29:23.750: - scene 'Escena':
12:29:23.750: - source: 'Counter-Strike: Global Offensive' (game_capture)
12:29:23.750: ------------------------------------------------
12:29:38.496: ---------------------------------
12:29:38.496: video settings reset:
12:29:38.496: base resolution: 1280x720
12:29:38.496: output resolution: 1280x720
12:29:38.496: downscale filter: Bicubic
12:29:38.496: fps: 60/1
12:29:38.496: format: NV12
12:29:38.505: Settings changed (outputs, video)
12:29:38.505: ------------------------------------------------
12:29:59.031: [game-capture: 'Counter-Strike: Global Offensive'] attempting to hook process: csgo.exe
12:29:59.032: [game-capture: 'Counter-Strike: Global Offensive'] using helper (compatibility hook)
12:29:59.037: [game-capture: 'Counter-Strike: Global Offensive'] hook not loaded yet, retrying..
12:30:02.047: [game-capture: 'Counter-Strike: Global Offensive'] attempting to hook process: csgo.exe
12:30:02.095: [game-capture: 'Counter-Strike: Global Offensive'] Hooked DXGI
12:30:02.571: [game-capture: 'Counter-Strike: Global Offensive'] d3d9 shared texture capture successful
12:30:02.580: [game-capture: 'Counter-Strike: Global Offensive'] shared texture capture successful
12:32:44.719: [game-capture: 'Counter-Strike: Global Offensive'] ----------------- d3d9 capture freed -----------------
12:32:47.598: [game-capture: 'Counter-Strike: Global Offensive'] d3d9 shared texture capture successful
12:32:47.615: [game-capture: 'Counter-Strike: Global Offensive'] shared texture capture successful
12:33:00.765: ---------------------------------
12:33:00.765: video settings reset:
12:33:00.765: base resolution: 1920x1080
12:33:00.765: output resolution: 1280x720
12:33:00.765: downscale filter: Bicubic
12:33:00.765: fps: 60/1
12:33:00.765: format: NV12
12:33:00.777: Settings changed (outputs, video)
12:33:00.777: ------------------------------------------------
12:33:04.663: ---------------------------------
12:33:04.663: [x264 encoder: 'simple_h264_stream'] preset: veryfast
12:33:04.664: [x264 encoder: 'simple_h264_stream'] settings:
12:33:04.664: rate_control: CBR
12:33:04.664: bitrate: 2884
12:33:04.664: buffer size: 2884
12:33:04.664: crf: 0
12:33:04.664: fps_num: 60
12:33:04.664: fps_den: 1
12:33:04.664: width: 1280
12:33:04.664: height: 720
12:33:04.664: keyint: 120
12:33:04.664:
12:33:04.664: [x264 encoder: 'simple_h264_stream'] custom settings: scenecut=0
12:33:04.671: [Media Foundation AAC: 'simple_aac']: encoder created
12:33:04.671: bitrate: 160
12:33:04.671: channels: 2
12:33:04.671: sample rate: 44100
12:33:04.671: bits-per-sample: 16
12:33:04.671:
12:33:04.671: Output 'simple_stream': 30 second delay active, preserve on disconnect is on
12:33:10.341: [game-capture: 'Counter-Strike: Global Offensive'] ----------------- d3d9 capture freed -----------------
12:33:13.240: [game-capture: 'Counter-Strike: Global Offensive'] d3d9 shared texture capture successful
12:33:13.250: [game-capture: 'Counter-Strike: Global Offensive'] shared texture capture successful
12:33:34.675: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://live-sao.twitch.tv/app...
12:33:34.822: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I218-V (ethernet, 1000 mbps)
12:33:37.154: [rtmp stream: 'simple_stream'] Connection to rtmp://live-sao.twitch.tv/app successful
12:33:37.154: ==== Streaming Start ===============================================
12:36:48.254: [game-capture: 'Counter-Strike: Global Offensive'] ----------------- d3d9 capture freed -----------------
12:36:51.309: [game-capture: 'Counter-Strike: Global Offensive'] d3d9 shared texture capture successful
12:36:51.316: [game-capture: 'Counter-Strike: Global Offensive'] shared texture capture successful
12:37:51.419: Output 'simple_stream': stopping
12:37:51.419: Output 'simple_stream': Total frames output: 15089
12:37:51.419: Output 'simple_stream': Total drawn frames: 15333 (15405 attempted)
12:37:51.419: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 72 (0.5%)
12:37:51.419: Video stopped, number of skipped frames due to encoding lag: 2585/17205 (15.0%)
12:37:51.421: ==== Streaming Stop ================================================
12:37:51.421: [rtmp stream: 'simple_stream'] User stopped the stream
12:37:51.428: ==== Streaming Stop ================================================

P.S: The processor is running at 4.5GHz

Regards.!
 
well 144hz wasnt good choice. for streaming /recording you cant max your gpu. capping fps with vsync on 60hz monitor or switching back desktop to 60hz on 144hz one is most probably the solution in your case.

TLDR setup
1. 60hz desktop refresh
2. 60 or 30 in obs
3. 60 in game if there is switch for it (like bf3, bf4, overwatch)
4. vsync in game on
5. run obs as admin
 
Last edited:

MATiASc

New Member
Well it seems that the problem is the 144Hz, I tried putting 60Hz on the desktop and leaving 144Hz in the game (Counter-Strike Global Offensive) and remained the same, then I put 60Hz also in the game and I worked, the problem is that since I am a player Counter-Strike Global Offensive I need to have 144Hz and not 60Hz since I would be disadvantaged using 60Hz, I have seen many professional players of Counter-Strike Global Offensive and they play in 144Hz and also do streaming through Twitch, which if they usually have 2 Monitors, will that be the solution?
 

aplantard

New Member
Hello,

I'm currently running a volley ball competition and I want to stream it on Youtube. To do so, I'm using CCTV cameras from which one I take the stream via "media source" in OBS. I'm using this rtsp URL " rtsp://192.168.1.112:554/user=stream&password=vicpark&channel=2&stream=1.sdp?real_stream--rtp-caching=100
"
My problem is that the video in OBS and so the streaming on Youtube randomly freeze. I don't even have a clue on why ...

Can somebody here help me ?

Best regards
 

B487555555

New Member
Same issue here. I don't have any lost frames and the log isn't really helping. The source runs fine, but at the side of OBS (after a while) the preview shows a frozen frame and in the end YouTube is streaming a frozen frame.
 

rarahim

New Member
Any solution or reliable workaround for this issue? I'm facing the same problem with media source coming from ip camera rtsp feed.
Same issue here. I don't have any lost frames and the log isn't really helping. The source runs fine, but at the side of OBS (after a while) the preview shows a frozen frame and in the end YouTube is streaming a frozen frame.
 
Top