Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ld-export-metadata #399

Merged
merged 3 commits into from
Jan 6, 2020
Merged

Conversation

atsampson
Copy link
Collaborator

This is a new command-line tool for converting information from the JSON file into formats that other tools can understand. At present, it can do:

  • CSV export of VITS and VBI information (as ld-analyse already does)
  • FFMETADATA1 export of chapter information decoded from VBI, ported from my decode-vbi script; you can use this to automatically add chapters to Matroska files.

I've tested FFMETADATA1 export against all the decoded discs I had around, and it seems to produce reasonable results for anything that has chapters.

Exporting CC subtitles as SRT would be a useful future extension.

@atsampson atsampson added enhancement ld-decode-tools An issue only affecting the ld-decode-tools labels Jan 4, 2020
@atsampson
Copy link
Collaborator Author

Review question: I put the FFMETADATA1 code in ld-export-metadata, because it's a bit too complex (and magical) to be an LdDecodeMetaData method. Should the other two existing export modes be the same? Or should they all be in, say, library/tbc/export.cpp...?

@simoninns
Copy link
Collaborator

I'm not a big fan of duplicating functionality :) I also think a separate tool is the better approach to metadata export. I'd be happy if both export functions in the metadata library were removed and placed in the ld-export-metadata app locally. Then both functions can be removed from the library and ld-analyse as they will not be required.

To start with, this provides a command-line interface to
LdDecodeMetaData's existing CSV export methods.
Simon suggested that it'd be better to have this in the export tool.
You can feed the output of this into ffmpeg, to produce (for example)
Matroska output with chapter markers. Stop codes are just listed as
comments at the moment.

This is a straight translation of my decode-vbi Python program.
@atsampson
Copy link
Collaborator Author

This now moves all the export code into ld-export-metadata, and removes the ld-analyse GUI bits for it.

@simoninns simoninns merged commit 525492b into happycube:master Jan 6, 2020
@atsampson atsampson deleted the exportmetadata branch January 6, 2020 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ld-decode-tools An issue only affecting the ld-decode-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants