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

crl2007
12th May 2010, 08:41
If you remux the m2ts with an additional stream ( n+1) you just copy the resulted clpi and replace the original one. There is no need to keep the original clpi.

Maybe an 'Apply to mpls' would be useful too...

That would be useful. Also, it would be useful to be able to delete/add playitems from a playlist file. This would be a nice clean manual way to blank intros, warnings, etc. I tried with Shift+Delete to delete a playitem from a playlist that had two and leave only 1 and didnn't work.

Another thing, I don't know if it is possible, to insert something like pgcedit trace, so this way everybody can skip intros/warnings and the disc will start directly from the main menu or main video. ( You have a PM with the link, to see more for yourself what the feature is ). This would be useful for people who don't know anything about BD structure. One of them is me, I don't really know hex meaning or some commands.

LE: I forgot to mention it, also I don't know if it is possible. To do something like pgcedit naming. To be next to the command written Main Menu, Pop-Up menu, First Play Item ( the first playlist that is launched upon disc insertion ) and then all the playlists order until it hits main menu. The example it is in the same link that I provided you through PM. It's the first picture. It would be useful to make the software more noob user friendly.

chompy
12th May 2010, 09:12
Another thing, I don't know if it is possible, to insert something like pgcedit trace, so this way everybody can skip intros/warnings and the disc will start directly from the main menu or main video. ( You have a PM with the link, to see more for yourself what the feature is ). This would be useful for people who don't know anything about BD structure. One of them is me, I don't really know hex meaning or some commands.

LE: I forgot to mention it, also I don't know if it is possible. To do something like pgcedit naming. To be next to the command written Main Menu, Pop-Up menu, First Play Item ( the first playlist that is launched upon disc insertion ) and then all the playlists order until it hits main menu. The example it is in the same link that I provided you through PM. It's the first picture. It would be useful to make the software more noob user friendly.

+1

And something like DVDRemake debugger, where you can execute the DVD Commands and see all the jumps, links, register values changes... These would really help us noob understand what's going on and what should we do to edit our blu-rays.

PurpleMan
12th May 2010, 12:45
If you remux the m2ts with an additional stream ( n+1) you just copy the resulted clpi and replace the original one. There is no need to keep the original clpi.


That is what I normally do, I just don't know if there is any additional information in the original CLPI file that needs to be kept.

crl2007
12th May 2010, 15:01
There will be no incompatibility.

PurpleMan
14th May 2010, 17:00
I'm trying to accomplish something that I'm not sure possible with current version of BDEdit.

I have a menu m2ts file, and I want to save one of the objects in it as a PNG file, edit it (in photoshop, let's say), then replace the original one with the edited one.

Currently, I can save the png just fine, but I have no idea how to replace it after editing it. Currently, if I click 'load' and chose the png, it's being added as a new entry.

Is there a way I can do it?

deank
14th May 2010, 17:02
What happened to the 2-page long discussion of ATC delta?

Was it just asking for features and options and no sharing any results?

crl2007
14th May 2010, 18:12
@PurpleMan Read here (http://forum.doom9.org/showthread.php?t=152952). I described exactly how to do it.

SoniG
15th May 2010, 01:41
What happened to the 2-page long discussion of ATC delta?
Was it just asking for features and options and no sharing any results?No deank, it was just very long to test! Thanks again Pelican9 to have allowed me to play with this.

Thread opened here : http://forum.doom9.org/showthread.php?t=154578

PurpleMan
15th May 2010, 08:13
@PurpleMan Read here (http://forum.doom9.org/showthread.php?t=152952). I described exactly how to do it.

Thank you, apparently I just missed that checkbox that says 'replace'. Much appreciated.

crl2007
15th May 2010, 08:30
You're welcome. Glad I could help.

drelin
16th May 2010, 12:21
Hello,
Sorry by advance for my poor english.

I'm searching a way for display automaticly the popup menu at any start of a video title without "press on popup menu" remote button on controler.
Is it aviable with BDEDIT ?

Thank a lot.

deank
16th May 2010, 12:55
There is no command/control in HDMV to automatically enable the pop-up menu. The only way is the user-operation (button on your remote control) PopUp On().

It could be possible to use Virtual Keys via BD-J interface, but I doubt you are interested in it.

deank
21st May 2010, 10:45
@Pelican: I don't know if it is intentional or a bug, but EP coarse and EP fine tables in the CPI group of clpi tab are read-only and not scrollable. You can see only the 1st two entries and not the rest.

:) Dean

Pelican9
21st May 2010, 18:06
@Pelican: I don't know if it is intentional or a bug, but EP coarse and EP fine tables in the CPI group of clpi tab are read-only and not scrollable. You can see only the 1st two entries and not the rest.

:) Dean

:thanks:
That was a bug. Fixed. (next version)
Does the 8.3 and D&D work at last?

crl2007
21st May 2010, 18:40
Copy to mpls would be useful too. Also, it would be useful to be able to delete/add playitems from a playlist file. This would be a nice clean manual way to blank intros, warnings, etc. I tried with Shift+Delete to delete a playitem from a playlist that had two and leave only 1 and didnn't work.

Another thing, I don't know if it is possible, to insert something like pgcedit trace, so this way everybody can skip intros/warnings and the disc will start directly from the main menu or main video. ( You have a PM with the link, to see more for yourself what the feature is ). This would be useful for people who don't know anything about BD structure. One of them is me, I don't really know hex meaning or some commands.

LE: I forgot to mention it, also I don't know if it is possible. To do something like pgcedit naming. To be next to the command written Main Menu, Pop-Up menu, First Play Item ( the first playlist that is launched upon disc insertion ) and then all the playlists order until it hits main menu. The example it is in the same link that I provided you through PM. It's the first picture. It would be useful to make the software more noob user friendly.

I don't know if you saw this. :D

deank
21st May 2010, 18:47
:thanks:
That was a bug. Fixed. (next version)
Does the 8.3 and D&D work at last?

Oh yes... A big time-saver! Thank you!

Dean

Pelican9
21st May 2010, 20:24
I don't know if you saw this. :D

Yes, I did. I'm still trying to understand... :)
PlayItem Insert/Delete is the next on my todo list.

crl2007
21st May 2010, 21:29
I've sent you a link through PM with exactly the feature that pgcedit does for DVD's. I don't know if it is possible because of the java, but it worth asking.

laserfan
27th May 2010, 22:35
tsMuxeR-made (movie-only) discs always loop-back to the beginning, so I've been deleting their Jump-Title commands and inserted GoTo Breaks into my command lines. Lately I notice BDedit doesn't like these:

;------------------------------------------------------------
;
; MovieObject program list by BDedit
;
;------------------------------------------------------------
0000 [42C20000,00000000 ,00000000 ] Play PL_MK 0, 0
0001 [00420000,00000001,00000000] !Break ; Invalid opcode
Of course the discs work fine, but is there a reason these commands are shown as such? :confused:

Also, I discovered that the Menu discs I've made w/Ulead MF6+ will turn-on Subtitles when more than one episode is played. I looked at the MovieObjects with BDedit and find these in several places:

0000 [51C00001,80000000 ,00000000 ] SetStream 0, (0), (0), (0)
0001 [51C00001,0000C000 ,00000000 ] SetStream (0), 0, (0), (0)
Our very own Dean Of BD Authoring made a post here (http://forum.doom9.org/showthread.php?p=1274952#post1274952) where he describes the following:
SetStream AAAASSSS,0

Audio:
8001 - 801F - Will change audio stream to 1-31
0000 - will not change current audio

Subtitles:
C001 - C007 - Will force/show subtitle stream 1 to 7
8001 - 8007 - Will hide subtitle stream 1 to 7
0000 - will not change subtitle stream

So for Subtitle 2 with audio 3 to show:
SetStream 8003C002,0

For Audio change only: 80010000
Fos Subtitles change only: 0000C001
I don't see 8000 or C000 anywhere--and why have two commands back-to-back when (I thought) one would do? What in heck do you suppose Ulead is attempting to accomplish with their two commands (if I merely delete both of them then I get audio and Subs Off (desired effect) just fine)??? :confused:

chompy
28th May 2010, 09:12
tsMuxeR-made (movie-only) discs always loop-back to the beginning, so I've been deleting their Jump-Title commands and inserted GoTo Breaks into my command lines. Lately I notice BDedit doesn't like these:


Of course the discs work fine, but is there a reason these commands are shown as such? :confused:

Also, I discovered that the Menu discs I've made w/Ulead MF6+ will turn-on Subtitles when more than one episode is played. I looked at the MovieObjects with BDedit and find these in several places:


Our very own Dean Of BD Authoring made a post here (http://forum.doom9.org/showthread.php?p=1274952#post1274952) where he describes the following:

I don't see 8000 or C000 anywhere--and why have two commands back-to-back when (I thought) one would do? What in heck do you suppose Ulead is attempting to accomplish with their two commands (if I merely delete both of them then I get audio and Subs Off (desired effect) just fine)??? :confused:

I've recently have a similar problem as you: the subs where forced despite I used correct_BD to disable them, and with BDEdit I found the same two commands you've posted.

The second command (SetStream (0), 0, (0), (0)) is the cause of the problems, as the second 0 (C000) isn't in brackets and this seems to be equivalent in having SetStream (0), (1), (0), (0) which will enable the first sub. You can delete this command and everything will be fine.

Greetings

crl2007
28th May 2010, 10:23
8000 and C000 are present.

0000 [51C00001,80000000 ,00000000 ] SetStream 0, (0), (0), (0)
0001 [51C00001,0000C000 ,00000000 ] SetStream (0), 0, (0), (0)

@chompy When I deleted them from a disc, the menu links became crippled, so you have to edit those commands too.

deank
28th May 2010, 10:42
What in heck do you suppose Ulead is attempting to accomplish with their two commands (if I merely delete both of them then I get audio and Subs Off (desired effect) just fine)??? :confused:

You must understand that Ulead is a program :) which creates various movieobject "programs" for a lot of different scenarios. For the same reason you may see some "NOP"s here and there or some weird commands, like those you found.

It is possible that both commands are needed because of some "GOTO 000" or "GOTO 001" when different conditions occur. For example when only subtitle appearance change is required but not audio change.

C000 will activate the 'display' property for the currently selected subtitle stream (but will not change the active subtitle stream).

Dean

chompy
28th May 2010, 11:23
8000 and C000 are present.
@chompy When I deleted them from a disc, the menu links became crippled, so you have to edit those commands too.

Yep, sorry that's true, it worked perfectly for me, but as deank has explained, there can be GOTOs in the code, and then deleting it will cause problems.

Pelican9
28th May 2010, 17:23
... there can be GOTOs in the code, and then deleting it will cause problems.

BDedit maintains the GoTo addresses when you insert or delete a command...

deank
28th May 2010, 17:33
I was to post the same, but then if GOTO uses GPR you can't follow it, so it will all brake. :)

The safe way is to use SHIFT-N :p to NOP a command and not to remove it, that is if not followed by a 'compare' command.

Pelican9
28th May 2010, 18:38
Yes, you are right. As always... :)

laserfan
29th May 2010, 13:58
OK thanks guys I think I get the NOP thing--I will try it anyway. Pelican9 is there a "trace" function possible-or-planned for BDedit?

Also, what about this question:

tsMuxeR-made (movie-only) discs always loop-back to the beginning, so I've been deleting their Jump-Title commands and inserted GoTo Breaks into my command lines. Lately I notice BDedit doesn't like these:

;------------------------------------------------------------
;
; MovieObject program list by BDedit
;
;------------------------------------------------------------
0000 [42C20000,00000000 ,00000000 ] Play PL_MK 0, 0
0001 [00420000,00000001,00000000] !Break ; Invalid opcode
Of course the discs work fine, but is there a reason these commands are shown as such? :confused:

laserfan
29th May 2010, 14:05
You must understand that Ulead is a program... It is possible that both commands are needed...

C000 will activate the 'display' property for the currently selected subtitle stream (but will not change the active subtitle stream).I forgot to specifically thank you Dean for this complete-and-clear explanation, that even *I* can understand! ;) Much appreciated!
:thanks:

Pelican9
29th May 2010, 14:37
OK thanks guys I think I get the NOP thing--I will try it anyway. Pelican9 is there a "trace" function possible-or-planned for BDedit?

Also, what about this question:

tsMuxeR-made (movie-only) discs always loop-back to the beginning, so I've been deleting their Jump-Title commands and inserted GoTo Breaks into my command lines. Lately I notice BDedit doesn't like these:


Of course the discs work fine, but is there a reason these commands are shown as such? :confused:

The trace is possible. Check the Trace checkbox and click Start.
The Break command is 0x00020000 0x00000000 0x00000000

laserfan
30th May 2010, 14:18
The trace is possible. Check the Trace checkbox and click Start.
The Break command is 0x00020000 0x00000000 0x00000000Ouch how'd I miss the Trace function--thanks I will take a look.

crl2007
1st June 2010, 08:38
@Pelican9 I've encountered a new type of IGS menu format, when it is combined with a video stream.

http://thumbnails11.imagebam.com/8280/26763b82797463.gif (http://www.imagebam.com/image/26763b82797463)

After I remuxed it become unusable. I've sent you a sample over PM.

deank
1st June 2010, 11:01
It is a regular in-mux IGS. multiAVCHD used it for all menus in ver 3.0 and for [AVCHD strict] output in ver 4.

