gnoling / UnlinkMKV

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

Finished files disappearing #17

Closed counterfit closed 7 years ago

counterfit commented 7 years ago

While processing the entire directory, I get the expected output:

(G_P) Patlabor TV 1080p/(G_P) Patlabor TV 47(x264 1080p)(86067C39).mkv contains segmented chapters generating chapter file loading chapters non-default chapter dropped writing chapter temporary file looking for segment parts checking that all required segments were found extracting attachments creating splits setting parts extracting subs making substyles unique mashing unique substyles to all parts remuxing subtitles building file fixing subs, again... (maybe an mkvmerge issue?) moving built file to final destination

Everything seems to work, except the files disappear after being moved. They don't seem to exist anywhere on the filesystem at all after that.

gnoling commented 7 years ago

Try it with: -ll TRACE

To give extremely verbose output and paste them back.

counterfit commented 7 years ago

I'll have the results soon. Trying to figure this out has led to a rabbit hole of software updates and hardware issues, including a hard drive replacement. Short version: I think the files might not actually be using linked segments, but they're being recognized as if they are.

gnoling commented 7 years ago

I went ahead and tracked down this release based on the filename from your initial report. It looks like the two options you'll need to use are:

--ignoredefaultflag --fixvideo

The default flag is causing your reported issue (just use that option to work around it), however after you get past that you'll find that the ending video wasn't encoded in a way (video stream only) that can be appended successfully, so you'll also have to use --fixvideo to re-encode the video streams.

counterfit commented 7 years ago

An initial try with your suggestion also didn't work, but then I updated mkvtoolnix and then it worked as expected. The clue was trying to redo a series that I knew for a fact used linked segments, and no linked segments being found.

gnoling commented 7 years ago

Was the mkvtoolnix version you used the one bundled in the dist dir? Maybe I need to update it.

counterfit commented 7 years ago

I think it was a older version I had installed through Homebrew.

Elbadry1 commented 7 years ago

i'm downloading mini mkv anime from the site which encoded it 10 bit , so after using unlink merge the resulted file is corrupted , any soln

gnoling commented 7 years ago

Can you please open a new issue? I'm going to close this one.

As for 10 bit, that should make no difference as long as your ffmpeg is new enough to support it. The resultant file won't be 10-bit however.