Recording choppy and looks weird

Bubbleberry

New Member
To start, I stream and record, so I know that uses more resources than just doing one or the other. I'm not sure what to do, or if I'm just crazy, but when I watch my recordings, the framerate looks weird and noticeably drops. I'm not sure what settings to change, or if I even can change any. I'm playing my games at as high FPS as I can, up to 60.

I've done a short test stream/recording, about 20 minutes, and uploaded it to youtube, if that would help. I've also got my log posted below, along with my system specs,

Test Resident Evil 3 Video (Slight spoiler)

Operating System: Windows 10 Home 64-bit (10.0, Build 18363) (18362.19h1_release.190318-1202)
System Manufacturer: Micro-Star International Co., Ltd.
System Model: MS-7B48
BIOS: 2.30 (type: UEFI)
Processor: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 CPUs), ~3.7GHz
Memory: 16384MB RAM
Available OS Memory: 16344MB RAM
Card name: NVIDIA GeForce GTX 1070
Current Mode: 1920 x 1080 (32 bit) (120Hz)

12:12:16.993: CPU Name: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
12:12:16.993: CPU Speed: 3696MHz
12:12:16.993: Physical Cores: 6, Logical Cores: 12
12:12:16.993: Physical Memory: 16344MB Total, 9572MB Free
12:12:16.993: Windows Version: 10.0 Build 18363 (release: 1909; revision: 1379; 64-bit)
12:12:16.994: Running as administrator: true
12:12:16.994: Aero is Enabled (Aero is always on for windows 8 and above)
12:12:16.994: Windows 10 Gaming Features:
12:12:16.994: Game Bar: Off
12:12:16.994: Game DVR: Off
12:12:16.994: Game DVR Background Recording: Off
12:12:16.995: Sec. Software Status:
12:12:16.996: Windows Defender Antivirus: enabled (AV)
12:12:16.996: Windows Firewall: enabled (FW)
12:12:16.996: Current Date/Time: 2021-02-12, 12:12:16
12:12:16.996: Browser Hardware Acceleration: true
12:12:16.996: Portable mode: false
12:12:17.214: OBS 26.1.1 (64-bit, windows)
12:12:17.214: ---------------------------------
12:12:17.247: ---------------------------------
12:12:17.247: audio settings reset:
12:12:17.247: samples per sec: 48000
12:12:17.247: speakers: 2
12:12:17.247: ---------------------------------
12:12:17.247: Initializing D3D11...
12:12:17.247: Available Video Adapters:
12:12:17.249: Adapter 0: NVIDIA GeForce GTX 1070
12:12:17.249: Dedicated VRAM: 4185915392
12:12:17.249: Shared VRAM: 4274229248
12:12:17.249: PCI ID: 10de:1b81
12:12:17.249: Driver Version: 27.21.14.6140
12:12:17.249: output 0: pos={0, 0}, size={1920, 1080}, attached=true, refresh=120, name=VG248
12:12:17.249: output 1: pos={1920, 0}, size={1440, 900}, attached=true, refresh=60, name=HP LE1901w
12:12:17.250: Loading up D3D11 on adapter NVIDIA GeForce GTX 1070 (0)
12:12:17.288: D3D11 loaded successfully, feature level used: b000
12:12:17.288: DXGI increase maximum frame latency success
12:12:17.288: D3D11 GPU priority setup success
12:12:17.685: ---------------------------------
12:12:17.685: video settings reset:
12:12:17.685: base resolution: 1920x1080
12:12:17.685: output resolution: 1920x1080
12:12:17.685: downscale filter: Bicubic
12:12:17.685: fps: 60/1
12:12:17.685: format: NV12
12:12:17.685: YUV mode: 709/Partial
12:12:17.685: NV12 texture support enabled
12:12:17.686: Audio monitoring device:
12:12:17.686: name: Default
12:12:17.686: id: default
12:12:17.687: ---------------------------------
12:12:17.689: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
12:12:17.689: Failed to load 'en-US' text for module: 'decklink-captions.dll'
12:12:17.690: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
12:12:17.716: [AMF] Unable to load 'amfrt64.dll', error code 126.
12:12:17.718: [AMF] AMF Test failed due to one or more errors.
12:12:17.718: Failed to initialize module 'enc-amf.dll'
12:12:17.732: [obs-browser]: Version 2.9.1
12:12:17.732: [obs-browser]: CEF Version 75.1.16+g16a67c4+chromium-75.0.3770.100
12:12:17.735: NVENC supported
12:12:17.827: VLC found, VLC video source enabled
12:12:17.831: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
12:12:17.832: No blackmagic support
12:12:17.835: ---------------------------------
12:12:17.835: Loaded Modules:
12:12:17.835: win-wasapi.dll
12:12:17.835: win-mf.dll
12:12:17.835: win-dshow.dll
12:12:17.835: win-decklink.dll
12:12:17.835: win-capture.dll
12:12:17.835: vlc-video.dll
12:12:17.835: text-freetype2.dll
12:12:17.835: rtmp-services.dll
12:12:17.835: obs-x264.dll
12:12:17.835: obs-vst.dll
12:12:17.835: obs-transitions.dll
12:12:17.835: obs-text.dll
12:12:17.835: obs-qsv11.dll
12:12:17.835: obs-outputs.dll
12:12:17.835: obs-filters.dll
12:12:17.835: obs-ffmpeg.dll
12:12:17.835: obs-browser.dll
12:12:17.835: image-source.dll
12:12:17.835: frontend-tools.dll
12:12:17.835: enc-amf.dll
12:12:17.835: decklink-ouput-ui.dll
12:12:17.835: decklink-captions.dll
12:12:17.835: coreaudio-encoder.dll
12:12:17.835: ---------------------------------
12:12:17.835: ==== Startup complete ===============================================
12:12:17.839: All scene data cleared
12:12:17.839: ------------------------------------------------
12:12:17.881: WASAPI: Device 'Headphones (Realtek(R) Audio)' [48000 Hz] initialized
12:12:17.881: [Loaded global audio device]: 'Desktop Audio'
12:12:18.030: WASAPI: Device 'Game Capture HD60 S Audio (2) (Game Capture HD60 S)' [48000 Hz] initialized
12:12:18.030: [Loaded global audio device]: 'Mic/Aux'
12:12:18.082: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux)
12:12:18.082:
12:12:18.287: ---------------------------------
12:12:18.287: [DShow Device: 'Webcam'] settings updated:
12:12:18.287: video device: NexiGo N660 FHD Webcam
12:12:18.287: video path: \\?\usb#vid_1d6b&pid_0102&mi_00#6&1ba07e86&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
12:12:18.287: resolution: 640x480
12:12:18.287: flip: 0
12:12:18.287: fps: 30.00 (interval: 333333)
12:12:18.287: format: YUY2
12:12:18.433: WASAPI: Device 'Microphone (NVIDIA RTX Voice)' [48000 Hz] initialized
12:12:18.448: WASAPI: Device 'Headphones (Realtek(R) Audio)' [48000 Hz] initialized
12:12:18.459: Switched to scene 'Bottom Left'
12:12:18.460: [game-capture: 'Game Capture'] attempting to hook process: re3.exe
12:12:18.462: ------------------------------------------------
12:12:18.462: Loaded scenes:
12:12:18.463: - scene 'Bottom Left':
12:12:18.463: A sprite cannot be drawn without a width/height
12:12:18.463: - source: 'Game Capture' (game_capture)
12:12:18.463: - filter: 'Color Correction' (color_filter)
12:12:18.463: - source: 'Black And Red.png' (image_source)
12:12:18.463: - source: 'USB Mic' (wasapi_input_capture)
12:12:18.463: - filter: 'Gain' (gain_filter)
12:12:18.463: - source: 'Headphones' (wasapi_output_capture)
12:12:18.463: - source: 'Webcam Group' (group)
12:12:18.463: - source: 'Webcam' (dshow_input)
12:12:18.463: - filter: 'Image Mask/Blend' (mask_filter)
12:12:18.463: - source: 'Circle' (image_source)
12:12:18.463: ------------------------------------------------
12:12:18.471: A sprite cannot be drawn without a width/height
12:12:18.478: [game-capture: 'Game Capture'] We're DXGI1.4 boys!
12:12:18.478: [game-capture: 'Game Capture'] Buffer count: 3, swap effect: 4
12:12:18.487: A sprite cannot be drawn without a width/height
12:12:18.504: A sprite cannot be drawn without a width/height
12:12:18.543: [game-capture: 'Game Capture'] d3d12 shared texture capture successful
12:12:18.554: [game-capture: 'Game Capture'] shared texture capture successful
12:12:26.474: ---------------------------------
12:12:26.475: [x264 encoder: 'streaming_h264'] preset: superfast
12:12:26.475: [x264 encoder: 'streaming_h264'] settings:
12:12:26.475: rate_control: CBR
12:12:26.475: bitrate: 2500
12:12:26.475: buffer size: 2500
12:12:26.475: crf: 0
12:12:26.475: fps_num: 60
12:12:26.475: fps_den: 1
12:12:26.475: width: 1280
12:12:26.475: height: 720
12:12:26.475: keyint: 120
12:12:26.475:
12:12:26.475: [x264 encoder: 'streaming_h264'] custom settings:
12:12:26.475: scenecut = 0
12:12:26.478: ---------------------------------
12:12:26.478: [FFmpeg aac encoder: 'adv_stream_aac'] bitrate: 160, channels: 2, channel_layout: 3
12:12:26.478:
12:12:26.479: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://ord02.contribute.live-video.net/app...
12:12:26.529: [rtmp stream: 'adv_stream'] Interface: Realtek PCIe GbE Family Controller (ethernet, 100 mbps)
12:12:26.536: [jim-nvenc: 'recording_h264'] settings:
12:12:26.536: rate_control: CQP
12:12:26.536: bitrate: 0
12:12:26.536: cqp: 25
12:12:26.536: keyint: 250
12:12:26.536: preset: mq
12:12:26.536: profile: high
12:12:26.536: width: 1920
12:12:26.536: height: 1080
12:12:26.536: 2-pass: true
12:12:26.536: b-frames: 2
12:12:26.536: lookahead: false
12:12:26.536: psycho_aq: true
12:12:26.536:
12:12:26.546: ---------------------------------
12:12:26.546: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: 3
12:12:26.546:
12:12:26.547: ---------------------------------
12:12:26.547: [FFmpeg aac encoder: 'Track2'] bitrate: 160, channels: 2, channel_layout: 3
12:12:26.547:
12:12:26.548: ---------------------------------
12:12:26.548: [FFmpeg aac encoder: 'Track3'] bitrate: 160, channels: 2, channel_layout: 3
12:12:26.548:
12:12:26.549: ---------------------------------
12:12:26.549: [FFmpeg aac encoder: 'Track4'] bitrate: 160, channels: 2, channel_layout: 3
12:12:26.549:
12:12:26.550: ---------------------------------
12:12:26.550: [FFmpeg aac encoder: 'Track5'] bitrate: 160, channels: 2, channel_layout: 3
12:12:26.550:
12:12:26.551: ---------------------------------
12:12:26.551: [FFmpeg aac encoder: 'Track6'] bitrate: 160, channels: 2, channel_layout: 3
12:12:26.551:
12:12:26.560: ==== Recording Start ===============================================
12:12:26.560: [ffmpeg muxer: 'adv_file_output'] Writing file 'F:/New folder/Videos/2021-02-12 12-12-26.mkv'...
12:12:27.257: [rtmp stream: 'adv_stream'] Connection to rtmp://ord02.contribute.live-video.net/app successful
12:12:27.257: ==== Streaming Start ===============================================
12:31:52.971: [game-capture: 'Game Capture'] capture window no longer exists, terminating capture
12:31:52.971: [game-capture: 'Game Capture'] capture stopped
12:31:55.517: [ffmpeg muxer: 'adv_file_output'] Output of file 'F:/New folder/Videos/2021-02-12 12-12-26.mkv' stopped
12:31:55.517: Output 'adv_file_output': stopping
12:31:55.517: Output 'adv_file_output': Total frames output: 70087
12:31:55.517: Output 'adv_file_output': Total drawn frames: 70137
12:31:55.517: ==== Recording Stop ================================================
12:31:55.541: [rtmp stream: 'adv_stream'] User stopped the stream
12:31:55.541: Output 'adv_stream': stopping
12:31:55.541: Output 'adv_stream': Total frames output: 70045
12:31:55.541: Output 'adv_stream': Total drawn frames: 70144
12:31:55.542: Video stopped, number of skipped frames due to encoding lag: 1667/140231 (1.2%)
12:31:55.544: ==== Streaming Stop ================================================
12:31:55.560: warning: 2 frames left in the queue on closing
12:31:55.560: warning: 2 frames left in the queue on closing
12:31:55.560: warning: 2 frames left in the queue on closing
12:31:55.561: warning: 2 frames left in the queue on closing
12:31:55.561: warning: 2 frames left in the queue on closing
12:31:55.561: warning: 2 frames left in the queue on closing
12:31:55.567: warning: 2 frames left in the queue on closing


