Splitting single .mpls file with multiple video files but no chaptering

MKV playback, recompression, remuxing, codec packs, players, howtos, etc.
Post Reply
theundefeatednoob
Posts: 2
Joined: Wed Oct 28, 2020 9:57 pm

Splitting single .mpls file with multiple video files but no chaptering

Post by theundefeatednoob »

I am new to this forum and I need some assistance regarding splitting m2ts files. First off I am working with an SSH connected seedbox so there is no GUI and I use mkvtoolnix via command line and I am not that proficient with Linux but I know my way around a couple of things. Anyway, when I am making a REMUX of a Blu ray with combined episodes in a single .m2ts file I would first check the chaptering of the Blu ray whilst within the BDMV PLAYLIST folder with the command mediainfo xxxxx.mpls and it gives me the chapter layout etc and I would proceed to use the command mkvmerge xxxxx.mpls --split chapters:x,y,z -o output.mkv and it gives me the split mkv as output. But now I have an issue with the BDMV for Seitokai Ichizon (Student Council's Discretion). When I try to see the chaptering for reference, there is only 1 chapter and multiple video sources and I am not sure how to go about splitting this BDMV into multiple episodes. I have managed to extract the multiple xml files contained within the first 00000.mpls file but I do not know where to go from here.

Code: Select all

General
Complete name                            : 00000.mpls
Format                                   : Blu-ray Playlist
File size                                : 1.10 KiB
Duration                                 : 2 h 26 min
Overall bit rate                         : 1 b/s

Video #1
ID                                       : 4113 (0x1011)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Duration                                 : 1 s 1 ms
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (23976/1000) FPS

Video #2
ID                                       : 4113 (0x1011)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Duration                                 : 48 min 52 s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (23976/1000) FPS

Video #3
ID                                       : 4113 (0x1011)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Duration                                 : 48 min 52 s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (23976/1000) FPS

Video #4
ID                                       : 4113 (0x1011)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Duration                                 : 48 min 52 s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (23976/1000) FPS

Video #5
ID                                       : 4113 (0x1011)
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Duration                                 : 13 s 13 ms
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 (23976/1000) FPS

Audio #1
ID                                       : 4352 (0x1100)
Format                                   : PCM
Duration                                 : 1 s 1 ms
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Language                                 : Japanese

Audio #2
ID                                       : 4352 (0x1100)
Format                                   : PCM
Duration                                 : 48 min 52 s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Language                                 : Japanese

Audio #3
ID                                       : 4352 (0x1100)
Format                                   : PCM
Duration                                 : 48 min 52 s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Language                                 : Japanese

Audio #4
ID                                       : 4352 (0x1100)
Format                                   : PCM
Duration                                 : 48 min 52 s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Language                                 : Japanese

Audio #5
ID                                       : 4352 (0x1100)
Format                                   : PCM
Duration                                 : 13 s 13 ms
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Language                                 : Japanese

Menu
00:00:00.000                             : Chapter 1

Woodstock
Posts: 10381
Joined: Sun Jul 24, 2011 11:21 pm

Re: Splitting single .mpls file with multiple video files but no chaptering

Post by Woodstock »

You need tools other than MakeMKV for what you're trying to do.

Also, my logs show that this title comes with per-episode play lists, so if it was ripped by MakeMKV, you don't have to do anything special to split out episodes or chapters.
theundefeatednoob
Posts: 2
Joined: Wed Oct 28, 2020 9:57 pm

Re: Splitting single .mpls file with multiple video files but no chaptering

Post by theundefeatednoob »

Woodstock wrote:
Wed Oct 28, 2020 11:35 pm
You need tools other than MakeMKV for what you're trying to do.

Also, my logs show that this title comes with per-episode play lists, so if it was ripped by MakeMKV, you don't have to do anything special to split out episodes or chapters.
Thank you for the reply. I ended up getting the chapter .xml files by opening the 00000.mpls file with the program called pymplschapters and discovered that the 00000.mpls had the playlists corresponding to 5 .m2ts files (00000.m2ts, 00001.m2ts, 00002.m2ts, 00006.m2ts & 00010.m2ts of which 01,06 & 10 were the main files containing 2 episodes each and each main m2ts file had 11~12 chapters with the extra file having 1 chapter each for a total of 37 chapters) , but I still was not sure on how to proceed. And I will again stress the fact that I suck at working only in command line, so I ended up taking the long route of first converting the 00000.mpls into an output.mkv by using the command mkvmerge 00000.mpls -o output.mkv and it joined all 6 episodes plus the extra 00000.m2ts (a 1 sec black screen) and 00002.m2ts (a 13 sec warning text screen). The output was a 39.1gb file with all 37 chapters and I managed to separate the files with the mkvmerge --split by chapters command. I am yet to check after uploading to my drive whether it has gone smoothly or whether I have to redo it all again until I get it right. 5 of the 6 episodes had the correct time of 24 minutes 26 seconds with the last episode having an extra 13 seconds for a total of 24 minutes 39 seconds.
Post Reply