Log in

View Full Version : Guide for adding a subtitle on a Blu-Ray Disc keeping the original menu


Pages : 1 [2] 3 4 5 6 7 8 9 10 11 12

deank
24th December 2009, 17:14
I wonder if it's possible to ID the specific offset, then use BDEdit to adjust the times. Probably a lot of work!?

You can see the IN TIME in BDEdit, and you can change it via HEX editor. I posted about this some time ago here (http://forum.doom9.org/showthread.php?t=147516).

MultiAVCHD is really pretty simple and straight forward once you try it a few times.

It became a bit tough to use, but usually works with all set to default :)

crl2007
24th December 2009, 18:25
@deank It's a surprise for me too that it works with the original clpi and mpls, but that's the only way to keep the pop-up menu on this discs.

As I said, he should have had problems with chapters, IN-END Time, but not with the pop-up in this style.

Yeah, multiavchd is very useful, but it does not keep the menu. Maybe deank will do a miracle and puts together a remuxer for IGS components. :D

Or you can leave it w/o menu, and zapp through chapters directly from your player's remote control.

deank
24th December 2009, 19:09
Yeah, multiavchd is very useful, but it does not keep the menu. Maybe deank will do a miracle and puts together a remuxer for IGS components. :D

Extending multiAVCHD's options is limitless, so it is a task for 2010... A lot of things are to come with the next major version, it is that it takes a bit more for a one-man-team :) like mine.

laserfan
24th December 2009, 19:36
You can see the IN TIME in BDEdit, and you can change it via HEX editor. I posted about this some time ago here (http://forum.doom9.org/showthread.php?t=147516).
In this picture the marker is at the start of the in-point and the out-point is in red (019BFCC0 - 01C5D266) = 60.926 seconds. Blanking it from 60sec to 1sec would require to add 0xAFC8 (which is 1000ms or 45kHz clicks/s) to 0x019BFCC0 (which is the in_point), resulting in out_point= 019CAC88
Thanks, I remember that thread, and I'm afraid your comments are at least several meters over my head! ;)

I'm gonna look real hard at multiAVCHD over the holidays...

deank
27th December 2009, 16:05
@deank It's a surprise for me too that it works with the original clpi and mpls, but that's the only way to keep the pop-up menu on this discs.

As I said, he should have had problems with chapters, IN-END Time, but not with the pop-up in this style.

I was really mistaken about tsMuxeR IN_TIME.. it is 10minutes, not 11.650 seconds... I don't know what confused me earlier... Like in the quote above:

0x019BFCC0 / 0xAFC8 = 600 seconds = 10 minutes.

Most commercial discs have IN-TIME of 00:00:11.650 (0x07FFFF), that's why the guide doesn't really work with all discs without HEX editing.

***

I ripped my first Blu-ray disc today (Ghost Rider), using my Playstation3's Yellow Dog Linux and decrypted it with the trial of AnyDVDHD...

The disc is purely HDMV authored (no Java) and by using the 'transcode' in multiAVCHD I got the movie only AVCHD version in just 2 hours :) in 1280x720 ~ 4.4GB to play it in my PS3 with the external HDD, without the need of the blu-ray disc. Although it is a function of multiAVCHD for almost an year - it was the 1st time I tried it :)

Then with some playlist tweaks I got the original POP-UP/MAIN menu working in my FAT32 AVCHD compilation :) It is not really easy to automate the process in multiAVCHD when multiple titles are used, but for one-title-compilation it may be much easier.

Here is what happened (you can see that the ripped disc is now converted to 1280x720:) ):

http://multiavchd.deanbg.com/multiAVCHD_popUP.jpg

http://multiavchd.deanbg.com/multiAVCHD_popUP2.jpg

Capsbackup
28th December 2009, 01:10
Very nice deank, this looks encouraging!
Is there a procedure/tutorial you can share as to how to go about this?

deank
28th December 2009, 12:57
Basically it is down to using the original blu-ray disc files and replacing the main movie with the reencoded one, editing the original .mpls file to set new in/out times and chapter points. Of course this works when the menu is in a separate m2ts file and the main movie is in one m2ts file.

***

Sadly, pop-up menu doesn't work in AVCHD mode (tested in Playstation3). It works in TMT and Nero, but not in PS3. The original main menu works just fine.

***

Now the cool part... as a by-product of my attempts I successfully created MOTION MENU + AUDIO in multiAVCHD!

crl2007
28th December 2009, 20:53
Basically it is down to using the original blu-ray disc files and replacing the main movie with the reencoded one, editing the original .mpls file to set new in/out times and chapter points. Of course this works when the menu is in a separate m2ts file and the main movie is in one m2ts file.

