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

[wishlist] Aligning multiple files #38

Open
chrysn opened this issue Aug 13, 2021 · 2 comments · May be fixed by #39
Open

[wishlist] Aligning multiple files #38

chrysn opened this issue Aug 13, 2021 · 2 comments · May be fixed by #39

Comments

@chrysn
Copy link

chrysn commented Aug 13, 2021

I sometimes have multiple subtitles to be aligned against the same file. Is any speed to be gained from processing them simultaneously? (I figure that at least the ffmpeg extraction would only be run once).

If the alignment quality is output (cf. #29), multiple subtitle files (in the same language, but maybe for unknown cuts) could be entered, and the one that actually matches the film be picked; maybe even selected automatically into the output file.

@kaegi
Copy link
Owner

kaegi commented Aug 13, 2021

You can extract the audio data with

alass myMovie.mkv _ out.srt

If you then synchronize against out.srt it's the same as if you'd synchronize against the movie (I implemented this more as a debugging tool but it comes in handy here). Otherwise you can not get speed improvements with multiple files. The algorithm has to be run for each pair of subtitles individually - there is no pre-processing.

@chrysn
Copy link
Author

chrysn commented Aug 13, 2021

Thanks, that solves the duplicate-processing issue; the question of assessing match quality is probably better left to #29 then. I'm opening a PR to document the underscore feature, which would hopefully have sent me on the right track in the first place.

@chrysn chrysn linked a pull request Aug 13, 2021 that will close this issue
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 a pull request may close this issue.

2 participants