Log in

View Full Version : splitting blu-ray ts file by chapter


lansing
26th November 2015, 21:23
I have a concert blu-ray and I wanted to split out a few songs. I know that we can do this in mkvmerge, but I don't want to repack the whole 40G video file into mkv in order to do this. Is there any other program that can split it directly with the TS file?

Music Fan
27th November 2015, 10:21
You can open the TS in mkvmerge, but it will output MKV of course.

Ghitulescu
27th November 2015, 11:38
I don't think there is an easy method.

If you can obtain a list of chapters, you can use tsmuxer to cut parts thereof.

It requires a lot of handiwork but that's life. Try remembering how this was done with DVDs (and how long it took to get a workable solution).

lansing
27th November 2015, 19:49
Looks like mkvmerge can work directly with the ts and chapter files together without the repack.

However I didn't see the option to split by chapters. There's a mode to "split before chapter", but is not what I want. The only split option that should work is split by timecode, but that would require entering all the chapter timecode myself...

I'm going to stick with the dummy way: "split before chapter: all" and then delete the unwanted parts before they takes up all my drive space.

Music Fan
28th November 2015, 12:16
You can do it with mkvmerge and TS files, but not exactly as you expected : if you have the timecodes of chapters position, select "split by parts based on timecodes" and enter the timecodes this way ;
-00:01:20,00:01:20-00:02:45,00:02:45-00:05:50,00:05:50-00:10:30,...,01:52:46-
It will output several mkvs.

-00:01:20 = 00:00:00-00:01:20
and
01:52:46- means from 01:52:46 to the end.

Don't forget to specify the framerate (especially if interlaced ; 50i , 60i, 60000/1001i ...).


edit : ffmeg can also extract parts but I don't know if it can export several parts in one operation ;
http://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg

manolito
28th November 2015, 17:27
There's a mode to "split before chapter", but is not what I want.

Could you elaborate why this option is not what you want?

If you enter "all" in the chapter numbers field, your file will be split at the frame before the key frame which has a time stamp greater or equal as the chapter start time. Isn't this what you want?


Cheers
manolito

lansing
28th November 2015, 22:33
Could you elaborate why this option is not what you want?

If you enter "all" in the chapter numbers field, your file will be split at the frame before the key frame which has a time stamp greater or equal as the chapter start time. Isn't this what you want?


Cheers
manolito

Lets say there are 20 chapters in the video, and I only want to cut out chapter 3 and 6. I don't want the rest of the chapters to be output because I don't have the space.

With the "split before chapter", if I entered 3, it will split out 2 files, one with chapter 1-2, and the other with chapter 3-20, which is not what I want. In order to get chapter 3, I would have to enter "split before chapter: 3, 4", but again this would also output 2 unwanted files along with it in chapter 1-2 and 4-20.

lansing
28th November 2015, 22:37
You can do it with mkvmerge and TS files, but not exactly as you expected : if you have the timecodes of chapters position, select "split by parts based on timecodes" and enter the timecodes this way ;
-00:01:20,00:01:20-00:02:45,00:02:45-00:05:50,00:05:50-00:10:30,...,01:52:46-
It will output several mkvs.

-00:01:20 = 00:00:00-00:01:20
and
01:52:46- means from 01:52:46 to the end.

Don't forget to specify the framerate (especially if interlaced ; 50i , 60i, 60000/1001i ...).


edit : ffmeg can also extract parts but I don't know if it can export several parts in one operation ;
http://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg

This is what I was trying to avoid. I already have the chapter files, there's no reason for me to enter the timecode manually.

kuchikirukia
11th December 2015, 03:24
Yeah, it would be nice if mkvmerge could select individual chapters and only output those. Splitting by chapter is generally because I want a specific chapter, not because I want the whole thing split at that point for some reason.