I know my rig is a bit older, but it's the best I've got to work with, unfortunately, but if there is anything else I can post to help, let me know, and I will try.
Thank you!
 

JonEditor

New Member
Same problem here. No one seems to have an answer. It's hard to believe video software this widely used would routinely drop frame rates / duplicate frames on recordings.

Here's our problem...
 

FerretBomb

Active Member
12:12:26.536: [jim-nvenc: 'recording_h264'] settings:
12:12:26.536: rate_control: CQP
12:12:26.536: bitrate: 0
12:12:26.536: cqp: 25
12:12:26.536: keyint: 250
12:12:26.536: preset: mq
12:12:26.536: profile: high
12:12:26.536: width: 1920
12:12:26.536: height: 1080
12:12:26.536: 2-pass: true
12:12:26.536: b-frames: 2
12:12:26.536: lookahead: false
12:12:26.536: psycho_aq: true
...
12:31:55.542: Video stopped, number of skipped frames due to encoding lag: 1667/140231 (1.2%)
Use the Quality preset, not Max Quality (MQ enables 2-pass which is not really meant for realtime video recording). Uncheck Psychovisual Tuning. Both of these options use CUDA cores (lookahead does too, but you have that off already), and are the cause of every 'encoding lag' error I've ever seen when using NVENC.
 

