Question / Help OBS works lagless during recording, but after result is a lagged video

Chiaki Nanami

New Member
Current Log File: https://gist.github.com/fdb565d88cb626168dffa833760b1465
Last Log File: https://gist.github.com/anonymous/359749a7f5366a608bdc6f99941df2d4

Okay, so, when recording the thing I'm playing shows my current ms so I can see I don't lose any fps while recording and not recording. This is good.

But for some reason after recording, when I check the video I see the video is running much slower (lagged).


I have played around with the settings A LOT, changing presets, bitrates, also even resolution and fps, no improvement at all (in fact, lowering the FPS only worsened things)


P.S: One thing I noticed about the logs is that it says I have Aero enabled when I have ticked the box of disabling Aero. What?
 

kokowang

Member
Use nvenc to encode:
Settings > Output > encoder > Nvenc
Set preset on maximum quality and set bitrate around 10-20mbps for recordings.
 

Chiaki Nanami

New Member
Use nvenc to encode:
Settings > Output > encoder > Nvenc
Set preset on maximum quality and set bitrate around 10-20mbps for recordings.
https://gist.github.com/bc2720fd73c672120cab2b0916a440e9 <- log when i tried your setting, 20mbps bitrate, high quality preset because couldn't find "maximum quality"

I keep getting the exact same issue, like it always slows down to a certain amount to fps, it's constant (if i record on 60, it looks like 60, but in video it looks choppy like if its running on like 20fps constantly)
 

kokowang

Member
That's odd. From your "last log file" on original post -
Code:
00:43:16.650: [ffmpeg muxer: 'adv_file_output'] Writing file 'F:/Videos/2017-05-23 00-43-16.mp4'...
00:43:28.707: [ffmpeg muxer: 'adv_file_output'] Output of file 'F:/Videos/2017-05-23 00-43-16.mp4' stopped
00:43:28.707: Output 'adv_file_output': stopping
00:43:28.707: Output 'adv_file_output': Total encoded frames: 723
00:43:28.707: Output 'adv_file_output': Total drawn frames: 723
Seems like the encoder is working just fine on OBS - 12 seconds ~700 frames.
Code:
00:48:14.725:  ┣render_displays: min=0 ms, median=0.464 ms, max=16.833 ms, 99th percentile=1.084 ms
00:48:14.725:  ┗output_frame: min=0.389 ms, median=0.906 ms, max=5.48 ms, 99th percentile=2.047 ms
Your renderer seems fine too...
Check to make sure it's not your video player that's lagging. If it's only the game display that's lagging, and everything else is smooth, then try display capture instead of game capture.

Perhapse it's all caused by your:
00:41:59.817: - source: 'SHIT CAMERA' (text_ft2_source)
(joke)
 
Last edited:

Chiaki Nanami

New Member
That's odd. From your "last log file" on original post -
Code:
00:43:16.650: [ffmpeg muxer: 'adv_file_output'] Writing file 'F:/Videos/2017-05-23 00-43-16.mp4'...
00:43:28.707: [ffmpeg muxer: 'adv_file_output'] Output of file 'F:/Videos/2017-05-23 00-43-16.mp4' stopped
00:43:28.707: Output 'adv_file_output': stopping
00:43:28.707: Output 'adv_file_output': Total encoded frames: 723
00:43:28.707: Output 'adv_file_output': Total drawn frames: 723
Seems like the encoder is working just fine on OBS - 12 seconds ~700 frames.
Code:
00:48:14.725:  ┣render_displays: min=0 ms, median=0.464 ms, max=16.833 ms, 99th percentile=1.084 ms
00:48:14.725:  ┗output_frame: min=0.389 ms, median=0.906 ms, max=5.48 ms, 99th percentile=2.047 ms
Your renderer seems fine too...
Check to make sure it's not your video player that's lagging. If it's only the game display that's lagging, and everything else is smooth, then try display capture instead of game capture.

Perhapse it's all caused by your:

(joke)
Okay so I checked the videos with Windows Media Player and uploaded to youtube, it looks exactly the same.

Tried to use Display Capture but unless I quit fullscreen its non-functional, and then I get 4+ ms (for reference, i record with 0.4ms so its huge) so it defeats the point
Window Capture refuses to capture it in fullscreen too, and if i disable fullscreen it only gets some weird line and not the window at all :(

(I used to get very tilted at my old webcam lol)

Yeah, the issue is that everything records fine, but then it looks much worse.
 

kokowang

Member
Yeah, the issue is that everything records fine, but then it looks much worse.
Display capture should record whatever your GPU outputs to your monitor, having a full screen directx panel shouldn't affect it. It sounds like your computer is running multiple display adapters (GPUs) at the same time.
If you're on a laptop, make sure OBS is set to run with the same GPU you are running the games on. See here: https://obsproject.com/forum/threads/laptop-black-screen-when-capturing-read-here-first.5965/
 

Chiaki Nanami

New Member
Display capture should record whatever your GPU outputs to your monitor, having a full screen directx panel shouldn't affect it. It sounds like your computer is running multiple display adapters (GPUs) at the same time.
If you're on a laptop, make sure OBS is set to run with the same GPU you are running the games on. See here: https://obsproject.com/forum/threads/laptop-black-screen-when-capturing-read-here-first.5965/
Display capture is making my game lag, I only get lagless while using Game Capture
My GPU is set to 0 in the Advanced Settings, idk what that means

I'm not using a laptop, how can I know which GPU are both what I want to record and my OBS using?

When I use fullscreen display capture I see that it recognizes the game, but it gets stuck in the picture when I resume it, and I can hear the game going on and my cursor moving, but the picture doesn't move. Weird...

Current log: https://gist.github.com/ff2a0f10f13998830f6d5c35728f32ec
 
Top