Question / Help audio problems, desync? (live gamer portable)

Lain

Forum Admin
Lain
Forum Moderator
Developer
Re: audio problems,desync ?

Oooh, then it wasn't the problem I thought it was then. It was just the desktop audio time base. That means it wasn't actually a problem with the LGP. You have one of those rare cases where your PC's sound device is returning slightly off sound timestamps for desktop sound (which is used as the audio time base for OBS1). Fortunately it's very rare, and that fix does tend to work. Makes sense now. I probably should have suggested that sooner, thanks for pointing it out.
 

stelzig

Member
Re: audio problems,desync ?

so force desktop audio to use video timestamps is what fixed it? Cool, thanks. Funny that it only started happening a week or two ago, but i'm glad it's resolved :)
 
Re: audio problems,desync ?

So basically use the force desktop audio and use 30fps is what fixed it for you rapid. I assume you're using the use buffer option as well. Tried a test with xsplit and game audio was synced up, but you know xsplit the resource hog and I don't like that it doesn't have the option to play audio to device only:(

* Jim would love to have a fix for a synced up 60 fps, streams look very smooth that way.

Do you think switching which usb ports might help?
 

stelzig

Member
Re: audio problems,desync ?

(i'm not rapid hehe)
I did both changes at the same time, afterall it takes 30-60 minutes for each "test" so I didn't have patience to go one by one thing. It sounds like it wasn't changing FPS that fixed it. I can try setting it to 60fps and see if it makes my audio desynch again.
 
Re: audio problems,desync ?

lol sorry about that stelzig

Tried a cast tonight game audio was behind again? Not sure really what else to try? Might try updating my audio drivers or something?
 

stelzig

Member
Re: audio problems,desync ?

Alright so 4 hours with no audio desynch yesterday so this is definitely fixed for me. HOWEVER the capture card as a whole now slowly desynchs with my mic and the window capture of my timer. It becomes very apparent that I split (speedrunning ;)) a second "early" at the end of my last stream, while it was perfectly in synch at the start of it.

Is there some smart fix for this as well? I know I could delay the mic, but since this is also a gradual desync like the games audio before... It also wouldn't fix the timer which bothers me more.

Edit: I looked at a past broadcast from a few days ago and I think (not sure) the video used to be in synch with my window capture when the audio lagged behind, but yeah now video audio is in synch, but lagging behind my window capture (and mic)...

I had a bunch of other stuff written here before but I looked through some more stuff and it didn't make sense so ignore it if you read it.
 

stelzig

Member
Re: audio problems,desync ?

Well I already said what I changed. I enabled "Force desktop audio to use video timestamps as a base for audio time" in the advanced settings.

I also put the capture in the stream engine back to 30fps (like it used to be, and my game is 30fps anyway), but I doubt this is what fixed it. Especially since it still desynchs with my mic and my window capture.

Edit: And I didn't undo any of the other suggested changes so my audio is still 44.1 khz and I still have "use buffering" enabled.
 

RapidV

New Member
Re: audio problems,desync ?

hmm thats weird ive pretty much been using those settings since day one and still had the problems my current settings are:

audio encoding:

aac / bitrate:128 / format: 44.1khz stereo ( microphone disabled just using game sound )

in the advanced tab i have process priority class normal / scene buffering time 400 / force desktop audio to use video timestamps checked

LGP stream engine settings: use buffering checked / use output format yuy2 not checked / fps 30 / video bitrate 30.0 mpbps / frame rate 30 / audio bitrate 128 and thats it even tho in the obs video settings i have filter bilinear (fastest) / disable aero unchecked,for some reason it wont let me change either of those weather there important or could cause issues i do not know ?
 

stelzig

Member
Re: audio problems,desync ?

The only differences I can think of that I have is that my audio bitrate is 192 and I have aero disabled (as well as switched to windows 7 basic theme long ago which I believe does the same thing).
Don't have my capture card by me right now so I haven't checked the LGP settings, but i'm assuming they're the same :P
 
Re: audio problems,desync ?

