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

VBI frame numbers on A-ko #332

Closed
Gamnn opened this issue Sep 17, 2019 · 7 comments · Fixed by #400
Closed

VBI frame numbers on A-ko #332

Gamnn opened this issue Sep 17, 2019 · 7 comments · Fixed by #400
Labels
enhancement ld-decode An issue only affecting the ld-decode[r]

Comments

@Gamnn
Copy link
Contributor

Gamnn commented Sep 17, 2019

There's an odd pattern to the frame numbers on the first A-ko movie, on both the original and re-release. It comes out something like this, both in ld-decode and ld-process-vbi:

file frame 18521 unknown
file frame 18522 CAV frame 16665
file frame 18523 CAV frame 16663
file frame 18524 CAV frame 14765
file frame 18525 CAV frame 14766
file frame 18526 unknown
file frame 18527 CAV frame 16665
file frame 18528 CAV frame 16663
file frame 18529 CAV frame 14769
file frame 18530 CAV frame 14770
file frame 18531 unknown

Scrolling through on a player shows the proper frame numbers, without the odd non-sequential numbers after each pulldown frame (unknown).

sample

@atsampson
Copy link
Collaborator

In the frames that report incorrect numbers, VBI line 17 has a mangled value, but line 18 is correct:

Info: decoded 17= 16335365 18= 16335365 to picno= 14205
Info: decoded 17= 16335366 18= 16335366 to picno= 14206
Info: decoded 17= 16343007 18= 16335367 to picno= 16645
Info: decoded 17= 16343005 18= 16335368 to picno= 16643
Info: decoded 17= 16335369 18= 16335369 to picno= 14209
Info: decoded 17= 16335376 18= 16335376 to picno= 14210
Info: decoded 17= 16343005 18= 16335377 to picno= 16643
Info: decoded 17= 16343007 18= 16335378 to picno= 16645

e.g. line 17 for picno 14212 has the nonsense value 0xf95fdf, rather than 0xf94212.

A reasonably simple fix in vbidecoder.cpp would be to check that the BCD digits are actually in the range 0-9 before trusting the value -- this would also help with dropouts in the VBI.

@simoninns
Copy link
Collaborator

Good idea @atsampson - also the fallback for a failed VBI code could also be to try to use line 18 instead (since the check condition would be there anyway).

@simoninns simoninns added enhancement ld-decode-tools An issue only affecting the ld-decode-tools labels Sep 17, 2019
@simoninns
Copy link
Collaborator

Fixed

@Gamnn
Copy link
Contributor Author

Gamnn commented Dec 31, 2019

It's still a little off, but only in the VBI frame number ranges of 9000-9999, 19000-19999, and 28000-28999 where it reports them as early CLV timecodes.

file frame 35068 CAV frame 27996
file frame 35069 CAV frame 27997
file frame 35070 CAV frame 27998
file frame 35071 CAV frame 27999
file frame 35072 unknown
file frame 35073 early-CLV minute 743
file frame 35074 early-CLV minute 743
file frame 35075 CAV frame 28002
file frame 35076 CAV frame 28003
file frame 35077 unknown
file frame 35078 early-CLV minute 743
file frame 35079 early-CLV minute 743
file frame 35080 CAV frame 28006
file frame 35081 CAV frame 28007

9000.zip
19000.zip
28000.zip

It appears to only be broken in ld-decode.
ld-process-vbi adds the correct CAV framenumber, but does not remove the erroneous CLV timecode.

@happycube happycube reopened this Dec 31, 2019
@simoninns simoninns added ld-decode An issue only affecting the ld-decode[r] and removed ld-decode-tools An issue only affecting the ld-decode-tools labels Jan 1, 2020
@simoninns
Copy link
Collaborator

Updated labels as this isn't an ld-decode-tools issue

@Gamnn
Copy link
Contributor Author

Gamnn commented Jan 13, 2020

Still an issue in ld-decode on ranges 38000 through 39999.

ld-analyse displays the correct frame numbers even without running it through ld-process-vbi, so seems to mainly be a display issue?

38000.zip
39000.zip

@Gamnn
Copy link
Contributor Author

Gamnn commented Jan 13, 2020

scratch that- was on the wrong commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ld-decode An issue only affecting the ld-decode[r]
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants