gnoling / UnlinkMKV

Merges ordered chapters / segmented MKVs back into a single file.
MIT License
149 stars 8 forks source link

File failed to build #61

Open gqunukhwebe opened 2 weeks ago

gqunukhwebe commented 2 weeks ago

I'm trying to merge the openings and endings into the episodes from https://nyaa.si/view/422420 using unlinkmkv. It has worked fine on other anime before, but it doesn't work with this one because it only gives 4.3 KB files if I use unlinkmkv regularly, and it says "file failed to build" for all episodes. The audio codec is "Japanese, 48.0 kHz, 2 channels, AAC LC" for some episodes and "Japanese, 48.0 kHz, 2 channels, AAC LC SBR (Explicit) (HE-AAC)" for others, and I think that might be the problem. How do I use unlinkmkv on files that have that specific audio codec?

gnoling commented 2 weeks ago

Looks like there are no seeders so unfortunately I can't check closer.

If you run unlinkmkv with -ll trace it might give you a better idea of what the problem is.

For audio codec issues, there are only really two options in unlinkmkv. The first is "fix audio" which is --fixaudio, which will just re-encode the audio with ffmpeg using the template for the option in unlinkmkv.ini.

The other audio issue involves FLAC since it's not append-able when merging, but that isn't actually an option and gets auto-detected. When that happens the audio gets converted to ALAC for merging, then converted back to FLAC post merge.

I would run UnlinkMKV with the trace option first, but make sure you only have the needed files for merging in the directory when you do so and not the entire series for this. Trace level logging creates a lot of output, which includes when it's scanning looking for segments.