Log in

View Full Version : Merging multiple m2ts files into a single one


macmichael01
3rd January 2013, 02:56
I have a bluray movie that I want to convert to a single file. The problem is that this particular movie is broken up into multiple .m2ts files and I don't know the ordering to which I would need to join these files. It would be nice if could somehow read the mpls file to piece together the particular ordering that I need. I am on a mac so something like bdinfo will not work. Does anyone have suggestions on how I can obtain the such orderings?

paradoxical
3rd January 2013, 03:05
Merge it with eac3to or load the mpls in TsMuxerGUI to remux it to one file.

JohnAStebbins
3rd January 2013, 19:08
I have a bluray movie that I want to convert to a single file. The problem is that this particular movie is broken up into multiple .m2ts files and I don't know the ordering to which I would need to join these files. It would be nice if could somehow read the mpls file to piece together the particular ordering that I need. I am on a mac so something like bdinfo will not work. Does anyone have suggestions on how I can obtain the such orderings?

If tsmuxer doesn't work for you and you have the ability to build from source (or can convince someone to build for you), libbluray has some functional examples that might help. After building libbluray, there are a couple tools in src/examples. mpls_parse can be used to inspect the mpls files and show the order of the m2ts clips. bdsplice can be used to merge the m2ts files for a title into one. bdsplice requires an "index" to the title which can be looked up with the example program list_titles.

git clone git://git.videolan.org/libbluray.git

list_titles <path to BD tree>
bdsplice -t <index> <path to BD tree> <output.m2ts>