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

Files rejected with tracks in different order #11

Open
SjoerdHekking opened this issue Mar 6, 2024 · 4 comments
Open

Files rejected with tracks in different order #11

SjoerdHekking opened this issue Mar 6, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@SjoerdHekking
Copy link

Dear Mike,

Whenever I try to use the application and select a larger batch then 5 .mkv files, I get this error. I tried comparing their differences, but the containers are the same, anything I could do to help you debug this?

@MikeMoolenaar
Copy link
Owner

MikeMoolenaar commented Mar 6, 2024

Hey could you show me the output of the command mkvinfo run with both one accepted file and one rejected mkv file? Mkvinfo is a tool that comes with MkvToolNix, if you install it and go to the install location in program files on Windows, mkvinfo.exe is next to it.
If you have trouble with that (I don't know how technical you are), you can also run MkvToolNix Gui and go to the "Info tool" tab and show me both a screenshot of a approved and rejected file.

Also, you are free to strip away any file names or paths, I don't really need them to debug. Just the track elements and languages of both files is plenty info.

@SjoerdHekking
Copy link
Author

Dear Mike,

I found the culprit, some of the .mkv's had their subtitles switched a tiny bit (they all have 20~ subtitles), e.g. track subtitle 17 was switched with 18 for a few .mkv's.

That said, MkvDefaultTrackChanger doesn't like it when that happens due to not being able to process those files when they are not completely the same. I solved this by noting down which files were mentioned in the error and applying the batch modification on them as well. Took 2-3 tries per folder of 25~ .mkv's, but it works. The program automatically selects the format of the first .mkv it gets and still changes the other .mkv's that are similar.

Initially, I claimed the error existed when 5 or more files were selected, but the same error happened when only 2 files were selected that differed ever so slightly.

A theoretical solution would be to group these .mkv's and check if they have the "new" default language/audio as well, and apply that with a new index due to the "misalignment".

Could you confirm if that's the case and if the behaviour is expected, I already modified all my files and deleted the original .mkv's. I can still get them if you really want to see the results.

@MikeMoolenaar MikeMoolenaar added the enhancement New feature or request label Mar 7, 2024
@MikeMoolenaar
Copy link
Owner

MikeMoolenaar commented Mar 7, 2024

Ohh I see thanks for figuring it out. Maybe I'll fix it if enough people have this problem, to me it seems like not many people will encounter this. Also, solving the misalignment issue can become pretty complicated.

In the meantime, I'll improve the error message because it's very vague now.

@MikeMoolenaar MikeMoolenaar changed the title The following files were rejected Files rejected with tracks in different order Mar 7, 2024
@JoaquimCarneiro
Copy link

I have the same issue. This is (obviously) solved by deselecting the culprit files or changing the track, file by file, defeating the batch capability of the program. From my point of view, it looks like it's changing the track by its position not by language name (tag?).
Anyway, thanks, this is still a very useful application!

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

3 participants