plugh
27th January 2008, 01:00
Background:
Trying to extract something useful from a film->PAL->NTSC DVD with blended fields (yuck). Been reading about and experimenting with some of the tools and thinking about the problem in the context of this particular DVD.
Stepping through it with VDM and viewfields() I could track the basic cadence of the PAL->NTSC conversion. ie with bottom field first, '#' being PAL field and 'b' being blended field
1 3 5 7 9 b
0 2 b 4 6 8
Of course thing are never that simple. What with 25/50 vs 29.97/59.94 that pattern both "drifts" and isn't always in a group of twelve fields.
The numerical oddity:
As part of my experimentation, I wanted an expression that would tell me where (what NTSC field) I could find, say, that first blend. (Keep in mind that it 'drifts' and a 'group' won't always be twelve fields long). For this case (ie PAL->NTSC) it seems to be (all integer math)
N*2400/199
where N indicates the Nth occurrance.
I've tested this a couple differant ways, both with synthetic data and against my DVD and it _does_ seem to track the same feature of the conversion cadence.
But it also bugs the hell out of me because I can't find a numerical derivation or justification for it (I derived it through experimentation and inspiration). The only semi interesting observation I can make is 2400/199 equals 12 + 12/199
Beats me... perhaps it fails for very large values of N, or perhaps the numerical error is sufficiently small that it simply falls outside the bounds of the ratio(s) involved with PAL->NTSC (eg 1200/1001), given integer truncation of the result.
Trying to extract something useful from a film->PAL->NTSC DVD with blended fields (yuck). Been reading about and experimenting with some of the tools and thinking about the problem in the context of this particular DVD.
Stepping through it with VDM and viewfields() I could track the basic cadence of the PAL->NTSC conversion. ie with bottom field first, '#' being PAL field and 'b' being blended field
1 3 5 7 9 b
0 2 b 4 6 8
Of course thing are never that simple. What with 25/50 vs 29.97/59.94 that pattern both "drifts" and isn't always in a group of twelve fields.
The numerical oddity:
As part of my experimentation, I wanted an expression that would tell me where (what NTSC field) I could find, say, that first blend. (Keep in mind that it 'drifts' and a 'group' won't always be twelve fields long). For this case (ie PAL->NTSC) it seems to be (all integer math)
N*2400/199
where N indicates the Nth occurrance.
I've tested this a couple differant ways, both with synthetic data and against my DVD and it _does_ seem to track the same feature of the conversion cadence.
But it also bugs the hell out of me because I can't find a numerical derivation or justification for it (I derived it through experimentation and inspiration). The only semi interesting observation I can make is 2400/199 equals 12 + 12/199
Beats me... perhaps it fails for very large values of N, or perhaps the numerical error is sufficiently small that it simply falls outside the bounds of the ratio(s) involved with PAL->NTSC (eg 1200/1001), given integer truncation of the result.