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

Support Delayed Tracks #25

Open
werrpy opened this issue Dec 26, 2022 · 1 comment
Open

Support Delayed Tracks #25

werrpy opened this issue Dec 26, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@werrpy
Copy link

werrpy commented Dec 26, 2022

Kino Lorber BD; Not sure how this would be done

Get a full bdinfo log, look at the Files section, run mediainfo on the first M2TS file. If the file has a video track, but no audio, then other audio, subtitles, and chapters need to be delayed by length of the file.

Use the length property from mediainfo and add delay to eac3to demux command

from datetime import datetime
# for example, first_file["length"] = '0:00:11.010'
length = datetime.strptime(first_file["length"], "%H:%M:%S.%f")
delay = int(length.second * 1000 + (length.microsecond / 1000))
# track_delay = "+11010ms"
track_delay = "+{}ms".format(delay)

Then demux, assume audio track is track 2, and needs a delay of 11010ms.

eac3to 1) 2:audio.dtsma +11010ms
@TMD20
Copy link
Owner

TMD20 commented Dec 27, 2022

Thank you for providing an example.

I should hopefully be able to find a way to implement this. So that it works, and is not too crazy.

@TMD20 TMD20 added the enhancement New feature or request label Dec 29, 2022
@TMD20 TMD20 changed the title Kino Support Delayed Tracks Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants