Log in

View Full Version : BDedit - BD structure edit


Pages : 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

tymoxa
11th April 2010, 23:47
A possible bug: can't save modified index.bdmv if i changed Object ID of First Playback.
It looks like changes was saved, but they're not.

Pelican9
12th April 2010, 00:18
A possible bug: can't save modified index.bdmv if i changed Object ID of First Playback.
It looks like changes was saved, but they're not.

:thanks:
Fixed.
(For me not saved anything.)

Edit:
Tadaaaam! :cool:

The first muxed m2ts menu is working flawlessly in TMT. :)

I don't know how can I fill the timecode and the PCR values, I don't know how often I have to insert the PCR PID, PAT, PMT and SIT packets and I'm afraid that a 'real' BD player needs these things in a correct way but it WORKS...

crl2007
12th April 2010, 07:54
That's a great start. :cool: Even for software players only and it is a major breakthrough. You can upload the test file and someone with a standalone player can give it a try.

LE: If you upload the BDEdit version capable of this, I can edit a menu and give it to some of my friends with standalone players and get back to you with an answer.

tymoxa
12th April 2010, 08:44
... I'm afraid that a 'real' BD player needs these things in a correct way...
I can test it: i have access to many of standalone BD players.

Pelican9
12th April 2010, 19:14
Changes for v0.29

- Mux capaility for IGS menu
- Lot of bug fix

The muxer is very basic, but you can try it and I can improve it based on your experiences.

The upload takes time, be patient. :)

tymoxa
12th April 2010, 19:54
Pelican9
oops...
http://www.picatom.com/1e/1-4435-th.jpg (http://www.picatom.com/1e/1-4435.html)

Pelican9
12th April 2010, 20:11
:thanks:
Fixed.

crl2007
12th April 2010, 20:33
The same bug as tymoxa with the one downloaded now.

LE: The load and mux buttons are in the middle of the program page.

tymoxa
12th April 2010, 20:37
Ok... So i modify one button and mux menu into .m2ts...
In TMT3 i get this:
select button http://www.picatom.com/1e/selected-1-th.jpg (http://www.picatom.com/1e/selected-1.html)
activate button http://www.picatom.com/1e/activated-1-th.jpg (http://www.picatom.com/1e/activated-1.html)
after this i can't select other button...
Popcorn C200 play this menus without errors...

tymoxa
12th April 2010, 20:50
The original menu-m2ts have .clpi files... Maybe they needed to be generate too?

crl2007
12th April 2010, 21:09
Tested with lotr, works fine, but I can't keep the palette. It just picks up a palette that he wants. Is there a way to force the software to accept my palette ?

LE: I separated the palettes, but now the whole menu has a different one. Maybe you can put an option to choose the palette for every button. And an option to delete the user added menu objects would be useful.

LE: If I insert a saved one, the palette keeps the same. I think the image must be saved in a different manner than my own.

@tymoxa Have you succeded with the palette ?

tymoxa
12th April 2010, 21:26
crl2007
send you PM.

Pelican9
12th April 2010, 21:28
Ok... So i modify one button and mux menu into .m2ts...
In TMT3 i get this:
select button http://www.picatom.com/1e/selected-1-th.jpg (http://www.picatom.com/1e/selected-1.html)
activate button http://www.picatom.com/1e/activated-1-th.jpg (http://www.picatom.com/1e/activated-1.html)
after this i can't select other button...
Popcorn C200 play this menus without errors...

In BDedit the edited button is working well?
Popcorn plays the edited menu without error?

The original menu-m2ts have .clpi files... Maybe they needed to be generate too?
Only one thing can change, the packet number, I think it's no so important to change.

Pelican9
12th April 2010, 21:33
Tested with lotr, works fine, but I can't keep the palette. It just picks up a palette that he wants. Is there a way to force the software to accept my palette ?

LE: I separated the palettes, but now the whole menu has a different one. Maybe you can put an option to choose the palette for every button. And an option to delete the user added menu objects would be useful.

LE: If I insert a saved one, the palette keeps the same. I think the image must be saved in a different manner than my own.

@tymoxa Have you succeded with the palette ?

I can not do anything with the palette, this is the BD standard (one page - one palette).

I don't know which image editor we can use.
PhotoShop cannot save PNG8 with more than one transparent color.
Maybe tymoxa has a good one.

crl2007
12th April 2010, 21:41
Fireworks can use an external color table *.act. If you can extract the color table, maybe we can use it like this. Index transparency is also supported.

LE: I think I found the problem. The new png is added as a new palette. If the menu has from 00 to 05, the added png goes to 06. It should go into 00 - 05 values.

tymoxa
12th April 2010, 22:01
Pelican9
In BDedit the edited button is working well?
Popcorn plays the edited menu without error?
Popcorn - yes.. without error.
BDedit gives this http://www.picatom.com/1e/error-44-th.jpg (http://www.picatom.com/1e/error-44.html)

Pelican9
12th April 2010, 22:01
Fireworks can use an external color table *.act. If you can extract the color table, maybe we can use it like this. Index transparency is also supported.

It's a good idea.:helpful:
Do you know the format of this .act?

LE: I think I found the problem. The new png is added as a new palette. If the menu has from 00 to 05, the added png goes to 06. It should go into 00 - 05 values.
Yes, it adds a new object and a new palette.
I will put more function to handle the objects and palettes.

Pelican9
12th April 2010, 22:04
Pelican9

Popcorn - yes.. without error.
BDedit gives this http://www.picatom.com/1e/error-44-th.jpg (http://www.picatom.com/1e/error-44.html)

Send the .mnu please.

Edit:
I've checked your .mnu.
It works in BDedit and (the muxed m2ts) in TMT well.
Strange.
Could you try to restart BDedit, load the mnu, mux, and see in TMT?

Edit2:
Which program did you use to edit the images?
Nice job.

crl2007
12th April 2010, 22:14
You have PM with an *.act file. Also, Fireworks can import palette from gif files.

@tymoxa That error surfaces when the object png is not quite as bdedit likes it.

crl2007
12th April 2010, 23:02
These are the 4 ( 2 for normal and 2 for highlight ) states of my buttons here:

http://thumbnails23.imagebam.com/7619/5b832576187683.gif (http://www.imagebam.com/image/5b832576187683)

http://thumbnails25.imagebam.com/7619/e50f1676187685.gif (http://www.imagebam.com/image/e50f1676187685)

http://thumbnails8.imagebam.com/7619/32b74376187687.gif (http://www.imagebam.com/image/32b74376187687)

http://thumbnails6.imagebam.com/7619/016ae676187689.gif (http://www.imagebam.com/image/016ae676187689)

These last two don't appear in BOG's, only in Objects. And therefore I can't modify them.

Here (http://www.sendspace.com/file/4vivtw) is my menu, for better understanding. Or maybe I'm too tired. Here is already 1 in the morning.

Pelican9
13th April 2010, 00:08
These are the 4 ( 2 for normal and 2 for highlight ) states of my buttons here:

These last two don't appear in BOG's, only in Objects. And therefore I can't modify them.

Here (http://www.sendspace.com/file/4vivtw) is my menu, for better understanding. Or maybe I'm too tired. Here is already 1 in the morning.

On the object page there is a 'referenced' column. It shows where the object used by a button or a by an effect.
The format is
'p:Bt' or 'pe'
where
p: page,
B: button,
t: state type (n: normal s: selected a: activated),
e: effect type (i: InEffect, o:OutEffect)
Examples:
1i: Page 1, InEffect
2io: Page 2, Ineffect and OutEffect
3:1n: Page 3, Button 1, normal state
4:5nsa: Page 4, Button 5 normal state and selected state and activated state
...
So in your example, your objects referenced by Page 2, Button 13 and 14

crl2007
13th April 2010, 06:31
The 2 that I can't find are 2:44n and 2:44sa. 002f and 0030.

Pelican9
13th April 2010, 06:47
The 2 that I can't find are 2:44n and 2:44sa. 002f and 0030.

Did you noticed that the BOG 13 has 2 buttons (2b (43) and 2c (44))?
You can move the splitter a little bit down to see both button.

crl2007
13th April 2010, 06:54
That splitter I couldn't see. :lol: I saw that there are 2 buttons, but even if you killed me, I couldn't see the splitter. I thought it was a program box. Thanks.

Feature request:

1. Splitters to be more greyed than the rest of the boxes lines. It facilitates some to notice them easier.

Pelican9
13th April 2010, 06:59
That splitter I couldn't see. :lol: I saw that there are 2 buttons, but even if you killed me, I couldn't see the splitter. I thought it was a program box. Thanks.

OK. Happy end. I can go to sleep now...

crl2007
13th April 2010, 08:14
Ok... So i modify one button and mux menu into .m2ts...
In TMT3 i get this:
select button http://www.picatom.com/1e/selected-1-th.jpg (http://www.picatom.com/1e/selected-1.html)
activate button http://www.picatom.com/1e/activated-1-th.jpg (http://www.picatom.com/1e/activated-1.html)
after this i can't select other button...

The same behaviour here after replacing all 4 buttons. In TMT 3.

LE: Bypassed the part where you can't select no buttons. I replaced on the second row 002C with 002B.

http://i43.tinypic.com/34gxdmq.jpg

This behaviour appears whenever I replace the second row buttons, they completely dissappear after the mux. The first row is muxed correctly.

LLE:

http://i39.tinypic.com/2i6u05.jpg

Like this, everything works correctly.

tymoxa
13th April 2010, 09:55
I can confirm this. This kind of "solution" gives no error in TMT3.

tymoxa
13th April 2010, 10:16
In 0.29b1 if i import object with replacing i can't see changes for some reason.
So after replacing i saved, loaded and muxed this menus and... Wow... menu works as it should.
Pelican9 you did it!!! :thanks:

crl2007
13th April 2010, 10:44
The activate button stays the same for me, it dissappears. But the problem to not be able to select another button is fixed. :thanks:

LE: I'll try with replacing later, when I come from work. :thanks: again for this piece of software.

crl2007
13th April 2010, 12:51
Tried replacing, now everything works flawlessly. :thanks:

l.e. 1. I went today and bought that damn Ninja Assassin disc again. The same retarded disc. But... SURPRISE... I successfully edited the menu. So, indeed, a very nice job.

2. Please default the extension for palette saving to .pxml, that's the accepted extension by the plugin. It works to change it manually, but it is nice to be from the beginning.

l.l.e. I've started working on the guide for IGS menu editing. I think tonight or tomorrow will be posted.

The guide -> http://forum.doom9.org/showthread.php?t=152952 If I forgot something, feel free to add.

deank
13th April 2010, 17:12
I didn't get to the editing part, yet, but I was using the nav-editing for the IGS...

Pelican, will you enable the "shift-n" for the editing in the MENU tab, too?

I also noticed that when I used the 'mux' button when I edited just few nav commands I got a .m2ts which is smaller than the original (original: 72kb, muxed: 68kb).

Why is that?

Also in this case I had to edit the packet count in the .clpi files, too. :)

The muxing you're doing does not comform to the requirement for TS stream / Aligned units. Each unit should be 6144 bytes, so you have to stuff few packets at the end with pid 0x1fff to get the correct size.

Dean

Pelican9
13th April 2010, 17:44
clr2007:
.pxml done.

deank:
Shift-N done.
Send that tiny m2ts please.
Unit aligning done.

tymoxa:
Still don't see the replaced object image?

crl2007
13th April 2010, 17:53
It would be useful too to edit the clpi for the igs m2ts file that we modify. Maybe sometimes it is needed, and not many people know how to do it manually. Could be one in 300 cases, but it doesn't hurt to be there.

deank
13th April 2010, 17:53
You have a PM. Basically m2ts file size should be dividable by 6144 (which is 32 x 192 packets). Once you happen to be short with some packets, you'll need to stuff the m2ts with the null packets (PID 1fff).

//edit: you're lightning fast :)

Pelican9
13th April 2010, 18:06
You have a PM. Basically m2ts file size should be dividable by 6144 (which is 32 x 192 packets). Once you happen to be short with some packets, you'll need to stuff the m2ts with the null packets (PID 1fff).

//edit: you're lightning fast :)

Thanks.
Did you try the 8.3 filename support?

It would be useful too to edit the clpi for the igs m2ts file that we modify. Maybe sometimes it is needed, and not many people know how to do it manually. Could be one in 300 cases, but it doesn't hurt to be there.

I'm working on it.

deank
13th April 2010, 18:27
I tried but it won't work:

PLAYLIST folder: OK
CLIPINF folder: OK
BACKUP folder: missing
index.bdmv: missing
MovieObject.bdmv: missing
ERROR: Check failed.

Also drag&drop support of BDMV folder or INDEX.BDM / index.bdmv will be great, too. :)

