Question / Help Getting a lot of lagspikes in between gameplay while recording.

  • Thread starter Thread starter Deleted member 137981
  • Start date Start date
D

Deleted member 137981

I am getting a lot of lag spikes while recording a game-play video. I can run the game perfectly fine. At 300-400fps while recording, but everything I record. There's just a lot of lag spikes. Like every 1 minute, or 5 minutes. A lag spike appears. Any solutions?

My most recent log file:
https://gist.github.com/9d7bce75c8e880caf5debe7305e39ccc
 
Do you already capture to an SSD?


Code:
18:13:35.426: [x264 encoder: 'simple_h264_recording'] preset: ultrafast
18:13:35.426: [x264 encoder: 'simple_h264_recording'] profile: high
18:13:35.427: [x264 encoder: 'simple_h264_recording'] settings:
18:13:35.427:     rate_control: CRF
18:13:35.427:     bitrate:      0
18:13:35.427:     buffer size:  0
18:13:35.427:     crf:          14
18:13:35.427:     fps_num:      240
18:13:35.427:     fps_den:      1
18:13:35.427:     width:        1920
18:13:35.427:     height:       1080
18:13:35.427: keyint: 250

The key interval sounds useless to me. You record with 240fps (is ultra slow motion a thing in Minecraft, or for what do you record with such a ridiculous framerate?) and your key frames are set to every 250 frames.
I would set the keyframe interval to 2sec which means "keyint: 480" in this case.
1080p at CRF14 with a crappy preset like "ultrafast" will result produce very big files or in other words your systems needs to push a high amount of Mb/s to your harddisk/ssd, especially with 240fps.

Those lags could be a result of the intense disk activities.
 
Do you already capture to an SSD?


Code:
18:13:35.426: [x264 encoder: 'simple_h264_recording'] preset: ultrafast
18:13:35.426: [x264 encoder: 'simple_h264_recording'] profile: high
18:13:35.427: [x264 encoder: 'simple_h264_recording'] settings:
18:13:35.427:     rate_control: CRF
18:13:35.427:     bitrate:      0
18:13:35.427:     buffer size:  0
18:13:35.427:     crf:          14
18:13:35.427:     fps_num:      240
18:13:35.427:     fps_den:      1
18:13:35.427:     width:        1920
18:13:35.427:     height:       1080
18:13:35.427: keyint: 250

The key interval sounds useless to me. You record with 240fps (is ultra slow motion a thing in Minecraft, or for what do you record with such a ridiculous framerate?) and your key frames are set to every 250 frames.
I would set the keyframe interval to 2sec which means "keyint: 480" in this case.
1080p at CRF14 with a crappy preset like "ultrafast" will result produce very big files or in other words your systems needs to push a high amount of Mb/s to your harddisk/ssd, especially with 240fps.

Those lags could be a result of the intense disk activities.

Recording in 240fps, and rendering in 30fps. Gives that motion blur feel in Minecraft. A ton of youtubers record in 240fps that play Minecraft.
https://www.youtube.com/watch?v=5uw_2C-iwgM

Also, I do not understand what you mean by "Do you capture to a SSD?" I'm a noob at OBS. Could you please explain more?
 
Ok, I still don't get the point, why this effect is considered a "good thing", but I get, the idea.
When you record with 60fps and render with 30fps, while leaving "resampling" enabled in Sony Vegas / Magix Vegas, you get a similar effect without the need for 240fps recordings.
 
Ok, I still don't get the point, why this effect is considered a "good thing", but I get, the idea.
When you record with 60fps and render with 30fps, while leaving "resampling" enabled in Sony Vegas / Magix Vegas, you get a similar effect without the need for 240fps recordings.

The effect is not as great as recording in 240fps.
 
The key interval sounds useless to me. You record with 240fps (is ultra slow motion a thing in Minecraft, or for what do you record with such a ridiculous framerate?) and your key frames are set to every 250 frames.
I would set the keyframe interval to 2sec which means "keyint: 480" in this case.
1080p at CRF14 with a crappy preset like "ultrafast" will result produce very big files or in other words your systems needs to push a high amount of Mb/s to your harddisk/ssd, especially with 240fps.

Those lags could be a result of the intense disk activities.

Also, what do you mean by this? Where are the settings for all these.
 
In your output settings (where you set the bitrate etc.) you will see a value for the keyframe interval. I recommend to set it to "2".
 
In your output settings (where you set the bitrate etc.) you will see a value for the keyframe interval. I recommend to set it to "2".
636a7ffc99dfe508200a24b2e4500a74.png
 
Fill in keyframe interval = 2 and then I would try CRF=20, just to see, if the reduced hard disk activity is improving your lag spikes.
If not, you can crank it back up to CRF=14 and try it with a lower framerate (maybe 180).
 
Fill in keyframe interval = 2 and then I would try CRF=20, just to see, if the reduced hard disk activity is improving your lag spikes.
If not, you can crank it back up to CRF=14 and try it with a lower framerate (maybe 180).

Alright, thanks.
 
Back
Top