Just as I said in my guide, but I am for keeping the original ones with IGS and replacing them with java based menus. It is much easier to replace than hex edit, especially if you don't know jack about hex. The functionality remains the same I see. In AVCHD mode the pop-up doesn't work either way.

Sadly, pop-up menu doesn't work in AVCHD mode (tested in Playstation3). It works in TMT and Nero, but not in PS3. The original main menu works just fine.

So this was pio's problem all along.

Now, I have an idea, if it's possible of course:

To implement something like this in multiavchd. Open bdmv folder - goes to streams ( video + audio + subtitles ) - replace whatever you want, the chapters to be read directly from bdedit, all the replacing to be done automatically and in the end to have a fully functional BD with a fully functional menu.

Blinky7
29th December 2009, 02:47
Hi there. I am pretty much testing the same stuff as you. I wanted to replace some useless (to me) subs with Greek ones while keeping the menus, and I started with the simple idea to ask TSmuxer to give an m2ts file as an export file, and get that file to replace the original movie file in the BD folder. Very simploe and it actually worked for a movie. But failed the next 3 I tried..... so I understood that the CLPI and MPLS files are linked with the M2TS file and are important too, and while searching I gound your guide.

Well, my own testing has given me these results :
If the movie has Java popup menu (my test movie was Dodgeball) then you can replace all 3 files (m2ts-clpi-mpls) and you are fine. If the popup is not Java, then replacing only the m2ts file didnt work for either of my 2 test movies (Wedding Crashers and Notebook). After trial and error I found out you need to keep the original mpls file, but replace both the m2ts and the clpi file for it to work. This way it worked for both. Because I want to find a universal method that workes for both BDjava menu movies and the rest, I then tried Dodgeball again, this time keeping hte original mpls file (to see if changing the clpi and m2ts is enough for ALL movies to work OK and then this could be considered a universal approachm, something good for a guide, even if a step is unnecessary for some movies).
Well, it worked, but I noticed the chapters were not working correctly. I initially thought about the advice you gave to Mamaki earlier in this thread, about TSmuxer reading the chapter times incorrectly. But that was not the case. Then I thought it could be a problem with BD-java movies because before I replaced the clpi file they worked great, but going to check Wedding crashers and Notebook, I saw the same problem existed there too. So it didnt have to do with the type of movie, it was just introduced when changing the CLPI file, something that was necessary for non-java movies.

What is the problem you ask? Well, whenever you go to a point in the movie between 0 and 10mins, it always starts the movie from the begining. The chapter info is correct, but simply going to the first 2 chapters (which are typically below 10mins) you get the movie begining. Even if I press with my mouse on the bar of powerdvd at any point below the 10min mark I see the movie from the begining. The timing on powerdvd is not affected mind you....for example if I press on the 7th minute, the timing will go to 00:07:00/01:34:42 and move up from there on, but the video being played will be the start of the movie.

By the above trial and error procedure, it's clear that it has to do with the CLPI file and that there is this magical limit of 10mins up to which it does not work correctly....

Does this happen to you? Any ideas?

deank
29th December 2009, 10:34
In AVCHD mode the pop-up doesn't work either way.

So this was pio's problem all along.

Now, I have an idea, if it's possible of course:

I wanted to say that it doesn't work in AVCHD played from USB drive. It is possible that it will work if burned to a DVD disc, but I'll test it later.

Hi there. I am pretty much testing the same stuff as you. ... What is the problem you ask? Well, whenever you go to a point in the movie between 0 and 10mins, it always starts the movie from the begining. The chapter info is correct, but simply going to the first 2 chapters (which are typically below 10mins) you get the movie begining.

Does this happen to you? Any ideas?

It is caused by the default IN_TIME which tsMuxeR uses (00:10:00.000) and it is different than the one from the original blu-ray disc. To get it working correctly, you need to change the values in the .mpls file.

crl2007
29th December 2009, 11:05
This could be a good method, but who knows hex ? :) All the discs I're reauthored ( 70 discs ), all worked fine with replacing or keeping the original mpls and clpi. I believe it to be much easier to replace them or to keep them there than editing in hex.

Blinky7
29th December 2009, 14:00
It is caused by the default IN_TIME which tsMuxeR uses (00:10:00.000) and it is different than the one from the original blu-ray disc. To get it working correctly, you need to change the values in the .mpls file.

And how to change that?
Also, how is it that the mpls file needs changing, when actually the original one is kept? I dont get this problem when using the new mpls-clpi files, only when keeping the original mpls but using the new clpi file form tsmuxer...

Blinky7
29th December 2009, 14:24
OK, actually, checking the original MPLS file and hte one generated by TSmuxer I did notice this 10min difference. It's as if all chapters have been moved to +10mins in the tsmuxer output. Problem is, I am using the original MPLS anyway that is correct.....so the problem lies with the M2TS output file from TSmuxer that is created to be compatible with this +10min delay. It is my understanding, that the M2TS file needs to be tinkered with in order to work with the original MPLS (and possibly the CLPI too?).....is there some way to change the timmings in the m2ts?

Blinky7
29th December 2009, 15:12
Since tsmuxer screws this by adding 10mins to every chapter, I tried to fix this by manually setting chapters to -10mins in the chapter list before muxing. Unfortunately it didnt recognize negative numbers, so the first 2 chapters were wrong in the final file (as in, it took -10mins , understood it as 10 and so it set the first chapter to 20mins). From chapters 3 and on they are correct, but the first 2 and the time_in/out are stil incorrect.

crl2007
29th December 2009, 19:25
The easiest fix is to replace the original mpls with the remuxed one. How many times do I have to repeat myself ? Except IGS movies, in order to have pop-up menu you have to keep the original one. If the first 2 chapters are wrong, you just simple get the chapters raported by bdedit. This is the easiest method.

This is how tsMuxer reads chapters from playlist:

00:00:00.000
00:05:28.494
00:12:13.941
00:14:57.146
00:18:43.205
00:22:30.515
00:27:36.029
00:32:04.631
00:37:48.224
00:44:48.352
00:49:31.760
00:54:55.375
01:00:00.305
01:03:09.660
01:05:57.161
01:09:13.691
01:14:00.102
01:21:09.781
01:26:31.477
01:33:37.403
01:39:57.324
01:43:16.273
01:48:24.748
01:52:30.118
01:56:53.673
02:02:11.741
02:08:33.539
02:15:00.300
02:19:08.048
02:23:54.125
02:33:30.659


And this is how BDEdit reads them:

00:00:00.000
00:00:05.005
00:01:16.993
00:02:02.956
00:02:39.993
00:02:58.011
00:04:31.980
00:04:55.003
00:05:28.494
00:05:31.956
00:06:41.192
00:07:08.928
00:07:35.246
00:08:33.095
00:09:39.954
00:11:20.262
00:11:51.419
00:12:13.941
00:12:14.400
00:13:37.983
00:14:32.997
00:14:57.146
00:15:10.951
00:16:19.937
00:17:13.323
00:17:38.891
00:18:43.205
00:18:46.291
00:19:04.643
00:19:17.447
00:20:44.159
00:21:22.990
00:22:30.515
00:23:16.603
00:26:16.950
00:27:06.916
00:27:36.029
00:28:46.975
00:29:13.752
00:30:22.779
00:31:01.609
00:32:04.631
00:32:08.968
00:32:23.983
00:34:11.966
00:37:48.224
00:38:45.990
00:39:42.671
00:41:02.042
00:41:21.979
00:42:30.047
00:44:48.352
00:47:53.996
00:49:31.760
00:50:07.587
00:50:24.730
00:51:05.729
00:51:47.020
00:52:38.989
00:53:44.012
00:54:55.375
00:55:35.540
00:56:35.975
00:58:26.920
01:00:00.305
01:00:01.973
01:01:55.002
01:03:09.660
01:03:43.110
01:04:04.966
01:05:57.161
01:06:02.917
01:09:13.691
01:11:24.196
01:12:58.957
01:14:00.102
01:14:22.958
01:18:10.602
01:19:03.905
01:19:26.970
01:20:47.008
01:21:09.781
01:25:01.012
01:26:31.477
01:31:56.010
01:32:50.022
01:33:37.403
01:37:29.927
01:39:57.324
01:42:42.489
01:43:16.273
01:43:22.988
01:44:15.332
01:46:13.367
01:46:29.966
01:48:24.748
01:48:43.975
01:52:30.118
01:54:30.989
01:56:53.673
01:57:11.941
01:59:37.962
02:01:14.976
02:02:07.403
02:02:11.741
02:03:02.041
02:07:06.994
02:07:41.654
02:08:33.539
02:09:38.604
02:10:21.522
02:15:00.300
02:15:12.104
02:15:47.055
02:17:31.952
02:18:17.914
02:19:08.048
02:21:51.711
02:23:54.125
02:33:30.659

As you can see, you can't go wrong when it comes to bdedit. Comparisons are made on the same mpls.

Blinky7
29th December 2009, 19:47
I don't think you understood the problem.
Let's see some facts :

1) TSmuxer reads the chapters correctly
2) I DO keep the original MPLS because I want pop-up menu, I only replace the m2ts and clipinf files.
3) The resulting bluray has working menu but the timing problem mentioned.

Since the mpls is the original one! the problem lies with the m2ts file exported from TSmuxer I believe. The mpls and the m2ts are somehow connected in how chapters are handled, so using the NEW m2ts with the original mpls does not "sync" as far as chapters go.

Using the new mpls kind of works, because I guess the timming screw-up TSmuxer does to the m2ts file, is also done to the mpls, so they sync....but hten you get no menu....

So, the way I see it, the solution is not to tinker with the mpls, since its the original one anyway, its to tinker with the resulting M2TS filr from tsmuxer so it comes out "correctly".

Here is the example of my movie testing. The movie is Wedding Crashers Uncorked edition.

I ran the mpls files through a program that reads them and here is the result :

Original MPLS :

File Size: 586 bytes


Time_IN 00:00:11.651
Time_OUT 02:07:12.431
Duration 02:07:00.780

CH 0 00:00:11.651
CH 1 00:03:51.203
CH 2 00:15:36.616
CH 3 00:23:58.451
CH 4 00:39:22.416
CH 5 00:44:12.873
CH 6 00:49:31.733
CH 7 00:53:02.694
CH 8 00:59:24.241
CH 9 01:06:34.296
CH 10 01:12:12.968
CH 11 01:19:16.808
CH 12 01:22:07.729
CH 13 01:26:31.158
CH 14 01:29:04.604
CH 15 01:35:30.239
CH 16 01:41:19.170
CH 17 01:48:06.536
CH 18 01:53:30.776
CH 19 02:01:01.268
CH 20 02:07:12.180

TSMuxer output MPLS :

File Size: 530 bytes


Time_IN 00:10:00.000
Time_OUT 02:17:00.768
Duration 02:07:00.768

CH 0 00:10:00.000
CH 1 00:13:39.552
CH 2 00:25:24.965
CH 3 00:33:46.800
CH 4 00:49:10.765
CH 5 00:54:01.221
CH 6 00:59:20.082
CH 7 01:02:51.042
CH 8 01:09:12.590
CH 9 01:16:22.645
CH 10 01:22:01.317
CH 11 01:29:05.157
CH 12 01:31:56.077
CH 13 01:36:19.507
CH 14 01:38:52.952
CH 15 01:45:18.587
CH 16 01:51:07.519
CH 17 01:57:54.885
CH 18 02:03:19.125
CH 19 02:10:49.617
CH 20 02:17:00.529

My understanding is, that the treatment done from tsmuxer to the output mpls, is also done to the output m2ts file and thus when those 2 are used together they work fine. But using the new m2ts with the old mpls that has correct timmings obviously does not work...

laserfan
29th December 2009, 20:59
@deank you were successful replacing a re-encoded main movie into the original BDMV structure? And that re-encoded feature was output as .m2ts by tsMuxeR?

Basically it is down to using the original blu-ray disc files and replacing the main movie with the reencoded one, editing the original .mpls file to set new in/out times and chapter points. Of course this works when the menu is in a separate m2ts file and the main movie is in one m2ts file.

Am I correct in assuming that the editing you did on the "original .mpls file" was to ADD 10 minutes to the original's IN and OUT times, and each of the Chapter start points? And did you also copy-over from tsMuxeR's output the new clpi files?

I finally sat down and figured-out your HEX math and am going to try this myself...

deank
29th December 2009, 21:19
@deank you were successful replacing a re-encoded main movie into the original BDMV structure? And that re-encoded feature was output as .m2ts by tsMuxeR?



Am I correct in assuming that the editing you did on the "original .mpls file" was to ADD 10 minutes to the original's IN and OUT times, and each of the Chapter start points? And did you also copy-over from tsMuxeR's output the new clpi files?

I finally sat down and figured-out your HEX math and am going to try this myself...

You're right... But it is not by adding 10mins, but for example:

original in time is: 00:00:11.650
tsmuxer in time is: 00:10:00.000

so you need to add 00:10:00.000 - 00:00:11.650 = 00:08:48.350 = (8x60 + 48 + 0.350) * 1000 * 45 = 23775750 = 0x016ACA06

or in other words, HEX add 0x016ACA06 to all chapters and change original in/out times in the original mpls file.

Blinky7
29th December 2009, 22:02
I found this little program that can help you avoid the HEXing. I used it and set the IN time of my original MPLS file to 10mins (600 seconds as it asks in seconds) and my movie and hcapters and popup menu work great now!
Check it out, it will help you too I believe avoid HEX editing :

http://forums.sagetv.com/forums/showthread.php?t=41722

crl2007
29th December 2009, 22:23
Again, why is this easier than replacing the original mpls ? Or putting the chapters from bdedit in tsMuxer if the chapters get screwed ?

readmpls.exe crashed when it started to read the chapters in this mpls from above. And it starts the chapters from that in time.

Orig TimeIN: 01:09:58.000 This is the original in time on this mpls. The edited mpls holds the same information as the original one. Only with IGS menus you have to keep the original mpls, but it's ok because if the chapters get screwed up, you can put them from bdedit directly. But if it is easier for you to do lots of unnecessary operations, feel free.

Blinky7
29th December 2009, 22:26
It's not easier. But
1)Replacing the original mpls makes my popup menu not work
2)TSmuxer reads the chapters perfectly fine, inserting them from BDedit would do nothing, they are exactly the same. It's the output files you get that are screwed by being +10mins and you can do nothing about that

crl2007
29th December 2009, 22:43
Where exactly doesn't your pop-up work ? In a standalone player ? PS3 ? Because on TMT and Nero works fine the way I do it. If it works for standalone players, feel free to write a few words in what people should do if they have standalones and I will introduce that in the guide.

As you can see above, the original mpls has Orig TimeIN: 01:09:58.000. And after I have edited the disc, the edited one has 10:00.000, but the chapters are playing fine and the pop-up the same. On software players like PowerDVD 9, TMT and Nero. If you discovered this glitch for standalone players, let's put it in the guide. But if it is for software players too, I'm afraid that is an extra hassle.

Blinky7
29th December 2009, 22:56
I am not using TMT anymore, although I was using it for the past year, I want bitstream HD audio now and only powerdvd can do that. So I am using Powerdvd 9 and in all those tests I am forced to create an ISO after I finish editing to be able to run the bluray with powerdvd. So I am not using a standalone player, but maybe because of the way powerdvd works (ISO loading) it emulates the situation better than TMT?

Bottomline is, I tested, and with Wedding Crashers and Notebook, if I replace the original MPLS file, there is no popup menu. If I edit the timings on this original file, then everything works great. It's as if this original MPLS has some extra info about the menu that are lost if you use the TSmuxer exported one.

I also tried this with Dodgeball that has a Java menu (and was working OK even if original MPLS was replaced) and it worked great too. So I see this as a good universal approach :
Steps :
1) Read bluray folder with BDinfo to find your movie m2ts/mpls
2) TSmuxer this mpls to bluray output
3) Replace movie m2ts and clpi with the remuxed ones
4) Edit movie mpls adding 10mins to the timming
5) IMGburn to ISO and load

For BD Java movies, replacing the mpls with the new one is good enough and there is no need for editing the existing one. But it's not that much more of a hassle, and having a universal way is important when writing a guide.
Did this for all my 3 movies and the result is terrific. Gonna go try some more now.

If you want, try using PowerDVD and turning your folder to ISO....I think this is where the difference lies and why I cant get menu without the original MPLS. And if this turns out true, then it could probably be the reason also for standalone players not viewing the menu...

crl2007
29th December 2009, 23:04
I believe that this coud be a great approach for IGS menu blu-rays. It could be a unique solution. Wedding Crashers and Notebook I know they have IGS menu and it's great if it works like this. I'll put thit method in my guide right now, but only for IGS menus. If you have java and other stuff related in the same m2ts, tsmuxer will not keep them in the m2ts, and therefore replacing is the best way. I'll make some screenshots. Please stay around about half an hour and tell me if how I present the method is ok.

laserfan
29th December 2009, 23:09
I found this little program that can help you avoid the HEXing. I used it and set the IN time of my original MPLS file to 10mins (600 seconds as it asks in seconds) and my movie and hcapters and popup menu work great now!
Check it out, it will help you too I believe avoid HEX editing :

http://forums.sagetv.com/forums/showthread.php?t=41722
When I try their link, I get a "Slow Down!" message and it won't let me download it. Tried two browsers...maybe you have to be a member & logged-on? Does anyone know the magic, or another location for this util?

Blinky7
29th December 2009, 23:16
When I try their link, I get a "Slow Down!" message and it won't let me download it. Tried two browsers...maybe you have to be a member & logged-on? Does anyone know the magic, or another location for this util?

I am not a member and I downloaded it fine a few hours ago. I even tried the link again now and it started the download.....u were probably unlucky with server traffic or something, try again...

crl2007
29th December 2009, 23:36
Done, included in the guide. There is something that I forgot ?

@laserfan The download worked great here too.

laserfan
29th December 2009, 23:40
Bah, my ISP must be causing the problem; just can't get it for some reason. :(

deank
29th December 2009, 23:43
When I try their link, I get a "Slow Down!" message and it won't let me download it. Tried two browsers...maybe you have to be a member & logged-on? Does anyone know the magic, or another location for this util?

Here you go: http://multiAVCHD.deanbg.com/MPLS_Tools_v0_2.zip

