Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial start offset problem #7

Open
jalexstark opened this issue Jul 26, 2013 · 2 comments
Open

Initial start offset problem #7

jalexstark opened this issue Jul 26, 2013 · 2 comments

Comments

@jalexstark
Copy link

With current version (2013-07-26), I get

position=     -20     1599,    period=20
position=    1600     3199,    period=20
position=    3200     4799,    period=20
position=    4800     6399,    period=20
....

If I make a change to decoder.c

                if (d->frame_start_prev < 0) {
                        /* d->frame_start_off = posinfo - d->snd_to_biphase_period; */
                        d->frame_start_off = posinfo;
                } else {
                        d->frame_start_off = d->frame_start_prev;
                }

I get

position=       0     1599,    period=20
position=    1600     3199,    period=20
position=    3200     4799,    period=20
position=    4800     6399,    period=20
...

as expected.

I have no idea if this is a good idea.

@x42
Copy link
Owner

x42 commented Jul 26, 2013

Check the phase of your LTC signal (and the initial audio-frames-per-videoframes 'apv' setting for ltc_decoder_create - although that seems OK).

the change was introduced in 68f6f3b in the wake of doing scope measurements with a BB timecode generator: https://gareus.org/wiki/a3extsync

@x42
Copy link
Owner

x42 commented Jul 26, 2013

s/phase/polarity/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants