ld-export-decode-metadata tool to export SQLite metadata #991
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is the
ld-export-decode-metadatatool, that allows to export the metadata that is now stored in the SQLite database into a JSON format, that is effectively the old internal metadata format.This allows many external tools to continue working without any changes required (mostly used in vhs-decode workflows, like audio synchronization tools, custom stackers and some statistics tools)
It is heavily based on
ld-json-converter, but it uses the tbc library to read the SQLite database. It has a copy of the previous JSON metadata code to write the JSON, with the class renamed to avoid naming conflicts. All fields are copied individually by value as they are provided by the API to maintain compatibility when internal metadata structure changes.As I couldn't find any tests for
ld-json-converterI did not write any for this tool either. If I just missed them, please point me to them I will add tests for this as well.It is separate from
ld-export-metadata, as it does not export metadata that was part of the original signal, but metadata generated in the decode process.