laserfan
29th December 2009, 23:58
Here you go: http://multiAVCHD.deanbg.com/MPLS_Tools_v0_2.zip
Thank you!!! You are a gentleman as well as a scholar! ;)

You're right... But it is not by adding 10mins, but for example:

original in time is: 00:00:11.650
tsmuxer in time is: 00:10:00.000

so you need to add 00:10:00.000 - 00:00:11.650 = 00:08:48.350 = (8x60 + 48 + 0.350) * 1000 * 45 = 23775750 = 0x016ACA06

or in other words, HEX add 0x016ACA06 to all chapters and change original in/out times in the original mpls file.
It's actually a 9:48.350 difference but I get your drift! I'll try it! :)

:thanks:

Blinky7
30th December 2009, 00:08
Done, included in the guide. There is something that I forgot ?

@laserfan The download worked great here too.

looks great ;)

I am going to try fixing a movie with multiple m2ts files. Obviously the result of TSmuxer will be one big M2TS, and the movie should play fine using the tsmuxer generated mpls (which shouldnt be a problem as the IGS menu movies all use 1 large m2ts file right? so it cant be IGS...). However, if you want to retain both the Rated/Unrated versions playable, I see this failing, unless you fix each seperately.....but then you will end up with 2 big M2TS files that probably ownt even fit in a BD-50...

Is there any way we can make tsmuxer output the M2TS files as they are in the source (with added subs of course) and not as a single big file?

Messing with Jennifer's Body right now...

crl2007
30th December 2009, 00:24
@deank Why the 11 seconds difference ? tsMuxer uses 10:00.000, the original discs INTime varies from 11.650 to anything.

@Blinky7 Those discs are seamless branched. You can't keep both versions or Maximum Movie Mode ( not that someone is interested to see the movie with actors commentaries ) for that mather too. It's extremely tough to edit a seamless branched dvd, not to mention a full blu-ray. So, it's impossible. Yes, the ones with IGS menu linked directly to a m2ts are on a single m2ts. Sadly, blu-ray authoring, demuxers, remuxers are scarse, only a few people continue to do something in this direction, deank is one of them and the guys at smartlabs too.

deank
30th December 2009, 01:03
@deank Why the 11 seconds difference ? tsMuxer uses 10:00.000, the original discs INTime varies from 11.650 to anything.

Most blu-rays have intime of 00:00:11.650... once you remux with tsmuxer and keep the original mpls you will have the media file (m2ts) with new PTS (presentation time stamps) starting from 00:10:00.000. Each 192 byte packet in the m2ts file starts with a PTS, so you either have to change ALL packets inside a m2ts file or the easier way - to change the mpls file. Taking into account the original blu-ray disc's IN-TIME and the well known NERO/tsMuxeR in-time of 10mins you do the math... you substract 11.650s from 10mins and you get 9mins 48secs 350ms ( :) 10x laserfan ) to add to all chapters/in/out times in the original mpls file.

And about branched discs... Playlist files ARE the thing. You can do virtually anything by creating/editing movie playlists (mpls). It is tough to do it with a HEX editor, but it is fun :)

crl2007
30th December 2009, 01:25
I understand what you want to do with that substraction, to get it to 10 minutes from 11.650, and this is correct, but when we have an INTime of 1 hour, those 10 minutes are ok to add. But with 11.650, you shouldn't transform in 10:11.650 ? Going on the same principle. Blinky's test shows exactly this.

deank
30th December 2009, 01:41
...with 11.650, you shouldn't transform in 10:11.650 ? Going on the same principle. Blinky's test shows exactly this.

I'm pretty good at math I think...

You would've been right, if tsMuxeR's in_time was 00:10:11.650, then you'd have 10mins difference, but that's not the case.

If original in_time is more than 10mins (like you said 1 hour?!) then you do the same math and ADD.

Blinky7
30th December 2009, 01:51
You are correct Deank in your math.
However, If using the FixMPLS program mentioned earlier, there is no need for math because it only asks you when you want to set the IN_Time and then it does the math by itself to adjust every chapter accordingly. So you just need to enter 600seconds (10mins) because this is the IN_Time TS_Muxer enforces.
BTW I've noticed the program does some miscalculations and misses a couple miliseconds here and there, which is weird, but negligible anyway in the result...

deank
30th December 2009, 01:56
You are correct Deank in your math.
However, If using the FixMPLS program mentioned earlier, there is no need for math...

Yep... I know about the tool for some time now, but never used it, because I was planing to publish a full featured MPLS editor... Sadly, I had too much other things to do.

About the 'miscalculations' - in/out times are not that precise (~ 100ms), so it is unavoidable. :)

Dean

