Maher's Digital World

"Linked" *.mkv merge

Offline Hakumei

  • *
  • 13
  • Ippen... shindemiru?
"Linked" *.mkv merge
« on: December 27, 2012, 12:36 PM »
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:
Code: [Select]
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.

Offline Ahmad

  • *****
  • 627
  • Learn and Help
Re: "Linked" *.mkv merge
« Reply #1 on: December 27, 2012, 05:53 PM »
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.

Offline Daniil

  • ****
  • 354
Re: "Linked" *.mkv merge
« Reply #2 on: December 28, 2012, 02:00 AM »
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!  :)

Offline Hakumei

  • *
  • 13
  • Ippen... shindemiru?
Re: "Linked" *.mkv merge
« Reply #3 on: December 28, 2012, 09:50 AM »
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)

Offline Daniil

  • ****
  • 354
Re: "Linked" *.mkv merge
« Reply #4 on: December 28, 2012, 01:26 PM »
Whoa, Hakumei, what a big list! ^_^
That's great!
I had watch maybe 1/10 of this anime!

Offline Ahmad

  • *****
  • 627
  • Learn and Help
Re: "Linked" *.mkv merge
« Reply #5 on: December 28, 2012, 05:13 PM »
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.

Offline Ahmad

  • *****
  • 627
  • Learn and Help
Re: "Linked" *.mkv merge
« Reply #6 on: December 28, 2012, 11:53 PM »
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
« Last Edit: December 29, 2012, 01:03 AM by Ahmad »
Muhammad is the messenger of Allah.

Offline Daniil

  • ****
  • 354
Re: "Linked" *.mkv merge
« Reply #7 on: December 29, 2012, 03:52 AM »
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)
« Last Edit: December 29, 2012, 04:30 AM by Daniil »

Offline Hakumei

  • *
  • 13
  • Ippen... shindemiru?
Re: "Linked" *.mkv merge
« Reply #8 on: December 29, 2012, 04:54 AM »
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.

Offline Daniil

  • ****
  • 354
Re: "Linked" *.mkv merge
« Reply #9 on: December 29, 2012, 05:04 AM »
A reasonable solution. :)