Question / Help Encoding Lag help

Fyn

New Member
When I stream and record at the same time I get an error sometimes in the bottom left hand corner saying that there is lag due to the encoder (can't recall the specific wording) and when I check the recorded footage its pretty choppy, the streaming is fine as far as I can tell. Although its a bit blurry at times (low bitrate).

It may be due to the output I use for recording (ffmpeg) but it works way better with my editing software, something to do with the audio codec I guess makes it work way better. I don't know that much about codecs and whatnot so I was hoping that I could paste my last stream/ record log and someone could take a look and see if anything stands out that I should fix to smooth it out. I cut off anything that was after shutting down because the thread was too many characters.

Should I change any encoder options or anything of that sort?

00:33:45.188: CPU Name: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
00:33:45.188: CPU Speed: 3504MHz
00:33:45.188: Physical Cores: 4, Logical Cores: 4
00:33:45.188: Physical Memory: 16346MB Total, 8203MB Free
00:33:45.188: Windows Version: 10.0 Build 15063 (revision: 250; 64-bit)
00:33:45.188: Running as administrator: true
00:33:45.188: Aero is Enabled (Aero is always on for windows 8 and above)
00:33:45.188: Portable mode: false
00:33:45.216: OBS 18.0.1 (64bit, windows)
00:33:45.216: ---------------------------------
00:33:45.217: ---------------------------------
00:33:45.217: audio settings reset:
00:33:45.217: samples per sec: 44100
00:33:45.217: speakers: 2
00:33:45.218: ---------------------------------
00:33:45.218: Initializing D3D11..
00:33:45.218: Available Video Adapters:
00:33:45.220: Adapter 1: NVIDIA GeForce GTX 1070
00:33:45.220: Dedicated VRAM: 4246405120
00:33:45.220: Shared VRAM: 4275492864
00:33:45.220: output 1: pos={0, 0}, size={1920, 1080}, attached=true
00:33:45.220: output 2: pos={1920, 229}, size={1360, 768}, attached=true
00:33:45.224: Loading up D3D11 on adapter NVIDIA GeForce GTX 1070 (0)
00:33:45.248: D3D11 loaded sucessfully, feature level used: 45056
00:33:46.106: ---------------------------------
00:33:46.106: video settings reset:
00:33:46.106: base resolution: 1920x1080
00:33:46.106: output resolution: 1280x720
00:33:46.106: downscale filter: Bicubic
00:33:46.106: fps: 30/1
00:33:46.106: format: NV12
00:33:46.107: Audio monitoring device:
00:33:46.107: name: Default
00:33:46.107: id: default
00:33:46.107: ---------------------------------
00:33:46.114: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
00:33:46.117: [AMF Encoder] Unable to load 'amfrt64.dll', error code 126.
00:33:46.125: NVENC supported
00:33:46.272: [obs-websocket] you can haz websockets (version 4.0.0)
00:33:46.284: [obs-websocket] module loaded!
00:33:46.286: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/Qt5Network.dll' not found, loading of module failed
00:33:46.286: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/Qt5WebSockets.dll' not found, loading of module failed
00:33:46.292: VLC found, VLC video source enabled
00:33:46.300: No blackmagic support
00:33:46.390: ---------------------------------
00:33:46.390: Loaded Modules:
00:33:46.390: win-wasapi.dll
00:33:46.390: win-mf.dll
00:33:46.390: win-dshow.dll
00:33:46.390: win-decklink.dll
00:33:46.390: win-capture.dll
00:33:46.390: vlc-video.dll
00:33:46.390: text-freetype2.dll
00:33:46.390: rtmp-services.dll
00:33:46.390: obs-x264.dll
00:33:46.390: obs-websocket.dll
00:33:46.390: obs-vst.dll
00:33:46.390: obs-transitions.dll
00:33:46.390: obs-text.dll
00:33:46.390: obs-qsv11.dll
00:33:46.390: obs-outputs.dll
00:33:46.390: obs-filters.dll
00:33:46.390: obs-ffmpeg.dll
00:33:46.390: image-source.dll
00:33:46.390: frontend-tools.dll
00:33:46.390: enc-amf.dll
00:33:46.390: coreaudio-encoder.dll
00:33:46.390: ==== Startup complete ===============================================
00:33:46.392: All scene data cleared
00:33:46.392: ------------------------------------------------
00:33:46.484: WASAPI: Device 'Realtek HD Audio 2nd output (Realtek High Definition Audio)' initialized
00:33:46.500: WASAPI: Device 'Microphone (CAD Audio)' initialized
00:33:46.522: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
00:33:47.203: Webcam: data.GetDevice failed
00:33:47.203: Webcam: Video configuration failed
00:33:48.134: Switched to scene 'Game'
00:33:48.134: ------------------------------------------------
00:33:48.134: Loaded scenes:
00:33:48.134: - scene 'Game':
00:33:48.134: - source: 'Game Capture' (game_capture)
00:33:48.134: - source: 'Window Capture' (window_capture)
00:33:48.134: - source: 'Webcam' (dshow_input)
00:33:48.134: - source: 'Webcam' (dshow_input)
00:33:48.134: - source: 'Betting Option Display' (text_ft2_source)
00:33:48.134: - source: 'Betting Stats' (text_ft2_source)
00:33:48.134: - source: 'Current Song' (text_ft2_source)
00:33:48.134: - filter: 'Scroll' (scroll_filter)
00:33:48.134: - filter: 'Sharpen' (sharpness_filter)
00:33:48.134: - source: '"Currently playing:"' (text_ft2_source)
00:33:48.134: - filter: 'Sharpen' (sharpness_filter)
00:33:48.134: - source: 'Image' (image_source)
00:33:48.134: ------------------------------------------------
00:34:00.308: [game-capture: 'Game Capture'] attempting to hook process: thedivision.exe
00:34:00.404: [game-capture: 'Game Capture'] using helper (compatibility hook)
00:34:00.468: [game-capture: 'Game Capture'] hook not loaded yet, retrying..
00:34:02.341: [game-capture: 'Game Capture'] attempting to hook process: thedivision.exe
00:34:02.366: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
00:34:02.374: [game-capture: 'Game Capture'] shared texture capture successful
00:34:07.023: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
00:34:07.032: warning: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
00:34:07.034: ==== Recording Start ===============================================
00:34:07.555: ---------------------------------
00:34:07.555: [x264 encoder: 'streaming_h264'] preset: faster
00:34:07.555: [x264 encoder: 'streaming_h264'] settings:
00:34:07.555: rate_control: CBR
00:34:07.555: bitrate: 2000
00:34:07.555: buffer size: 2000
00:34:07.555: crf: 0
00:34:07.555: fps_num: 30
00:34:07.555: fps_den: 1
00:34:07.555: width: 1280
00:34:07.555: height: 720
00:34:07.555: keyint: 60
00:34:07.555: vfr: off
00:34:07.555:
00:34:07.555: [x264 encoder: 'streaming_h264'] custom settings: scenecut=0
00:34:07.572: [Media Foundation AAC: 'Track2']: encoder created
00:34:07.572: bitrate: 160
00:34:07.572: channels: 2
00:34:07.572: sample rate: 44100
00:34:07.572: bits-per-sample: 16
00:34:07.572:
00:34:07.572: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://live-lhr.twitch.tv/app...
00:34:07.764: [rtmp stream: 'adv_stream'] Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
00:34:10.534: [rtmp stream: 'adv_stream'] Connection to rtmp://live-lhr.twitch.tv/app successful
00:34:10.535: ==== Streaming Start ===============================================
00:45:10.973: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
00:45:10.993: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
00:45:11.009: [game-capture: 'Game Capture'] shared texture capture successful
00:49:14.123: Output 'adv_ffmpeg_output': stopping
00:49:14.123: Output 'adv_ffmpeg_output': Total encoded frames: 27213
00:49:14.123: Output 'adv_ffmpeg_output': Total drawn frames: 27213
00:49:14.123: Output 'adv_ffmpeg_output': Number of skipped frames due to encoding lag: 6395 (23.5%)
00:49:14.123: Output 'adv_ffmpeg_output': Number of lagged frames due to rendering lag/stalls: 2 (0.0%)
00:49:14.124: ==== Recording Stop ================================================
00:49:14.141: warning: 2 frames left in the queue on closing
00:49:17.908: [rtmp stream: 'adv_stream'] User stopped the stream
00:49:17.908: Output 'adv_stream': stopping
00:49:17.908: Output 'adv_stream': Total encoded frames: 27311
00:49:17.908: Output 'adv_stream': Total drawn frames: 27311
00:49:17.908: Output 'adv_stream': Number of skipped frames due to encoding lag: 6395 (23.4%)
00:49:17.908: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 2 (0.0%)
00:49:17.910: ==== Streaming Stop ================================================
01:23:09.439: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
02:01:44.440: [game-capture: 'Game Capture'] capture window no longer exists, terminating capture
02:01:44.443: [game-capture: 'Game Capture'] capture stopped
02:01:46.508: [game-capture: 'Game Capture'] attempting to hook process: thedivision.exe
02:01:46.541: [game-capture: 'Game Capture'] capture stopped
02:04:40.075: ==== Shutting down ==================================================
 
Top