• Welcome to Maher's Digital World.

"Linked" *.mkv merge

Started by Hakumei, December 27, 2012, 08:36 PM

Previous topic - Next topic

Hakumei

Hi guys  ;).
Sorry, if i'm putting this in wrong place.

I have really big problem. I need to merge "linked" *.mkv files back, 3 files into 1.
I need to merge this files into one without re-encoding.
I know about *.avs script and DirectShowSource() command, but this need re-encoding and i need to avoid this.

Example for episode 1:
Menu
00:00:00.000                             : en:Prologue / en:Opening / :Ending
00:07:50.003                             : en:Episode
00:20:45.044                             : :Preview

Episode time: 21mn 15s
Opening time: 1mn 25s
Ending time: 1mn 30s
00:00:00.000 Prologue -> 00:07:50.003 Opening -> 00:09:15.003 Episode -> 00:20:45.044 Ending -> 00:22:15.044 Preview
Episode+Opening+Ending time: ~00:24:10

If somebody know what i mean, i beg for help (programs, tutorials, anything).


Edit: And really sorry for my horrible english.

Ahmad

Hello :)

Do you know about MKVtoolnix ?

If so, install it and then, open mkvmerge GUI from start menu..
Click add, and choose the first file you want..
Then, click append, and choose the second file..
Then, click append, and choose the third file..
... and so on append for the rest of the files.
Click Browse to specify the output folder.
Then, click Start muxing.

I haven't tried that before, but just did after you asked..
Thanks for making me learn.  :D
Muhammad is the messenger of Allah.

Daniil

Hakumei, sorry, but I can't recommend you anything, I never worked with merging video files before. Maybe Ahmad's method would help you, looks like it can resolve the problem. Also, please tell us, what's the result, did it help?

Also, can't keep silent - your anime collection is so kawaii!! ;D I'll download some from it, especially and first, Strike Witches series. Thanks for your anime zeal!  :)

Hakumei

Ahmad, i know about it, but it's useless because opening and ending must be added inside the episode, but thanks for try.

Daniil, if You want to see my anime list, click here ;).
(is not full, i don't have time to finish adding)

Daniil

Whoa, Hakumei, what a big list! ^_^
That's great!
I had watch maybe 1/10 of this anime!

Ahmad

Hakumei:

Sorry.. I don't exactly know what you mean.. So forgive me.

But inside mkvtoolnix also, you can Split the file into several parts with time codes.. So what I mean .. You can split the file into small parts.. Each part begins with the time you want and ends with the time you want.. Then you can merge the wanted segments together with the Append command.

Don't care if this isn't what you need
:)
Muhammad is the messenger of Allah.

Ahmad

#6
Hakumei:

I remembered a good tool in my archive called Avidemux ..

What you can do with it in brief..

Open the first MKV file you want and append the rest of the files.. Then, on the screen, you will see all the added files as one continuous stream..

After that, you can select a segment by setting marker A & B .. and you can delete this segment from the stream or cut or copy it and paste it in another time position in the stream..

All of that is with screen display, exact time selection and without re-encoding.

I don't like the latest version.. The one I use is Avidemux 2.5.6 .

Good luck.  :D
Muhammad is the messenger of Allah.

Daniil

#7
Er-r-r-r-rmmmm...  :o That's difficult problem, really difficult.
Hakumei, did you try to simply merge files? With a console command? As I can remember, we can concatenate .mpg just by write one file after another, maybe it can work also with .mkv?
Try something like this:
COPY part1.mkv /B + part2.mkv /B + part3.mkv /B rezult.mkv

No. A made a check... Simple copying doesn't work. It concatenate files, but playing only first of them.

Also, I can't understand, what exactly you want.
You post this:
Quote
Episode time: 21mn 15s
Opening time: 1mn 25s
Ending time: 1mn 30s
00:00:00.000 Prologue -> 00:07:50.003 Opening -> 00:09:15.003 Episode -> 00:20:45.044 Ending -> 00:22:15.044 Preview
Episode+Opening+Ending time: ~00:24:10
What parts you need to add into a file? Opening, ending, or what?

Links may be helpful:
-this torrent (Glue for any videos).
-this (MKVMerge guide)
-this (Forum about a video editing)
-this (Matroska format official guide)

Hakumei

Oke guys, i checked all this stuff and decide to use DirectShowSource() command and re-encode this. My PC is extremaly strong and this don't take much time (will only lose some quality).
Thanks for help.

Daniil