I think my problem has to be with my sound drivers or something because I can't for the life of me get the game audio to stay in sync with the gameplay. I may have to test it out on my secondary laptop.
 

RapidV

New Member
Re: audio problems,desync ?

same here but im using a pretty new rig and im sure everythings up to date atm ( only a few weeks old ) ill just have to forget about this for now as annoying as it is :/ might aswell try and solve something else thats been bugging me,do you guys know how to set up component games on the lgp ? (ps2,wii ect) i heard its possible but cant find any vids anywhere.
 
Re: audio problems,desync ?

Rapid My only guess would be to try and find some sort of component to hdmi adapter but not sure how or if that would work.
 

stelzig

Member
Re: audio problems,desync ?

Desync came back today. Ah well. At least it's better than before since I managed a 4 hour stream without one earlier.

RapidV: The only difference between doing component and hdmi is simply using changing the input to component in the stream engine (or componet as it calls it hahaha)...
 

stelzig

Member
Re: audio problems,desync ?

I recorded something from the LGP stream engine in a seperate program today and every time I tried cutting the video, the desynch would happen. No matter where I did it. No deleting either part after cutting, just desynched even if I did nothing but cut it and let the two videos play right after eachother. Dunno if this will help finding the root of this problem at all, but thought it was worth mentioning.

Edit: Well actually here the audio gets ahead while when streaming it gets behind. Guess it isn't the same, but i'm still hella confused...
 

RapidV

New Member
Re: audio problems,desync ?

yer ive been noticing allot of ppl with desync issues lately and the more i do the more i think its an obs issue or bug
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Re: audio problems,desync ?

I've tried to state this numerous times but unfortunately it keeps getting lost among the posts. I should probably make a sticky.

If you are having microphone sync issues, there are numerous options in advanced for this, Mic QPC timestamps should be tried first (with at least 700 scene buffering time). If that fails, you should then try "mic sync fix hack" with QPC off. (This is uncommon to have to use, but admittedly is an OBS1 audio subsystem design flaw).

For desktop audio sync with programs/games on the same system, in rare circumstances there might be some hardware issue with it, in which case "force audio timestamps to sync to video time" is necessary, and almost always do the trick. (Not an OBS bug, this is a hardware issue in this case)

For video capture devices that have audio, especially USB capture devices, then you need to use "Use buffering" to force the sync. It's unbuffered by default because most devices handle unbuffered fine, and it's better performance. (Not buffering is almost always the problem, but sometimes the audio data can burst with some devices and it can cause problems)

Otherwise, there's "time adjust" controls for all the audio devices. "Mic time offset" in audio settings, "Audio time offset" on devices. These allow you to manuall sync things. Even a "global audio time offset" in advanced if it's ever needed for whatever reason. You can literally manually force the audio forward or backward in time with positive or negative values, in milliseconds. (Capped by how much "scene buffering time" you have)

The audio system is -not- perfect. I repeat, it's not perfect, otherwise "mic sync fix hack" would not be necessary to account for data bursts. That's actually a flaw with the audio subsystem design that's difficult to deal with currently. This will be fixed with the rewrite, but while I'm working on the rewrite (which has a better audio subsystem), you currently should have all the tools in OBS1 that you need to solve the problem.
 

stelzig

Member
Re: audio problems,desync ?

The problem with manual offsets is that the device audio doesn't start out as desynch'd. unchecking/checking the source quickly also instantly resynchs it, but sadly ends local recording (from stream engine). It works as a solution for now though I guess. I hope that rewrite will turn out to really get rid of the problem :)
 

RapidV

New Member
Re: audio problems,desync ?

How are you able to check and uncheck the source during stream ? when ever i try it just makes everything crash or not respond so i have no choice but to stop the stream and restart it !
 

RapidV

New Member
Re: audio problems,desync ?

RapidV said:
How are you able to check and uncheck the source during stream ? when ever i try it just makes everything crash or not respond so i have no choice but to stop the stream and restart it,btw where is this source checker located again its been so long ive forgot lol
 
Top