Skip to content

Improve fallback_vsync to handle fields with partly corrupted hsync area#192

Merged
oyvindln merged 5 commits intooyvindln:vhs_decodefrom
Stefan-Olt:vhs_decode
Mar 15, 2025
Merged

Improve fallback_vsync to handle fields with partly corrupted hsync area#192
oyvindln merged 5 commits intooyvindln:vhs_decodefrom
Stefan-Olt:vhs_decode

Conversation

@Stefan-Olt
Copy link
Copy Markdown

This improves the get_line0_fallback function used by --fallback_vsync to use some more tricks to find the line0 pulse: It will not only consider pulse length, but also pulse distance to detect different parts of the blanking area. The old method (just return last vsync pulse before a long pulse) is the last fallback when the more advanced methods do not work.
Additionally get_line0_fallback will also detect field type and determine how confident the field type detection is and return these values. Those are passed to get_first_hsync_loc that will use them if either confidence of get_line0_fallback is very high or if there was no previous field detected

@Stefan-Olt Stefan-Olt marked this pull request as ready for review March 14, 2025 15:44
@oyvindln oyvindln merged commit 3cc4a97 into oyvindln:vhs_decode Mar 15, 2025
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

Successfully merging this pull request may close these issues.

2 participants