Sushi.Net icon indicating copy to clipboard operation
Sushi.Net copied to clipboard

"Index was outside the bounds of the array." error

Open Sawtaytoes opened this issue 1 year ago • 4 comments

v0.9.2

No matter what I try, I get "Index was outside the bounds of the array."

Here's the correct version of the command I should be typing (based on the IDs in the MKV file):

Sushi.Net.exe --type subtitle --src-script=5 --src-audio=4 --dst-audio=2 --src "bd.mkv" --dst "uhd.mkv"
[Demuxer] Getting Media information for bd.mkv
[Demuxer] Getting Media information for uhd.mkv
[Sushi] Using default track 1 (Surround 5.1): truehd, 48000 Hz, 5.1(side), s32 (24 bit) (default) in bd.mkv
[Sushi] Using default track 1 (Surround 5.1): pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, 5.1(side), s32 (24 bit), 6912 kb/s (default) in uhd.mkv
[Sushi] Index was outside the bounds of the array.

I tried all 0, all 1, and all 2, but nothing worked.

I have a Japanese UHD Blu-ray of a movie that I originally only had a US Blu-ray. I want to put the US Blu-ray's subtitles in the Japanese release. Both have the same Japanese audio, so I want to move it there, but the English audio is the first one on the US release, so I need to choose the correct audio ID.

What am I doing wrong to get that error?

Sawtaytoes avatar Oct 10 '23 05:10 Sawtaytoes

Sorry for the delay, does the original file have image subtitles? Image subtitles are not supported at the moment.

Anyway, the good news, is, all this years, i was updating this project, but didn't commit to this repo, because i need to clean it up first. So a new version is incoming....

maxpiva avatar Oct 13 '23 17:10 maxpiva

That's a great question. I'm actually not sure how to check for image subtitles other than maybe going through the file itself.

I can't remember which one I was trying that day, but I had some with fonts that changed if I didn't do the MKV copy correctly, so I'm thinking they're text.

Sawtaytoes avatar Oct 13 '23 18:10 Sawtaytoes

is project, but didn't commit to this repo, because i need to clean

Any ETA on the new version? I'm quite interested.

Joost1991 avatar Nov 28 '23 12:11 Joost1991

Just updated, tell me how it goes.

maxpiva avatar Nov 28 '23 19:11 maxpiva