Maher's Digital World

Computing => Programs => Topic started by: Hakumei on December 27, 2012, 08:36 PM

Title: "Linked" *.mkv merge
Post by: Hakumei on December 27, 2012, 08: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 (http://coalgirls.wakku.to/3675/suite-precure) 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.
Title: Re: "Linked" *.mkv merge
Post by: Ahmad on December 28, 2012, 01:53 AM
Hello :)

Do you know about MKVtoolnix (http://www.bunkus.org/videotools/mkvtoolnix/win32/mkvtoolnix-unicode-5.9.0-setup.exe) ?

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
Title: Re: "Linked" *.mkv merge
Post by: Daniil on December 28, 2012, 10: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!  :)
Title: Re: "Linked" *.mkv merge
Post by: Hakumei on December 28, 2012, 05:50 PM
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 (http://myanimelist.net/profile/Hakumei622) ;).
(is not full, i don't have time to finish adding)
Title: Re: "Linked" *.mkv merge
Post by: Daniil on December 28, 2012, 09:26 PM
Whoa, Hakumei, what a big list! ^_^
That's great!
I had watch maybe 1/10 of this anime!
Title: Re: "Linked" *.mkv merge
Post by: Ahmad on December 29, 2012, 01:13 AM
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
:)
Title: Re: "Linked" *.mkv merge
Post by: Ahmad on December 29, 2012, 07:53 AM
Hakumei:

I remembered a good tool in my archive called Avidemux (http://avidemux.sourceforge.net/) ..

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 (http://www.filehippo.com/download_avidemux/12451/) .

Good luck.  :D
Title: Re: "Linked" *.mkv merge
Post by: Daniil on December 29, 2012, 11: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) (http://rutracker.org/forum/viewtopic.php?t=3493765).
-this (MKVMerge guide)  (http://www.bunkus.org/videotools/mkvtoolnix/doc/mkvmerge-gui.html)
-this (Forum about a video editing) (http://www.networkedmediatank.com/forumdisplay.php?fid=13)
-this (Matroska format official guide) (http://www.matroska.org/technical/guides/make/windows/index.html)
Title: Re: "Linked" *.mkv merge
Post by: Hakumei on December 29, 2012, 12:54 PM
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.
Title: Re: "Linked" *.mkv merge
Post by: Daniil on December 29, 2012, 01:04 PM
A reasonable solution. :)
Title: Re: "Linked" *.mkv merge
Post by: humbert on December 30, 2012, 02:05 AM
Quote from: Hakumei on December 29, 2012, 12:54 PM
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.

Extremely strong? May I ask, what system do you have?
Title: Re: "Linked" *.mkv merge
Post by: Hakumei on December 30, 2012, 05:16 PM
Linux Debian 6.0.6 amd64 for normal work, encoding, games and Windows 7 Ultimate x64 for some stupid things who don't works on Linux (like this one from this topic). Here (http://dl.dropbox.com/u/58148348/MAL/cpu-z.jpg) is my CPU specification, add for this 16GB RAM.
Title: Re: "Linked" *.mkv merge
Post by: Daniil on December 30, 2012, 05:46 PM
Hakumei, you are using linux as "for life" system?  ??? What games can be played on 'NIX? WoW, old Quake 3, Nexuiz, OpenTTD, what other good? I think that Linux is mostly for server system, not for workstation...

Also, did the low core speed of AMD processor affects on game speed in old games, which not use multiple cores? (Yours Core Speed is about 1400 MHz, is that enough)? Does exist more speedy cores AMD?

I asks because I thought about upgrade, and watch AMD side...
Title: Re: "Linked" *.mkv merge
Post by: humbert on January 01, 2013, 03:10 AM
@Hakumei

I too am a Linux fan. Personally I like Linux Mint (Cinnamon) and find it easier to use than Ubuntu.

I strongly agree that sadly we must be tied down to Windows due to simple lack of support from just about everywhere. Even right now I can't surf the internet on Linux Mint. Why? Simply because Roboform is my password manager. It's Roboform Lite add-on will not work with the latest version of Firefox. To make matters worse, these people have written their software so that the only thing exportable are bookmarks - logins and mainly passwords aren't included. I doubt someone has written a Linux program that will read their data files.

I also can't pay bills with Linux because as yet I've found no program that can import a Quicken data file. I did try with one and it didn't work. I can't play my favorite game (Diablo III) either. It's really sad.
Title: Re: "Linked" *.mkv merge
Post by: abhishek0990 on January 10, 2013, 02:32 PM
nice information. thank you for sharing it.

thanks