Skip to content

hifi-decode: use other channel as dropout compensation data when muting#270

Merged
harrypm merged 5 commits intooyvindln:vhs_decodefrom
eshaz:hifi-doc
Jan 28, 2026
Merged

hifi-decode: use other channel as dropout compensation data when muting#270
harrypm merged 5 commits intooyvindln:vhs_decodefrom
eshaz:hifi-doc

Conversation

@eshaz
Copy link
Copy Markdown

@eshaz eshaz commented Jan 26, 2026

Changes

  • Rename --muting to --doc and add options to control the level of dropout compensation.
      --doc                 Dropout compensation method (what happens when there is no hifi carrier) 
                            full 	copies audio from the other channel, or mutes if both channels have a dropout [default]
                            mute 	always mute dropouts
                            off 	disabled
    
    • --doc full -> (default) Use L channel audio for R dropout compensation and vice versa. Mute if there is also a dropout in the other channel
    • --doc mute -> Only mute the dropouts
    • --doc off -> No dropout compensation
  • Add dual mono audio modes which saves each channel to a separate file.
    --audio_mode          Audio modes 
                           s 	Stereo (L, R) [VHS default]
                           ms 	Stereo (L+R, L-R) [8mm default]
                           d 	Dual Mono (L) (R) 
                           dms 	Dual Mono (L+R) (L-R) 
                           l 	Mono (L) 
                           r 	Mono (R) 
                           sum 	Mono Sum (L+R)
    
    • Useful for tapes that have two different audio tracks on each channel, i.e. over dubs
    • Channels are normalized independently
    • dropout compensation is limited --doc mute for dual audio, since the two channels do not relate to each other

Dropout compensation example

image
  • Top: New behavior, copies from other channel for dropout compensation
    doc_full.mp4
  • Middle: Original behavior, mutes dropouts
    doc_mute.mp4
  • Bottom: No dropout compensation
    doc_off.mp4

@harrypm harrypm merged commit 67918f9 into oyvindln:vhs_decode Jan 28, 2026
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