Pelican9
13th April 2010, 18:43
I tried but it won't work:

PLAYLIST folder: OK
CLIPINF folder: OK
BACKUP folder: missing
index.bdmv: missing
MovieObject.bdmv: missing
ERROR: Check failed.

Also drag&drop support of BDMV folder or INDEX.BDM / index.bdmv will be great, too. :)

You are still in 'normal' (BD compliant) mode.
Did you check the 8.3 filename option?
You have to see this:
Checking required files and directories...
PLAYLIST folder: OK
CLIPINF folder: OK
BACKUP folder: OK
INDEX.BDM: missing
MOVIEOBJ.BDM: missing
ERROR: Check failed.

I've checked the source packet number values in .clpi files and it never match to the m2ts size (divided by 192). My idea was it means only the 'real' packets but not match with that either. Any idea?

deank
13th April 2010, 19:42
Here it always matches... Take the filesize of the m2ts (reported as is, not 'size on disc') and divide by 192.. you'll get the exact number in the clpi @ offset 0x38.

tymoxa
13th April 2010, 19:53
clr2007:
Still don't see the replaced object image?
Nope... Only after saving and reloading .mnu replaced objects became visible.

Pelican9
13th April 2010, 20:01
Nope... Only after saving and reloading .mnu replaced objects became visible.

What does it exactly mean?
You don't see anything or you see the original image?

Here it always matches... Take the filesize of the m2ts (reported as is, not 'size on disc') and divide by 192.. you'll get the exact number in the clpi @ offset 0x38.

Hmmm. My BD (Ice Age II) is an exception.
I always wondered why the menu m2ts of this BD contains some meaningless data (garbage) at the end...

Edit:
clpi packet number change done.

crl2007
13th April 2010, 20:05
It shows the original images. After muxing it shows the one replaced.

Pelican9
13th April 2010, 20:26
It shows the original images. After muxing it shows the one replaced.

Hmm, it worked last night...
Fixing...
It seems I've totally screwed up something with this replace thing...

deank
13th April 2010, 20:47
Hmmm. My BD (Ice Age II) is an exception.
I always wondered why the menu m2ts of this BD contains some meaningless data (garbage) at the end...

Edit:
clpi packet number change done.

Probably because it was given for re-authoring to a local company with low budget for cost-savings :)

If alignment is needed packets should be NULL not just random data :)

Pelican9
13th April 2010, 20:59
Probably because it was given for re-authoring to a local company with low budget for cost-savings :)

If alignment is needed packets should be NULL not just random data :)

:-)
I think it's the ripping.
I've put NULL packets ($1fff) stuffed with $ff for aligning.
But the Ice Age menu contains something strange at the end in PID $1400 packets...

8.3 names?

deank
13th April 2010, 21:24
Checking required files and directories...
PLAYLIST folder: OK
CLIPINF folder: OK
BACKUP folder: missing
INDEX.BDM: OK
MOVIEOBJ.BDM: OK
ERROR: Check failed.


BACKUP is not a mandatory folder for AVCHD. :)

Does the 8.3 checkbox mean that I can either use only 8.3 files for import and if I need .bdmv I need to untick it?

Pelican9
13th April 2010, 21:30
BACKUP is not a mandatory folder for AVCHD. :)

Does the 8.3 checkbox mean that I can either use only 8.3 files for import and if I need .bdmv I need to untick it?

Fixed.
Yes. You can convert the names.
(Don't try it doesn't work in your version...)

deank
13th April 2010, 22:11
(Don't try it doesn't work in your version...)

You know, you know too much, don't you :)

Pelican9
13th April 2010, 23:25
I've fixed some bug. Try it!

crl2007
14th April 2010, 06:27
Great. :D

l.e. Tested a bit with replacing and it works fine. Shows the replaced one, muxes correctly, the menu displays OK in TMT 3, everything's fine.

I also saw that you've inserted "clpi correction". That's great, much better than saving it with the menu and replacing the original one.

crl2007
14th April 2010, 07:48
In version 029b3, the preview for Menu Objects doesn't work.