Chad 2026.06.21 ntscfixes#1048
Merged
Merged
Conversation
… offset The old shift33 constant (83° in radians, treated as output samples by apply_offsets) had a unit mismatch that made the math opaque and produced ~139° median burst phase instead of the correct ~147°. Replaced with a direct formula: fsc_phase_deg=122.5 converted to input samples via the subcarrier period. Includes investigation notes documenting what was ruled out (filter phase, comb filter, sinc interpolation, burst locking damping, outlinelen rounding, etc). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…row audio notch Three changes to eliminate ~10° differential phase between burst (0 IRE) and 70 IRE color bar measurements: - Split RF BPF into independent HP order 2 / LP order 3 (was single BPF order 4), reducing sideband asymmetry on the low-frequency skirt - Generalize post-demod group delay equalizer for NTSC (IEC 60857 9.1.7) in addition to PAL (IEC 60856 9.1.6), correcting LPF undershoot across the chroma band - Narrow NTSC audio notch width from 350 kHz to 200 kHz (matching PAL), cutting the notch filters' group delay contribution to differential phase - Recalibrate fsc_phase_deg from 122.5° to 117.25° for the new filter chain Result on he010 color bar disc (30 frames): DP reduced from ~10° to 0.7°, with Phase (70 IRE bar) at 147.7° and MedPhase (burst) at 147.0°. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Checklist
Description
Adapt dp11's filtering improvements to NTSC.
Motivation
Fixes color phase at different amplitudes.
Related Issues
Changes Made
Testing
pytest --output-on-failure)Screenshots (if applicable)
Additional Notes
The color decoder should detect the reduced amplitude (which was never quite full anyway) and boost decoding accordingly.