Question / Help Dropped frames and duplicates

Hijaxxed

New Member
I have just recently gotten into OBS, and after initially going black screens and freezing I have now managed to record gameplay without it freezing. But the video is very choppy when i try and play it back in VLC.

I am recording at 720p at 30 fps but in game I am getting around 45 fps while recording so I thought the video would look smooth.

I am just looking for anything obvious wrong, or tips, thanks.

Code:
20:27:04: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
20:27:04: Failed loading CUDA dll
20:27:23: Open Broadcaster Software v0.657b - 64bit ( ^ω^)
20:27:23: -------------------------------
20:27:23: CPU Name: AMD A10-7800 Radeon R7, 12 Compute Cores 4C+8G
20:27:23: CPU Speed: 3493MHz
20:27:23: Physical Memory:  7113MB Total, 3378MB Free
20:27:23: stepping id: 1, model 48, family 21, type 0, extmodel 1, extfamily 3, HTT 1, logical cores 4, total cores 2
20:27:23: monitor 1: pos={0, 0}, size={1920, 1080}
20:27:23: Windows Version: 10.0 Build 10586 (revision 0)
20:27:23: Aero is Enabled
20:27:23: -------------------------------
20:27:23: OBS Modules:
20:27:23: Base Address     Module
20:27:23: 000000006AF10000 OBS.exe
20:27:23: 0000000025C60000 OBSApi.dll
20:27:23: 00000000488E0000 DShowPlugin.dll
20:27:23: 0000000049200000 GraphicsCapture.dll
20:27:23: 000000004A170000 NoiseGate.dll
20:27:23: 0000000048F10000 PSVPlugin.dll
20:27:23: 00000000488B0000 scenesw.dll
20:27:23: ------------------------------------------
20:27:23: Adapter 1
20:27:23:   Video Adapter: AMD Radeon(TM) R7 Graphics
20:27:23:   Video Adapter Dedicated Video Memory: 1041563648
20:27:23:   Video Adapter Shared System Memory: 3729563648
20:27:23:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
20:27:23: =====Stream Start: 2016-05-03, 20:27:23===============================================
20:27:23:   Multithreaded optimizations: On
20:27:23:   Base resolution: 1920x1080
20:27:23:   Output resolution: 1280x720
20:27:23: ------------------------------------------
20:27:23: Loading up D3D10 on AMD Radeon(TM) R7 Graphics (Adapter 1)...
20:27:23: ------------------------------------------
20:27:23: Audio Format: 48000 Hz
20:27:23: ------------------------------------------
20:27:23: Audio Channels: 2 Ch
20:27:23: Playback device Default
20:27:23: ------------------------------------------
20:27:23: Using desktop audio input: Speakers (Realtek High Definition Audio)
20:27:23: Global Audio time adjust: 2
20:27:23: ------------------------------------------
20:27:23: Using auxilary audio input: Microphone (Realtek High Definition Audio)
20:27:23: Mic time offset: 0
20:27:23: ------------------------------------------
20:27:23: Audio Encoding: AAC
20:27:23:     bitrate: 128
20:27:23: Using graphics capture
20:27:23: Using anti-cheat hooking for game capture
20:27:23: Trying to hook process: csgo.exe
20:27:23: Scene buffering time set to 700
20:27:23: x264: VBV maxrate specified, but no bufsize, ignored
20:27:23: ------------------------------------------
20:27:23: Video Encoding: x264
20:27:23:     fps: 30
20:27:23:     width: 1280, height: 720
20:27:23:     preset: superfast
20:27:23:     profile: main
20:27:23:     keyint: 60
20:27:23:     CBR: no
20:27:23:     CFR: yes
20:27:23:     max bitrate: 5000
20:27:23:     buffer size: 0
20:27:23:     quality: 8
20:27:23: ------------------------------------------
Warning -- SharedTexCapture::Init: Could not open file mapping: 2
20:27:27: SharedTexCapture hooked
20:38:22: FlushBufferedVideo: Flushing 10 packets over 300 ms
20:38:23: Total frames encoded: 19764, total frames duplicated: 5084 (25.72%)
20:38:23: Total frames rendered: 17421, number of late frames: 2105 (12.08%) (it's okay for some frames to be late)
20:38:23:
20:38:23: Profiler time results:
20:38:23:
20:38:23: ==============================================================
20:38:23: video thread frame - [100%] [avg time: 22.306 ms] [children: 36.8%] [unaccounted: 63.2%]
20:38:23: | scene->Preprocess - [0.0134%] [avg time: 0.003 ms]
20:38:23: | GPU download and conversion - [36.8%] [avg time: 8.2 ms] [children: 0.708%] [unaccounted: 36.1%]
20:38:23: | | flush - [0.448%] [avg time: 0.1 ms]
20:38:23: | | CopyResource - [0.17%] [avg time: 0.038 ms]
20:38:23: | | conversion to 4:2:0 - [0.0897%] [avg time: 0.02 ms]
20:38:23: Convert444Thread - [100%] [avg time: 1.765 ms] [children: 99.2%] [unaccounted: 0.793%]
20:38:23: | Convert444toNV12 - [99.2%] [avg time: 1.751 ms]
20:38:23: encoder thread frame - [100%] [avg time: 2.491 ms] [children: 18.5%] [unaccounted: 81.5%]
20:38:23: | sending stuff out - [18.5%] [avg time: 0.46 ms]
20:38:23: ==============================================================
20:38:23:
20:38:23:
20:38:23: Profiler CPU results:
20:38:23:
20:38:23: ==============================================================
20:38:23: video thread frame - [cpu time: avg 0.466 ms, total 8125 ms] [avg calls per frame: 1]
20:38:23: | scene->Preprocess - [cpu time: avg 0.001 ms, total 31.25 ms] [avg calls per frame: 1]
20:38:23: | GPU download and conversion - [cpu time: avg 0.153 ms, total 2671.88 ms] [avg calls per frame: 1]
20:38:23: | | flush - [cpu time: avg 0.056 ms, total 984.375 ms] [avg calls per frame: 1]
20:38:23: | | CopyResource - [cpu time: avg 0.026 ms, total 453.125 ms] [avg calls per frame: 1]
20:38:23: | | conversion to 4:2:0 - [cpu time: avg 0.003 ms, total 62.5 ms] [avg calls per frame: 1]
20:38:23: Convert444Thread - [cpu time: avg 1.731 ms, total 30125 ms] [avg calls per frame: 1]
20:38:23: | Convert444toNV12 - [cpu time: avg 1.717 ms, total 29875 ms] [avg calls per frame: 1]
20:38:23: encoder thread frame - [cpu time: avg 2.115 ms, total 41796.9 ms] [avg calls per frame: 1]
20:38:23: | sending stuff out - [cpu time: avg 0.41 ms, total 8109.38 ms] [avg calls per frame: 1]
20:38:23: ==============================================================
20:38:23:
20:38:23: =====Stream End: 2016-05-03, 20:38:23=================================================
 

Hijaxxed

New Member
I think I have figured out that all this stuttering is due to a high level of dropped frames, and a high level of frames duplicated.

Does anyone know how to lower these two things?

Here is a more recent log:

Code:
19:03:59: Open Broadcaster Software v0.657b - 64bit ( ^ω^)
19:03:59: -------------------------------
19:03:59: CPU Name: AMD A10-7800 Radeon R7, 12 Compute Cores 4C+8G
19:03:59: CPU Speed: 3493MHz
19:03:59: Physical Memory:  7113MB Total, 5129MB Free
19:03:59: stepping id: 1, model 48, family 21, type 0, extmodel 1, extfamily 3, HTT 1, logical cores 4, total cores 2
19:03:59: monitor 1: pos={0, 0}, size={1920, 1080}
19:03:59: Windows Version: 10.0 Build 10586 (revision 0)
19:03:59: Aero is Enabled
19:03:59: -------------------------------
19:03:59: OBS Modules:
19:03:59: Base Address     Module
19:03:59: 00000000EB040000 OBS.exe
19:03:59: 00000000273C0000 OBSApi.dll
19:03:59: 00000000308D0000 DShowPlugin.dll
19:03:59: 0000000031C70000 GraphicsCapture.dll
19:03:59: 0000000031750000 NoiseGate.dll
19:03:59: 0000000030630000 PSVPlugin.dll
19:03:59: 000000002BA10000 scenesw.dll
19:03:59: ------------------------------------------
19:03:59: Adapter 1
19:03:59:   Video Adapter: AMD Radeon(TM) R7 Graphics
19:03:59:   Video Adapter Dedicated Video Memory: 1041563648
19:03:59:   Video Adapter Shared System Memory: 3729563648
19:03:59:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
19:03:59: =====Stream Start: 2016-05-04, 19:03:59===============================================
19:03:59:   Multithreaded optimizations: On
19:03:59:   Base resolution: 1920x1080
19:03:59:   Output resolution: 1280x720
19:03:59: ------------------------------------------
19:03:59: Loading up D3D10 on AMD Radeon(TM) R7 Graphics (Adapter 1)...
19:04:00: ------------------------------------------
19:04:00: Audio Format: 48000 Hz
19:04:00: ------------------------------------------
19:04:00: Audio Channels: 2 Ch
19:04:00: Playback device Default
19:04:00: ------------------------------------------
19:04:00: Using desktop audio input: Speakers (Realtek High Definition Audio)
19:04:00: Global Audio time adjust: 2
19:04:00: ------------------------------------------
19:04:00: Using auxilary audio input: Microphone (Realtek High Definition Audio)
19:04:00: Mic time offset: 0
19:04:00: ------------------------------------------
19:04:00: Audio Encoding: AAC
19:04:00:     bitrate: 128
19:04:00: Using graphics capture
19:04:00: Using anti-cheat hooking for game capture
19:04:00: Trying to hook process: BFBC2Game.exe
19:04:00: Scene buffering time set to 700
19:04:00: Using custom x264 settings: "cfr=24"
19:04:00: The custom x264 command 'cfr=24' failed
19:04:00: x264: VBV maxrate specified, but no bufsize, ignored
19:04:00: ------------------------------------------
19:04:00: Video Encoding: x264
19:04:00:     fps: 30
19:04:00:     width: 1280, height: 720
19:04:00:     preset: ultrafast
19:04:00:     profile: main
19:04:00:     keyint: 250
19:04:00:     CBR: no
19:04:00:     CFR: yes
19:04:00:     max bitrate: 1000
19:04:00:     buffer size: 0
19:04:00:     quality: 9
19:04:00: ------------------------------------------
19:04:01: SharedTexCapture hooked
19:09:13: FlushBufferedVideo: Flushing 19 packets over 600 ms
19:09:14: Total frames encoded: 9380, total frames duplicated: 4440 (47.33%)
19:09:14: Number of frames skipped due to encoder lag: 64 (0.68%)
19:09:14: Total frames rendered: 5395, number of late frames: 3425 (63.48%) (it's okay for some frames to be late)
19:09:14:
19:09:14: Profiler time results:
19:09:14:
19:09:14: ==============================================================
19:09:14: video thread frame - [100%] [avg time: 53.053 ms] [children: 15.8%] [unaccounted: 84.2%]
19:09:14: | scene->Preprocess - [0.00942%] [avg time: 0.005 ms]
19:09:14: | GPU download and conversion - [15.8%] [avg time: 8.387 ms] [children: 1.1%] [unaccounted: 14.7%]
19:09:14: | | flush - [0.543%] [avg time: 0.288 ms]
19:09:14: | | CopyResource - [0.128%] [avg time: 0.068 ms]
19:09:14: | | conversion to 4:2:0 - [0.428%] [avg time: 0.227 ms]
19:09:14: Convert444Thread - [100%] [avg time: 2.039 ms] [children: 99.3%] [unaccounted: 0.736%]
19:09:14: | Convert444toNV12 - [99.3%] [avg time: 2.024 ms]
19:09:14: encoder thread frame - [100%] [avg time: 2.598 ms] [children: 15.2%] [unaccounted: 84.8%]
19:09:14: | sending stuff out - [15.2%] [avg time: 0.394 ms]
19:09:14: ==============================================================
19:09:14:
19:09:14:
19:09:14: Profiler CPU results:
19:09:14:
19:09:14: ==============================================================
19:09:14: video thread frame - [cpu time: avg 0.822 ms, total 4437.5 ms] [avg calls per frame: 1]
19:09:14: | scene->Preprocess - [cpu time: avg 0.002 ms, total 15.625 ms] [avg calls per frame: 1]
19:09:14: | GPU download and conversion - [cpu time: avg 0.228 ms, total 1234.38 ms] [avg calls per frame: 1]
19:09:14: | | flush - [cpu time: avg 0.086 ms, total 468.75 ms] [avg calls per frame: 1]
19:09:14: | | CopyResource - [cpu time: avg 0.052 ms, total 281.25 ms] [avg calls per frame: 1]
19:09:14: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
19:09:14: Convert444Thread - [cpu time: avg 1.725 ms, total 9265.63 ms] [avg calls per frame: 1]
19:09:14: | Convert444toNV12 - [cpu time: avg 1.722 ms, total 9250 ms] [avg calls per frame: 1]
19:09:14: encoder thread frame - [cpu time: avg 1.774 ms, total 16609.4 ms] [avg calls per frame: 1]
19:09:14: | sending stuff out - [cpu time: avg 0.313 ms, total 2937.5 ms] [avg calls per frame: 1]
19:09:14: ==============================================================
19:09:14:
19:09:14: =====Stream End: 2016-05-04, 19:09:14=================================================
 

Boildown

Active Member
You're running on UltraFast preset but still getting 47% duplicated frames:

19:09:14: Total frames encoded: 9380, total frames duplicated: 4440 (47.33%)

To me this means that your CPU isn't even close to being fast enough.

19:03:59: CPU Name: AMD A10-7800 Radeon R7, 12 Compute Cores 4C+8G

AMD APUs have a bad reputation with gamers for good reason. They just aren't fast enough. Yeah you can play old game like CS:GO at high framerates, but when you ask it to do video encoding at the same time on the same computer, it just collapses under the load.

If you must record your gameplay in some form, use a larger downscale to lower the resolution, record at a lower framerate, like 20fps instead of 30fps, and set the Profile to High instead of Main.

Also,

19:04:00: Using custom x264 settings: "cfr=24"

The command here is c r f, not c f r. So it should be crf=24. But this didn't have an impact on the performance, its just a FYI.
 
Top