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

Improve STL GSIBlock write #75

Merged
merged 3 commits into from
Jan 20, 2023

Conversation

dlecorfec
Copy link
Contributor

This PR allows astisub to write a STL file with a GSIBlock closer to the STL file read, by adding the copy of the fields revisionNumber, translatedEpisodeTitle, translatedProgramTitle, translatorContactDetails and translatorName to/from the Subtitles.Metadata. Also the translatedEpisodeTitle and translatedProgramTitle were in reverse order in the output block (I checked in the EBU spec).

Why? I'm investigating why the write to STL doesn't seem to produce a valid STL (valid tcin/tcout but no text when converting that STL back to WebVTT), so I try to get the convert -i in.stl -o out.stl to produce a close (perfect?) copy, so I'm starting with the GSIBlock ...

@asticode
Copy link
Owner

Thanks for the PR!

Tests seem broken, you'll need to fix them as well. Let me know if you need some guidance for that 👍

@dlecorfec
Copy link
Contributor Author

Oops sorry! This should do the trick.

@asticode asticode merged commit 7acfe23 into asticode:master Jan 20, 2023
@asticode
Copy link
Owner

Cheers! ❤️

@dlecorfec dlecorfec deleted the improve-stl-gsiblock-write branch January 20, 2023 11:39
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.

None yet

2 participants