Bubbleberry

New Member
Same problem here. No one seems to have an answer. It's hard to believe video software this widely used would routinely drop frame rates / duplicate frames on recordings.

Here's our problem...


I know. Google yielded almost no help, so I initially went to reddit, but their OBS forum suggested using this first. It's crazy that it almost seems like you need a power house pc for a 2 PC set up.
 

Bubbleberry

New Member
Use the Quality preset, not Max Quality (MQ enables 2-pass which is not really meant for realtime video recording). Uncheck Psychovisual Tuning. Both of these options use CUDA cores (lookahead does too, but you have that off already), and are the cause of every 'encoding lag' error I've ever seen when using NVENC.


Thanks for the suggestion! I'll try it next time I'm able to stream and update you!
 

FerretBomb

Active Member
Thanks for the suggestion! I'll try it next time I'm able to stream and update you!
Sounds good! Just as a side note, if you set the Recording encoder to 'same as stream', there is almost zero additional load on the system. It just saves off a copy to the local hard disk of what it's sending out on the stream. Even so, with NVENC as the encoder(s) there's almost no encoding load on the host system anyway. NVENC is a separate part of the GPU specifically for encoding video that sits idle if you're not streaming or recording. It can handle up to dual 4K60 streams, so don't worry about load; it's just those three options that can throw a wrench into the works. :)
 
Top