crl2007
30th December 2009, 02:00
If the in time is over an hour, why should I do the same 11.650 math ? What you are saying is to modify the in time of the original mpls to 10 minutes. Anyway, you can't add 59 minutes. It's simply too much.

By your math: 1:00:00.000 - 10:00.000 = 50:00.000 And it would mean -50:00.000 and negative values aren't supported. Or maybe I'm a little bit slow at the moment, it's 3 AM here.

@Blinky7 When those discs that you've tested worked, you put there 600 seconds ? Or you add those 600 seconds to the existing INTime? Because if you put 600 seconds, you modify the INTime of the original mpls to 10 minutes, the same as the edited one. In this case, deank is right. The differences are accordingly. In the guide, I wrote that you add those 600 seconds, but maybe I made a mistake and should have written that you change the INTime to 10 minutes.

@deank An MPLS editor with all features would be incredible. That would be really awesome. The posibility to set in time, out time, to change language streams, etc... AWESOME. Maybe a full branched disc could be reauthored with a fully functional menu. Obviously, IGS parts won't be kept as long as tsmuxer does not support them.

Blinky7
30th December 2009, 02:23
@Blinky7 When those discs that you've tested worked, you put there 600 seconds ? Or you add those 600 seconds to the existing INTime? Because if you put 600 seconds, you modify the INTime of the original mpls to 10 minutes, the same as the edited one. In this case, deank is right. The differences are accordingly. In the guide, I wrote that you add those 600 seconds, but maybe I made a mistake and should have written that you change the INTime to 10 minutes.

I change the in_time to 10minutes. No adding and stuff. After all, the utility just asks you for a new IN_time. Then it calculates itself and adjusts the chapter timmings accordingly.

I compared the resulting MPLS times with the one created from tsmuxer and they are almost the same....1-3 miliseconds lost here and there, nothing important. That's why it works good then with the chapters

crl2007
30th December 2009, 02:28
So I've been arguing with deank for nothing. He was right all along.

4) Edit movie mpls adding 10mins to the timming

I understood from you that you added those 600 seconds to the existing INTime. I will modify this in my guide.

LE: I've modified the guide too, look on the first page and see if I overlooked something.

laserfan
30th December 2009, 16:42
I ripped my first Blu-ray disc today (Ghost Rider), using my Playstation3's Yellow Dog Linux and decrypted it with the trial of AnyDVDHD...

The disc is purely HDMV authored (no Java) and by using the 'transcode' in multiAVCHD I got the movie only AVCHD version in just 2 hours :) in 1280x720 ~ 4.4GB to play it in my PS3 with the external HDD, without the need of the blu-ray disc. Although it is a function of multiAVCHD for almost an year - it was the 1st time I tried it :)

Then with some playlist tweaks I got the original POP-UP/MAIN menu working in my FAT32 AVCHD compilation :) It is not really easy to automate the process in multiAVCHD when multiple titles are used, but for one-title-compilation it may be much easier.

Here is what happened (you can see that the ripped disc is now converted to 1280x720:) ):

http://multiavchd.deanbg.com/multiAVCHD_popUP.jpg

http://multiavchd.deanbg.com/multiAVCHD_popUP2.jpg

I haven't had time to test this myself yet, so please indulge me one more question: When you re-made (converted to 1280x720 then remuxed) the feature here, did you also retain all the subs, or did you strip some out? Just wondering if this can be done and the thing still plays, or if the playback chokes cuz it's missing subs (or audios).

Seems to me one could replace any number of m2ts files with "blanks" (e.g. 1 second of blank video) and then modify the mpls' as discussed here, and end-up with a disc that's got menu and chapters but no other unwanted extras...?

@crl2007 sorry this is slightly off-topic but your technique is exposing other opportunities!

Capsbackup
30th December 2009, 16:55
Seems to me one could replace any number of m2ts files with "blanks" (e.g. 1 second of blank video) and then modify the mpls' as discussed here, and end-up with a disc that's got menu and chapters but no other unwanted extras...?

@crl2007 sorry this is slightly off-topic but your technique is exposing other opportunities!
This would certainly get my attention too! ( and also sorry crl2007)

crl2007
30th December 2009, 16:56
@laserfan I don't mind, as long as we all find ways to better and easier edit our disc collection. If you remove tracks, the rest of them are automatically "upped" and you need to modify the mpls accordingly. You need to remove them from mpls too. For now, this operations can only be made from hex edit. And if you are not a programmer, hex edit is extremely tough. Although, you can replace those tracks with 1 second dummies and it's fully functional. As for other effects, there are none, except this stream order.

And yes, you can replace any m2ts with a 1 second video and modify the mpls with fixmpls. There is no choke. I tried something like this a long time ago, but with the original extras m2ts split.