crl2007
1st June 2010, 14:07
Yeah, the problem is the fact that after remuxing it becomes unusable. It is like there is no menu.

Pelican9
1st June 2010, 20:35
Yeah, the problem is the fact that after remuxing it becomes unusable. It is like there is no menu.

BDedit's muxer cannot handle in-mux IGS. (because when you load the menu it loads only the IGS packets)
So, the m2ts shall not contain other streams...

I'm just thinking what if we make a subpath with this IGS...

mrr19121970
9th June 2010, 10:39
Does anyone know what PID is used for PIP streams? Which disks use Picture In Picture? Can someone please post an AnyDVD log from a disk with PIP?

Thanks.

deank
9th June 2010, 11:17
http://multiavchd.deanbg.com/BD_pids.jpg

mrr19121970
9th June 2010, 12:10
The reason why I asked is in BDEdit, tab Playlist on the right hand side is the table STN which contains Vi, Au, PG, IG, sV, sA and PIP. I've never seen PIP actually containing anything.

I've also never seen sV & sA contain anything other than 0 0 or 1 1. As the PIDs are 1A00 for secondardy audio and 1B00 for secondary video, I'm wondering are these values really reversed in the STN? The table following does contain the PIDs in the correct sequence.

So rather than

Vi Au PG IG sV sA PIP

http://forum.doom9.org/attachment.php?attachmentid=11148&stc=1&d=1276081926

are the columns not really

Vi Au PG IG sA sV PIP

deank
9th June 2010, 12:22
I just created a test structure with tsMuxeR (without secondary audio) and the STN is okay in BDedit.

sV=1, sA=0

sV type: IM PIP / PID=1B00

Dean

Pelican9
9th June 2010, 17:45
The reason why I asked is in BDEdit, tab Playlist on the right hand side is the table STN which contains Vi, Au, PG, IG, sV, sA and PIP. I've never seen PIP actually containing anything.

I've also never seen sV & sA contain anything other than 0 0 or 1 1. As the PIDs are 1A00 for secondardy audio and 1B00 for secondary video, I'm wondering are these values really reversed in the STN? The table following does contain the PIDs in the correct sequence.

So rather than

Vi Au PG IG sV sA PIP

http://forum.doom9.org/attachment.php?attachmentid=11148&stc=1&d=1276081926

are the columns not really

Vi Au PG IG sA sV PIP

I don't really understand what do you want to know.
As deank wrote secondary video's PID 1B00-1B1F, secondary audio's PID 1A00-1A1F.
Why do you think that sV and sA reversed?
The last column in STN is PIP but it means:
Presentation Graphics stream or Text subtitle stream for
Picture-in-Picture.
The PID for this column is the same as for PG or TextSt

mrr19121970
9th June 2010, 18:40
It's no big issue. My question was that if they are displayed in the incorrect order on the screen, were they also incorrectly displayed when selected. This is not the case.

Order in STN table:
http://www.clownbd.com/princess&frog_1.jpg

Order On Screen:
http://www.clownbd.com/princess&frog_2.jpg

Pelican9
9th June 2010, 22:37
Yep, I've got it.
The structure of STN_table():
length 2 byte
reserved_for_future_use 2 bytes
number_of_primary_video_stream_entries 1 byte
number_of_primary_audio_stream_entries 1 byte
number_of_PG_textST_stream_entries 1 byte
number_of_IG_stream_entries 1 byte
number_of_secondary_audio_stream_entries 1 byte
number_of_secondary_video_stream_entries 1 byte
number_of_PiP_PG_textST_stream_entries_plus 1 byte
...

I've just listed them a little more logical order...

mrr19121970
10th June 2010, 07:46
reserved_for_future_use 2 bytes


According to my information bytes 3 and 4 are:

. Random Access
. Still Mode

I can't remember my source. I'll have to hunt that one down.

crl2007
10th June 2010, 10:14
What you say here is that after remuxing, the streams got inversed ? IF that is the case, it's the fault of the disc authoring crew and the way they first order the streams. For example, in the original mpls the audio ( for exemple purpose ) streams are declared as this:

Playitem mPID

001 1100
002 1104
003 1102
004 1103
005 1101

But when tsmuxer remuxes them it looks like this:

Playitem mPID

001 1100
002 1101
003 1102
004 1103
005 1104

And that's why the menu isn't functional anymore. This is the same for subtitle streams. So, the only thing to do in this cases is to edit the mPID to look as the original, or use deank system of recreating mpls files based on the original. A while back I encountered this behaviour in multiAVCHD and deank succeeded in bypassing tsmuxer mPID order so you don't have to do it manually anymore.

Pelican9
10th June 2010, 13:42
Which disks use Picture In Picture?

The "Terminator 2" has one secondary video, two secondary audio streams and five PIP PG streams.

crl2007
14th June 2010, 08:23
Feature request:

http://thumbnails13.imagebam.com/8439/84644784381556.jpg (http://www.imagebam.com/image/84644784381556)

To be able to save and load information from and in the STN table. This is usually usefull when we encounter the case I presented above and we have over 10-15 entries.

Pelican9
14th June 2010, 22:22
Feature request:

http://thumbnails13.imagebam.com/8439/84644784381556.jpg (http://www.imagebam.com/image/84644784381556)

To be able to save and load information from and in the STN table. This is usually usefull when we encounter the case I presented above and we have over 10-15 entries.

Is it necessary to Save/Load or a Copy/Paste is enough?

crl2007
15th June 2010, 14:56
I believe that a load / save would be necessary, because copy / paste does not work between 2 instances of bdedit, or at least didn't work for me with menu buttons commands.

Also, I think that a temp folder for every movie opened would be necessary, to be able to open 2 instances of bdedit for a disc with IGS menu and edit one without the other instance to crash.

crl2007
19th June 2010, 07:22
A few days ago I bought from a friend the Panasonic 3D Demo disc. I saw that it has a different structure and if you rip it to the HDD the size will double.

So, the question is: are you planning future 3D discs support ?

The movieobject gives an error:

http://thumbnails21.imagebam.com/8502/cc784f85013640.jpg (http://www.imagebam.com/image/cc784f85013640)

Some file types aren't supported:

http://thumbnails31.imagebam.com/8502/d86cf785013643.jpg (http://www.imagebam.com/image/d86cf785013643)

IGS looks something like this:

http://thumbnails11.imagebam.com/8502/96bd4f85013644.jpg (http://www.imagebam.com/image/96bd4f85013644)

If you want, I can provide you with all needed files in order to make it functional in bdedit.

Pelican9
19th June 2010, 14:28
Yes, please share the structure I would like to see it.

crl2007
19th June 2010, 15:21
You have PM.