News:

ポストを行うにはアカウントの登録を行ってください
Please register account, if you want to post.

Main Menu

How does Dxtory capture audio?

Started by zerowalker, May 23, 2013, 08:12:52 PM

Previous topic - Next topic

zerowalker

1 hour is to little to detect it on most cards.

The sync issues seems to be around 50ms per hour more or less, and either the audio goes to fast or to slow.

1 hour is to little to detect, and hard when you can't compare it, which you can't when you play games.
Which is why i recommend something that goes repeat all the time.

Cause if you really get NO sync issues at 5hours, then that is really something, and i have to try to understand why you don't get any sync issues.

De-M-oN

I'm pretty sure it is also with over 5 hours the case :P

But 5 hours is a little bit very time consuming  :-\

zerowalker

Hopefully it is, but i doubt it.
If it is, it would break what i have concluded;P

If you can have your PC on through when you sleep, please try and record Super Mario World,
It takes no space as it's 2D with Lagarith.

That's how i do it, as i would never record 5 hours of nothing just waiting;P

zerowalker

Exkoder,

Can i get a timing log option?
Cause as said, if i have a timing log, i will be able to get a precise number to sync, it will solve all my problems.

ExKoder

It will not solve the problem.
A special program is required in order to investigate.
Regrettably there is no excessive resource for carrying out the program development.

zerowalker

Why not?
If i can get the relative rate of the audio and video, it will be all i need to make it sync.

There is no need for a special program, all that´s needed is a log where it writes the frametimes and ms per byte for the audio.
Then the relative rate can be calculated and fixed:)

ExKoder

When it is an AVI file, it is a correct time stamp.
Even if it outputs a log, it will be equivalent to the time stamp calculated from AVI file.
For investigating what a cause is, special test is required.
I think that it is difficult to investigate this case since you are not an expert programer.

zerowalker

That depends.

If you output a log compare to how the sample and frametimes are recieved, than it will not be equal to the AVI timestamp.

As when the data is written, Dxtory assumes the AVI is correct, the Video and Audio is the same length also, which i guess comes from how it´s recorded.

Normally the Audio and Video will never be the same length over a long period of time. The audio will either grow shorter or longer then the Video, (if the recording isn't done by a single device and One sync clock).

I would like to know how you Dxtory manages to assume the sync?
Cause if you record with other softwares that does similar things, the audio and video will grow away from each other sooner or later.

Malix

#23
Bump & resurrection of old thread

I just did a test recording out of curiosity, ~2hours of Nestopia (nes emulator)

Both video and audio tracks are the same length, but the audio starts to get delayed  quite a bit, roughly a half a second, at the end of the video.

edit:
recording settings were
60fps capture, lagarith (excessive, I know)
1 audio channel 44.1kHz, 16bit, stereo.

occasionally the recording fps dipped to 58fps, for whatever reason.

Going to make a new test with 30fps capture if the audio lags with that.

zerowalker

There you go:)

I am not alone, the problem exists, and differs from PC to PC, depending on the clock.

It´s weird that they are the same duration though, that has something to do with how Dxtory capture, or handles the streams, as normally, the audio stream and video stream are independent, and should be as long as it takes. But of course if they are in sync, they should be very close to each other.

Malix

Actually, I take that back, audio and video are NOT the same length.

zerowalker

Hmm, very weird.
What does it say if you open the video, and check the wave file (tell me the duration of the video file, and the wave file).

De-M-oN

Just remove the too long audio part so that it is exactly at the .xxx ms same length as the video is.

Malix

Quote from: De-M-oN on June 22, 2013, 06:37:18 AM
Just remove the too long audio part so that it is exactly at the .xxx ms same length as the video is.
doesn't change the fact that the audiosync is way off.

zerowalker

If he removes it, it will still be desynced, he will have to stretch it, but making it the same length at video won´t make the sync precise, however it will probably be close.