Skip to content

add option to auto adjust levels using hsync to sync ratio - #314

Merged
harrypm merged 1 commit into
oyvindln:vhs_decodefrom
eshaz:ire-adjust-hsync
May 8, 2026
Merged

add option to auto adjust levels using hsync to sync ratio#314
harrypm merged 1 commit into
oyvindln:vhs_decodefrom
eshaz:ire-adjust-hsync

Conversation

@eshaz

@eshaz eshaz commented May 4, 2026

Copy link
Copy Markdown

Description

Adds optional functionality to --ire0_adjust that fixes brightness variations caused by automatic gain control.

Motivation

Some VCRs have automatic gain control that change the video levels of the source before recording to tape. When decoding a tape that had AGC enabled and active, this can result in sudden changes in amount of frequency deviation assigned to 1 IRE unit. This visually appears as sudden overall brightness changes.

This change automatically corrects levels on a per-field basis using the measured ratio between the hsync pulse levels and the black level so the video maintains a consistent brightness.

Changes Made

  • Add optional arguments to the --ire0_adjust option
    • backporch What ire0_adjust uses currently, and is defaulted when --ire0_adjust is supplied without an argument
    • hsync The new level correction that uses the ratio between the hsync pulse and the black level

@harrypm harrypm added the enhancement New feature or request label May 8, 2026
@harrypm
harrypm merged commit ae1d9bd into oyvindln:vhs_decode May 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants