Skip to content

relaxed line0 option (makes my poor-condition tapes decode successfully)#252

Merged
oyvindln merged 6 commits intooyvindln:vhs_decodefrom
JonasCz:jons/relaxed-vsync-option
Dec 4, 2025
Merged

relaxed line0 option (makes my poor-condition tapes decode successfully)#252
oyvindln merged 6 commits intooyvindln:vhs_decodefrom
JonasCz:jons/relaxed-vsync-option

Conversation

@JonasCz
Copy link
Copy Markdown

@JonasCz JonasCz commented Dec 2, 2025

A disclaimer: I don't really know why this works, or what is particularly wrong with my tapes that makes them not decode properly (I suspect they are misrecorded in a way that makes --fallback_vsync line0 detection just barely work (one out of every few fields), and this makes it reliable). But I threw the problem at an LLM, and it came up with this solution. I added it as an option, but maybe this should be default? I have no idea..

Video sample, first clip is without the fix, then repeating after with the fix: (without fix it drops a bunch of fields as shown here, leading to "stuck" fields, or (not shown) without fix and and with --field_order_action none it seems to have all the fields but there is vertical jitter instead, like on my JVC VCR TBC.

With fix is the second half:

Untitled.mp4

RF sample for the above, for someone who wants to play with it:

https://drive.google.com/file/d/1b5ZNJsAoePecl45MCpBz2228os3fr3kU/view?usp=drive_link

Not tested with NTSC or other tapes, I suspect that this may not work correctly for NTSC (but not tested)

@oyvindln
Copy link
Copy Markdown
Owner

oyvindln commented Dec 4, 2025

Even though I'm a bit iffy about too much LLM code I'll merge this since it's a separate option and shouldn't mess with existing behaviour.

Might change the argument in the future though.

@oyvindln oyvindln merged commit 3261fec into oyvindln:vhs_decode Dec 4, 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