I used DGSplit to split those m2ts in 1 MB sections. The disc reads through them and the trailers etc. are gone.

deank
30th December 2009, 17:00
@laserfan:

I extracted the subtitles I need (English and Bulgarian), resized them to 720p and used the files (as .sup/PGS) in the remuxed blu-ray. I also removed all audio streams (except english) and all subtitle tracks (and added external).

Since English is #1 and Bulgarian is #2 (in the language/popup menu) - the disc works perfectly, switching subtitles and playing the audio. I had no time to completely edit the playlist to remove all 'broken' links to missing audio/subtitle streams, but it does not affect the playback in any way.

Seems to me one could replace any number of m2ts files with "blanks"

I described this in the other thread (http://forum.doom9.org/showthread.php?t=147516) and it is simply done by using the original mpls with edited in/out times and new (1 second blank) m2ts/clpi.

crl2007
30th December 2009, 17:34
@deank Man, you know hex edit, we can see there just a bunch of numbers and letters. :) If you could make a tutorial for the rest of us who are idiots when it comes to hex, it would be great. Honestly, when you say something about hex, we just see a bunch of numbers written but with no meaning for us. :)

deank
30th December 2009, 17:43
I will, scout's promise :)

Capsbackup
30th December 2009, 18:16
@deank Man, you know hex edit, we can see there just a bunch of numbers and letters. :) If you could make a tutorial for the rest of us who are idiots when it comes to hex, it would be great. Honestly, when you say something about hex, we just see a bunch of numbers written but with no meaning for us. :)

Agree completely here! May as well be another language :confused:( haha, it is! )

laserfan
30th December 2009, 20:05
I had no time to completely edit the playlist to remove all 'broken' links to missing audio/subtitle streams, but it does not affect the playback in any way.That's what I was curious about, thanks for confirming.

FWIW I made a spreadsheet to convert HEX to H:M:S.MS and back again. It's still tedious to find/fix entries; I use/like HxD:

http://mh-nexus.de/en/

crl2007
30th December 2009, 21:53
I've been thinking a little about branched discs and the ones with IGS elements. I don't think that it is possible to keep both theatrical and Uncut version or Maximum Movie Mode ( IGS elements ) by editing the mpls. First of all, every m2ts has it's very own INTime and sometimes, they have only a few seconds. You can't add 10 minutes INTime to a 10 seconds m2ts. Second you'll have to determine the chapters for every m2ts and there can't be multiple m2ts files with the same INTime. Third you'll have to split subs for every single m2ts and sync for each part. There is no remuxer for IGS elements.

Maybe, in the future, tsMuxer will be able to keep the original structure of a playlist, editing every file by its own and not as a whole. Or maybe multiavchd will be able to do that. And that bmp exporting/importing that we've discussed.

LE: @deank If you agree, I'll do all the work when it comes to a branched disc and you just hexedit the mpls. It is worth a try, maybe we can reauthor tv series if our little experiment is a succes. But when I'll find one an I'll have a little time off. Do you think it's worth it ? The work I mean.

Blinky7
30th December 2009, 23:54
For the time being, I think keeping both versions of a movie (theatrical/extended) can be done by working the same way for both versions and just putting both new m2ts/mpls/cli files int he existing BD structure. Assuming you delete the m2ts files that are now contained in the 2 huge M2TS files, and assuming there is no more than 2 versions of the movie, you should be able to keep it under 50gb most times, to be able to fit in a BD-50.
It would be tricky though if both versions start with the same m2ts file (00003.m2ts for example, and there are differences later on teh playlist). I guess you could keep the original mpls names (00003 and 00004 lets say....) and when you export the 2nd version from tsmuxer ask it to load 00004.m2ts instead of 00003. Since we will be using the new mpls files it should work I guess.

Well, I just did Hannah Montana the movie (BD-java single m2ts) and it worked great again. Now I am experimenting with Jennifer's Body which is multi-m2ts structure. The first tries didnt work. It's a tricky movie because the BDinfo shows 2 versions, one with 1.47mins and one with 1.42 mins but in the menu there is nowhere the choice to choose version...
Then, looking at the m2ts file order of being played from mpls, it's really weird. I expected both playlists to be about the same with the larger one having 2-3 more m2ts files added in some points. But the 1.47min version playlist has one extra m2ts file between each original file....its weird.
Its like playlist 1 is :
00411
00412
00413
00414
...
00421
00422

and playlist 2 is :
00411
00390
00412
00391
00413
00392
00414
00393
...

Do you make any sense out of it?

Also, I used clownBD to demux the files and received one large m2ts and all the other audio-subtitle files. I loaded them in the same sequence in tsmuxer and added my own subs but the result didnt work as expected. Dunno why......gonna go experiment more now...