Question / Help OBS recording drift out of sync with Audacity recording.

Gaz

New Member
I've been having this issue on and off and I've got no clue how to resolve this except for using different screen capture software.

Basically what happens is that when editing my project in Sony Vegas Pro, I can hear the OBS audio&video track go out of sync with the Audacity track and it happens completely at random. I can split my audacity track move it around to get things back in sync, but it's a lot of extra work that should be unnecessary. There is a slightly audible artifact in the OBS audio recording so I am pretty certain that OBS is dropping frames or something at some point causing the audio to go out of sync.

Here are my OBS settings : http://imgur.com/a/z6TCV

The audio tab it's all set to 160.

The audio menu (on the left) has 48khz sample rate and stereo, same settings as in my Audacity (record at 48khz, 32-bit float and export to .wav at 16bit).
Sony Vegas Pro is set to 48khz and 16 bit.
OBS and Sony Vegas are both set to 30fps.

OBS records to my SSD and never exceeds more than 40%-45% cpu while recording.
Audacity records to my HDD.

Right now I am considering finding a way to extract a .wav from the recorded mp4 file so I can still edit the audio properly in Audacity or completely switching to a different screen recording software, but since I record 3DS gameplay it's hard to find one that records 2 windows at the same time (something OBS handles perfectly).


I think I've added the correct log file, if not see link below. :
http://pastebin.com/hbfeKQHb
 

Attachments

  • 2016-10-18 16-43-25.txt
    11.5 KB · Views: 7

Gaz

New Member
I will try that, but can you elaborate how this might relate to the recording dropping video frames at random?
Maybe what's happening is that OBS itself momentarily stops recording for just a split second, causing both audio and video drop a "frame".
 

Simes

Member
Your log doesn't show any dropped video frames, I couldn't say they might seem to be showing up in Vegas.
 

Gaz

New Member
I installed it and now the log file shows the following which means it's been installed properly, right?

23:27:38.746: [CoreAudio encoder]: Adding CoreAudio AAC encoder
23:27:38.827: [AMF Encoder] Version 1.3.1.0-1.3.0.5
23:27:38.827: [AMF Encoder] <Plugin::AMD::AMF::AMF> Initializing...
23:27:38.827: [AMF Encoder] <Plugin::AMD::AMF::AMF> Loading of 'amfrt64.dll' failed with error code 126.
23:27:43.572: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
23:27:43.657: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
23:27:43.898: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
23:27:44.033: Failed to load 'en-US' text for module: 'obs-browser.dll'
23:27:44.033: [browser_source: 'Version: 1.25.0']
23:27:44.109: NVENC supported
23:27:44.700: Couldn't find VLC installation, VLC video source disabled
23:27:49.357: No blackmagic support


And also the following on my audio tracks

23:28:24.769: [CoreAudio AAC: 'Track1']: settings:
23:28:24.769: mode: AAC
23:28:24.769: bitrate: 160
23:28:24.769: sample rate: 48000
23:28:24.769: cbr: on
23:28:24.769: output buffer: 1536
23:28:24.771: [CoreAudio AAC: 'Track2']: settings:
23:28:24.771: mode: AAC
23:28:24.771: bitrate: 160
23:28:24.771: sample rate: 48000
23:28:24.771: cbr: on
23:28:24.771: output buffer: 1536




I will keep this post updated to see if I still have dropped audio/frames/whatever the problem is causing my audio to slowly drift out of sync with Audacity. It might just be my computer not being able to keep up even though I believe it to be a pretty decent computer lol.
 

Gaz

New Member
I recorded roughly 20 minutes today and I still had, roughly at the 10 minute mark, a small audio drop for a split second causing the OBS audio/video to go out of sync with the audacity recording.
I exported my audacity recording without any editing and with editing to see if there's any issues there. Both tracks are 100% identical.

I was suggested to rename the mp4 to m4v, because that apparently worked for someone else. I was skeptical and .. I was right. That didn't work.

I have 2 things left that I can try.

1. A different video editor to rule out Sony Vegas Pro. I have an old copy of Premiere Pro laying around somewhere that I will give a shot.
2. Change settings in OBS. Change the cpu usage from "veryfast" to "superfast".
still think at some point OBS is crapping out on the encoding while I'm recording, causing a CPU spike or something that my PC can't handle. The logfiles don't indicate any dropped frames though, which makes this a mystery.
I don't see how my PC can't handle it as I'm not pushing it to do anything crazy and I like to believe I've got a fairly decent computer. Nothing cutting edge, but most certainly not lacking.


By the way, I do appreciate your help!
 
Last edited:

Gaz

New Member
Tried premiere pro. Same issue.

Listened to the raw recording and the issue seems to be in the raw file.
So it's definitely an OBS issue for me.

On my next test I will try it with the CPU usage on superfast instead of veryfast.


What I find odd though is that I can find so little information on this subject matter. Either I'm a unique case or nobody cares that their OBS recording is not 100% in sync with their Audacity recording. I've found less than a handful of cases of people with the exact same issue and not one has been able to resolve it.



Part of the reason I worry about it so much is because at some point I want to use a facecam in my recordings. Knowing that OBS is dropping stuff (Whether it's frames, or whatever), I know that the cam will get out of sync as well.
So it's not like I could just use the microphone recording in OBS and call it a day as the issue would still be there.
 

Simes

Member
Only thing I can think of right now is a problem writing to the disk causing frames to be lost, beyond that we'd have to wait for some experts to chime in. Are you writing to a green drive at all?
 

Gaz

New Member
I am actually writing to a Samsung 840 Pro SSD, so write speeds should not be an issue at all. I know it's an older SSD but the read/write speeds are still incredible high compared to any HDD.
After recording I move them to a Seagate 2000 which is my storage drive.
Yea yea I know, shouldn't write to an SSD to prevent wear and tear. I am just trying to eliminate any and all issues at the moment to get this shit resolved lol.

Either way, I am actually in the process of getting a new PC together within the next few weeks. Which will feature an I7 6700k and a Strix-GTX1070. Completely fresh install. So if I am still having issues then, it must be a user error lol.
 
Top