obs-source-record icon indicating copy to clipboard operation
obs-source-record copied to clipboard

Video Stutters when recording through source record

Open matoduri opened this issue 1 year ago • 6 comments

My regular video recording settings are:

  • Video Encoder: AMD HW H.264 (AVC)
  • Audio Encoder: FFmpeg AAC
  • Rate Control: CQP
  • CQ Level: 15
  • Preset: Quality
  • Profile: high
  • Max B-frames: 3

I record one landscape and one vertical video (vertical doesn't have CQP preset, so I use 15k bitrate).

When I try to replicate the settings for the Source Record and record my gameplay only, OBS starts stuttering and so does both video sources.

Any idea what might be going on?

matoduri avatar Dec 19 '24 09:12 matoduri

Have you got an OBS log file of a session with the issue for me to look at?

exeldro avatar Dec 19 '24 12:12 exeldro

@exeldro just made a new one. Camera Source Capture - no issues; game capture turns on - stutters. Game being played - CS2 (native 1440p @ 360Hz if that helps somehow) 2024-12-19 12-56-17.txt

matoduri avatar Dec 19 '24 12:12 matoduri

The first source record is 640x480 the second one is 2560x1440, so it looks to me like your graphics card can't handle encoding such a larger resolution at those settings.

exeldro avatar Dec 19 '24 13:12 exeldro

@exeldro if I record with the same settings for both sources combined into two videos, it doesn't cause any issue. Sending a log for recording without Source Record 2024-12-19 13-24-06.txt

Is source record using 2560x1440 Base (Canvas) Resolution, or does it record according to OBS (I have 1920x1080 set as base, but used 2560x1440 while testing the setup without any issues)

matoduri avatar Dec 19 '24 13:12 matoduri

Source record uses the resolution of the source it is on. The recording in that last log file has 1920x1080 resolution. You can see it in these log lines:

13:24:12.866: [texture-amf-h264: 'advanced_video_recording'] settings:
13:24:12.866: 	rate_control: CQP
13:24:12.866: 	bitrate:      2500
13:24:12.866: 	cqp:          15
13:24:12.866: 	keyint:       250
13:24:12.866: 	preset:       quality
13:24:12.866: 	profile:      high
13:24:12.866: 	b-frames:     3
13:24:12.866: 	width:        1920
13:24:12.866: 	height:       1080
13:24:12.866: 	params:       (none)

exeldro avatar Dec 19 '24 13:12 exeldro

@exeldro makes sense now. Is there any possibility to adjust source records base and output resolution as in OBS's Settings -> Video to replicate what OBS is doing when recording, just split the sources?

matoduri avatar Dec 19 '24 13:12 matoduri