Skip to content

[workaround] Alias "PAL-M" to "MPAL" in get_format_parameters#174

Merged
oyvindln merged 1 commit intooyvindln:vhs_decodefrom
Inky1003:patch-1
Dec 8, 2024
Merged

[workaround] Alias "PAL-M" to "MPAL" in get_format_parameters#174
oyvindln merged 1 commit intooyvindln:vhs_decodefrom
Inky1003:patch-1

Conversation

@Inky1003
Copy link
Copy Markdown

@Inky1003 Inky1003 commented Dec 7, 2024

PAL-M TBCs were not opening in filter_tune tool because .tbc.json file stores "PAL-M", but whatever reason the vhs-decode code calls PAL-M as "MPAL". This aliases "PAL-M" to "MPAL" and makes filter_tune work again.

For later: decide if PAL-M will be named only either "PAL-M", "MPAL" or "PALM".

I suggest calling It "PAL-M" because even though the entire code calls It "MPAL", It's a simple string with no more than 5 characters (in SECAM's case, no more than 8), and nobody calls PAL-M like that. Also, If so, you would need to change the TBC/JSON specifications, and that would break everything.

This fixes PAL-M TBCs not opening in filter_tune tool.
For later: decide if PAL-M will be named only either "PAL-M", "MPAL" or "PALM".
@oyvindln
Copy link
Copy Markdown
Owner

oyvindln commented Dec 8, 2024

Yeah I'm not sure why the code uses MPAL, can probably just change that. I'm not really fond of using a hyphen in the name since it's a symbol that tends to have a meaning in programming and markup languages and thus the name can't map easily to an enum variant so I would maybe prefer PALM or PAL_M to PAL-M.

@oyvindln oyvindln merged commit 4cec658 into oyvindln:vhs_decode Dec 8, 2024
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