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

odin24
15th December 2008, 23:57
@ MadMonkey57 & idbirch2

I'd like to report success, following your instructions MadMonkey57 I was able to automatically enable subtitles. idbirch2, thanks for your trial and error efforts and your instructions MadMonkey57, excellent work guys. So, just to clarify, all I did was;

1. Using BDEdit, open the newly muxed BD structure with subs.
2. In the "BDMV" tab, on the right side highlight the #1 command line, then press the "+" button to the right.
3. No highlight the new cmd line and set the following parameters below.

a. The first three dropdown boxes should be "Set", SetSystem", "SetStream"
b. Check the 2 check-boxes to the right
c. set both small drop-boxes to "IMM"
d. Set the top IMM field to "49154", set the bottom IMM field to 0 (zero)
e. Save, and close.

I did not test this on a full feature, however I did on a two separate 5 minute samples remuxed with tsMuxeR and AVCHD-ME on a USB stick. A/V streams involved were VC-1/AC3core/sup subs and h264/DTS HD-MA/sup subs. This literally took only a few minutes, the longest wait was watching the files transfer to my USB stick.

Note that I applied the BDEdit changes first then renamed using AVCHD-ME... the other way around and BDEdit will not recognize the AVCHD Structure.

Once again, excellent work guys!

EDIT: playback device was my PS3. I will try on a BD soon.

MadMonkey57
16th December 2008, 10:20
I also tried to set an audio stream by default and it works. But there's a little trick here with BDEdit.

In order to set an audio stream, the value for setstream is something like 10000000000000010000000000000000 (binary) which makes it 2147549184 (Decimal). Apparently, BDEdit can't (bug ?) handle decimals that big. The workaround I found was to enter the hexadecimal value 80010000 in the appropriate box.

Tested successfully with a ArcSoft Sofware Player.

G_M_C
16th December 2008, 10:42
Now that you have found a way to set streams, isn' t there a way to adapt BDEdit so that all this becomes more "user-friendly" (I.e. make an option somewhere or a selection field or such ?).

I'm starting to understand this, but i can imagine many people won't, and the dread of making mistakes might keep people off this.

MadMonkey57
16th December 2008, 11:11
Well, I didn't find this trick. bigotti5 did (http://forum.doom9.org/showthread.php?p=1121548#post1121548).
I just ran a few tests and trials and shared with the community.

I agree with the lack of user-frendliness about this method but I'm sure either BDEdit or tsmuxer will soon have new features to handle setting subtitle / audio streams on by default.

odin24
16th December 2008, 11:40
I also tried to set an audio stream by default and it works. But there's a little trick here with BDEdit.

In order to set an audio stream, the value for setstream is something like 10000000000000010000000000000000 (binary) which makes it 2147549184 (Decimal). Apparently, BDEdit can't (bug ?) handle decimals that big. The workaround I found was to enter the hexadecimal value 80010000 in the appropriate box.

Tested successfully with a ArcSoft Sofware Player.

Another good find... however, isn't it whatever audio stream is loaded first (tsMuxeR or tsremux) the default audtio track? Honestly I have never authored a disc with more than one audio stream.

MadMonkey57
16th December 2008, 13:35
Some players rely on their on settings to choose the appropriate default audio / subtitle. Sometimes, you can't even alter these settings.
For instance, I have a portable DVD player that chooses the EN audio and EN subtitles ON by default and I have to manually switch to audio FR (my 4 year old daughter doesn't understand english yet :)) and disable subtitles. It's kinda annoying...

Setting audio / subtitle streams with commands ensures the movie behaves the way I want regardless of the player.

samoin
17th December 2008, 20:13
My blu-ray player is A region tied, and I have a bd back-up but its region free. Could you, please, explain to me how to change it in MovieObject.bdmv to set region code to A??
thanks

KiddColt
22nd December 2008, 23:26
Hello All,

In the 3 March 2008 post it's claimed that this tool can "delete titles" from a BD structure. Could someone please give me a step-by-step on this?

Thanx, KC

PS - Awesome tool - Keep up the good work!

MadMonkey57
29th December 2008, 10:47
With the use of BDEdit, I've stripped down tsmuxer's output (index.bdmv and MovieObjects.bdmv) to the minimum (http://forum.doom9.org/showthread.php?p=1228707#post1228707). The (hopefully compliant) obtained BD structure seems to be a bit more appreciated by my SAP (Panasonic DMP-BD35) than tsmuxer's original output.

Might be of interest to some you guys out there...

mochevolete
1st January 2009, 23:55
I have to change the, wrong, audio tag set by Tsremux (there are 2 tracks eng & ita, but both setted as eng by tsremux, used for a True-HD track), on the second audio track, in the CLIPINF section I can see both audio tracks, but how do I select the second track in the PLAYLIST section to change from the dropdown (in the STN section) ?

thanks Nik

DVD Maniac
4th January 2009, 12:42
Sorry for landing on this thread but i am trying to find a way of pre-processing BDMV structures prior to using jdobbs BD Rebuilder tool. I want to blank out unwanted m2ts files (such as trailers, fbi rubbish etc) in a way which leaves the integrity of the files intact and lets BD rebuilder do it stuff and freeing up more space for the movie itself. There are many tools to achieve this with DVD but not it seems for BD/ HD DVD.

I have played around with ED edit but cant see an obvious way of achieving this, can anyone offer some suggestions?

MadMonkey57
4th January 2009, 13:35
Could you please provide a screenshot of the main tab ?

usr139
15th January 2009, 03:14
Hi,
I am very new to using the BDEdit software.
When I open a clpi file (say 00011.clpi) it has 2 video streams
and 5 audio streams( 2 are true HD lossless.

How can I edit this file to indicate that I have removed
the Lossless TruHD but kept only the DD 5.1 audio only.

I opened the file using BDEdit, and read the clpi file.
It does not let me change anything there.
Thanks

KiddColt
16th January 2009, 18:34
Hello,

I'm currently working on this. BDEdit is currently the only tool for this but I'm having 2 problems:
1) Mods must be done manually (on a per movie basis) until someone puts a "BDShrink/BDBlanker" type project (with source code) into SourceForge.
2) BD Authentication software can't be had so many BD-Rs are wasted (PowerDVD will play most modded BDs while settop boxes won't).

Good Luck to all, KC

KiddColt
16th January 2009, 18:36
My Bad!
My previous post was a reply to DVD Maniac's post:

Sorry for landing on this thread but i am trying to find a way of pre-processing BDMV structures prior to using jdobbs BD Rebuilder tool. I want to blank out unwanted m2ts files (such as trailers, fbi rubbish etc) in a way which leaves the integrity of the files intact and lets BD rebuilder do it stuff and freeing up more space for the movie itself. There are many tools to achieve this with DVD but not it seems for BD/ HD DVD.

I have played around with ED edit but cant see an obvious way of achieving this, can anyone offer some suggestions?

jagaskywalker
5th February 2009, 14:42
I am looking for something similar. I do not want to re-encode the whole movie but to keep it intact, together with the menu, chapter, and audio selection, removing all unwanted extras in order to fit it on a BD25.... (removing unwanted audio streams would also help)....

KiddColt, can you provide some more info on how you are approaching this issue ?


Sorry for landing on this thread but i am trying to find a way of pre-processing BDMV structures prior to using jdobbs BD Rebuilder tool. I want to blank out unwanted m2ts files (such as trailers, fbi rubbish etc) in a way which leaves the integrity of the files intact and lets BD rebuilder do it stuff and freeing up more space for the movie itself. There are many tools to achieve this with DVD but not it seems for BD/ HD DVD.

I have played around with ED edit but cant see an obvious way of achieving this, can anyone offer some suggestions?

stottle
15th February 2009, 16:51
There's a command in Master and Commander that isn't recognized by BDedit. I'm using 0.17b.

The command is 0x31000010, which is a Set, SetSystem, ??. The SetSystem CommandOptions go from "SetStream" (0x31000001) to "Still Off" (0x31000009). It looks like BDedit is out of date with some newer command options? Anyone know what this is? Whatever this command is, it takes a destination register (GPR1 in this case).

Thanks

joerg-daniel
19th February 2009, 00:54
is there a longer description of the movieobject command lines like move jump play etc?

I try to correct the bdmv structure to play the second m2ts from a splitted bluray.

deank
2nd March 2009, 20:00
Here is more information on PSR registers. (http://forum.doom9.org/showthread.php?t=145385)

rmeyers
7th March 2009, 21:40
BD-RB is an encoder/rebuilder. movie only or full disc. shrink to dvd-5, dvd-9, or bd-25.

nwg
13th March 2009, 13:58
I have been using this program to force subtitles for foriegn films using this -


1. Using BDEdit, open the newly muxed BD structure with subs.
2. In the "BDMV" tab, on the right side highlight the #1 command line, then press the "+" button to the right.
3. No highlight the new cmd line and set the following parameters below.

a. The first three dropdown boxes should be "Set", SetSystem", "SetStream"
b. Check the 2 check-boxes to the right
c. set both small drop-boxes to "IMM"
d. Set the top IMM field to "49154", set the bottom IMM field to 0 (zero)
e. Save, and close.

Last night I did Iron Man and now have two subtitles. Forced subs is subtitles 1 and the full subtitles is second. How do I get subtitles 1 to be forced? I did the same as above and it made subtitle 2 forced instead.

odin24
13th March 2009, 14:59
I have been using this program to force subtitles for foriegn films using this -



Last night I did Iron Man and now have two subtitles. Forced subs is subtitles 1 and the full subtitles is second. How do I get subtitles 1 to be forced? I did the same as above and it made subtitle 2 forced instead.

Unless you need the full subtitle stream I'd only mux in the forced subs. Not sure how if you need both.

nwg
13th March 2009, 15:52
Unless you need the full subtitle stream I'd only mux in the forced subs. Not sure how if you need both.

Because the forced subs have only the translations. If I don't, then I will need the full subs on all the time.

edit.

I ended up solving by running the files through clown_BD and getting to automatically detect subtitle 1 as forced for me. It still has subtitle 2 for when I want to use them.

deank
17th March 2009, 12:51
Probably it could have worked if you just used 49153 instead of 49154.

nwg
21st March 2009, 18:28
Probably it could have worked if you just used 49153 instead of 49154.

Thanks for that. It didn't work anyway using clown_bd. It still picked the biggest sub.

The forced subs is the first one.

deank
21st March 2009, 18:45
Did it work with the value I suggested?

nwg
21st March 2009, 19:38
Did it work with the value I suggested?

I haven't burned it yet. I need to watch what I have put on the BD-RE disc later tonight.

edit.

That worked great. Only the forced subs come up automatically.

Tongariro
21st May 2009, 19:26
Hello

I anybody has the MPLS file structure?

I see that the BDedit doesn't show part of the information (audio and subtitle). and i cant edit the rest of the information.

So the only way is to use hex editor, and to use it i need to know the MPLS file structure.

Ghitulescu
25th May 2009, 15:21
I think the mandatory folders are: PLAYLIST, CLIPINF, STREAM, AUXDATA, META, BDJO, JAR, BACKUP (with subfolders PLAYLIST, CLIPINF, BDJO, JAR).
Is that correct?

There are threads on this subject - some BD players require their presence (one or both) while others, Samsungs are notably here, require their absence (one or both).

deank
25th May 2009, 17:33
You're "replying" to the person who knew ALL about it 2 years ago and to a post older than HDDVD-Blu-ray war...

Ghitulescu
25th May 2009, 17:54
You're "replying" to the person who knew ALL about it 2 years ago and to a post older than HDDVD-Blu-ray war...


I think the mandatory folders are: PLAYLIST, CLIPINF, STREAM, AUXDATA, META, BDJO, JAR, BACKUP (with subfolders PLAYLIST, CLIPINF, BDJO, JAR).
Is that correct?


I missed the fact that's a retoric question.
The fact is that I really do not care about the standards once they are not correctly implemented. Can you force Samsung to respect a standard or to implement optional features, I mean as a private person? Or can you force somehow Panasonic to play VC-1 on DVDR? Or can one stop changing the BD standard because that's exactly what they are doing? I don't think so.

I think that is important to obtain BD25/BD9/BD5 that are both BD and player compliant. Or at least within certain small modifications.

DVD Maniac
29th October 2009, 11:05
Is there a guide available for this tool yet?

The key requirement for me is to change the First Play title. I just want to make the First Play title the main menu and skip all the annoying stuff. Ive tried to do this in the First Play options but nothing seems to work.

deank
29th October 2009, 12:38
In most cases it is not that easy to simply change the first playback to another (or to menu). There are some important initializations which need to be performed first.

What you can do is to examine 'first playback' title and find the calls to playlists (such as 'warnings', logos, etc...) and remove these lines.

DVD Maniac
29th October 2009, 14:17
In most cases it is not that easy to simply change the first playback to another (or to menu). There are some important initializations which need to be performed first.

What you can do is to examine 'first playback' title and find the calls to playlists (such as 'warnings', logos, etc...) and remove these lines.

mmmm. Easier said than done. I asume you mean going to the Playlist tab and selecting the Playlist number specified in the First Playback row? In this case its just one row so no calls to warnings or logos here.

To be honest, I don't have the knowledge of BD structure to achieve this with consistent results! This is like Deja vu with the old days of Ifo edit and DVD structures where (with time and learning) you could do a hack of the Frist Play PGC with some success. This only worked with very simple structures, as soon as you have language selection menu's or other branching loops you could basically forget it. :rolleyes:

The only satisfactory solution for this arrived with the likes of PGCedit and VOB Blanker which are fantastic tools and take care of the detailed changes required to keep the structure intact. Is the new BD structure too complex for these sorts of tools to be developed then? I'm surprised nothing has landed yet on the freeware world to do this - i'm hoping jdobbs is not far off with BD Rebuilder......

DVD Maniac
30th October 2009, 13:03
Before I go head first into mucking around with things maybe I can get some help here as basic information on the BD Folder and File structures does not appear to exist!

1. What is the Purpose of the BDJO Folder and the various files in it?
2. What's the distinction between a BD-J and HDMV Object?
3. How do the BD-J / Playlist / m2ts files link together and how do I find the linkages in the tool?

Thanks!

deank
30th October 2009, 13:17
1) BDJO folder holds objects for java applications stored in JAR folder, which are called from BD-J objects/titles

2) BD-J title can call java objects/apps stored in BDJO/JAR, HDMV titles cannot

3) The logic is:

Type of title BD-J can refer only to a JAR file in JAR folder, which in turn deals with the PLAYLIST files, which call/play the M2TS files (sadly you can't possibly know what a JAR program actually does, except that it may call some of the OIDs in movieobject.bdmv). Of course the java app can later call HDMV titles or other BD-J titles.

Type of title HDMV can call objects/OID from within the movieobject.bdmv and those objects can call/play other objects, play playlists or other HDMV/BD-J titles. HDMV titles are easier to examine because you can see most of the code and change it with BDEdit. There are a lot of navigational commands in some m2ts files (like menus), but there is no simple way to change them, unless you're good with a HEX editor and have some oldschool experience writing commands in pure hex format like assembler.

I doubt that there will be any tool to allow full editing of Blu-ray discs if they use JAVA.

***

Here is a very very simple HDMV-titles-only example of the playback sequence in a compilation authored with an older multiAVCHD build:

http://multiavchd.deanbg.com/bd01.jpg
Upon inserting the disc, player should play "First playback" title, which is set to be HDMV object (OID) 255. You can see it on the right side. It performs some initializations of various registers and then jumps to object 256.

http://multiavchd.deanbg.com/bd02.jpg
Object 256 does some more initializations (in this case only setting audio and subtitles) and then jumps to Title 0. Title 0 is the "Top menu title". In this case Title 0 = Top Menu Title = Object 259.

http://multiavchd.deanbg.com/bd03.jpg
Object 259 (top menu) performs some checks (like should it play the intro screen, is it currently in pause/resume mode, or does it need to play the MENU itself) and calls the respective title (if in resume/pause - line 0007) or menu (line 0011). Let's say it was to play the last title in the compilation (set on the left side as 008 HDMV, OID/File 8)...

http://multiavchd.deanbg.com/bd04.jpg
It does some stuff, sets the starting chapter mark to play the video from and then calls the playlist.

Now... things look different with JAVA:

http://multiavchd.deanbg.com/bd05.jpg
First playback will make your player execute java object file BDJO\00000.bdjo (which calls java app from JAR folder) and there is no way of knowing what are the instructions/code inside that JAR application, which means that there is no way to change anything.

Of course there is a simple workaround. You can find the playlist for the video you want to skip and change its OUT_TIME (for example set it to be equal to the IN_TIME). Doing this will make the java app to play the intro video (fbi warning or whatever...), but since you set IN/OUT to be equal it will simply skip it. :)

I posted some notes about IN/OUT times here. (http://forum.doom9.org/showthread.php?p=1327487#post1327487)

Dean

wiggle
2nd November 2009, 21:27
Deank thanks a lot of this well elaborated brief introduction to bluray structure. I was wondering about one step though.
Title 0 is the "Top menu title". In this case Title 0 = Top Menu Title = Object 259.
I see the script calling for Title 0, but you can you tell this is the top menu title?

deank
2nd November 2009, 21:45
All titles are numbered 1 to 254.

First playback is an exception and Top menu (i.e. user call/top menu button on your remote) invokes Title #0.

I'm not sure what your question is about, but there is only one TOP MENU title and it is set with an object ID (in HDMV structures - BD-J discs are different).

You can tell a title is a MENU script/program/OID if it is referred as such by "Top menu" in BDedit. Any OID (object) can be a "top menu". It depends on the programmer of the structure.

Dean

wiggle
3rd November 2009, 01:06
I'm sorry; I mean how can you tell title # 0 is the top menu?

deank
3rd November 2009, 16:16
I don't get it...

Title#0 IS/points to the OBJECT_ID which executes the TOP MENU playlist. You "don't tell", it is just the way it is.

Usually title#0 calls menu playlist, which calls menu .m2ts file, which in turn takes navigation control, because it contains commands just like those you see in BDEdit.

Moviewatcher666
14th November 2009, 00:41
Here is the issues:

http://forum.doom9.org/showthread.php?p=1341685#post1341685
http://forum.doom9.org/showthread.php?p=1343643#post1343643

This may be a long shot and I may be in the wrong place and please correct me if I am.

I have been trying to use BDedit to see if there is a difference to the BD structure of the original rip of Groundhog Day and the RB-Rebuilder rebuild of Groundhog Day. I was hoping that I could see if there is a difference and therefore fix the rebuild so that the movie will play in my Panasonic player. I am of the opinion that it is possible to fix this issue with the right tools.

I am having trouble understanding the structure of this particular Blu-ray (probably not the easiest one to start with!) to see if RB-RD is messing with the files.

Is there anything I should be looking at in particular? I would be happy to provide any files for help with the analysis and trying to find a solution.

My *** on this approach but I thought I would give it a shot.

Any thoughts or comments are greatly appreciated. Thanks!

Moviewatcher666

deank
14th November 2009, 10:26
BD-Rebuilder doesn't touch index.bdmv and MovieObject.bdmv (in Full backup mode) and BDedit won't help you investigate what causes the trouble with your Panasonic BD35 player.

Moviewatcher666
14th November 2009, 16:07
Thanks for the quick reply! Much appreciated.

sreemv
9th January 2010, 10:12
I have a Bluray that is backedup to HD and when played from it, the player is stuck looping at the menu-title without ever presenting the actual menu - can BdEdit help? I am able to playback several other backups without this issue.

Pelican9
1st February 2010, 03:03
Hi all!

I've played a little with BDedit and maybe (MAYBE!) I can work more on it in the next few weeks.
I'd like to figure out something about menu handling (show/edit/generate).

A new snapshot is available now.

Changes for v0.18b

- New Option settings
- Save stream with a selected PID in Clipinfo (elementary stream, PES, standard SUP)
- Follow GoTo, Jump Title, Play PL, etc. in Navigation commands (Double click)
- Load/Save Extension Data to/from index.bdmv
- Check (m2ts) files in STREAM folder
- Warn if mandatory folder is missing
- Progress bar, elapsed and remaining time
- Cancel button (Stops only at PES packet boundary)
- 'About' tabsheet with program history

Download from pel.hu

laserfan
1st February 2010, 14:38
I've played a little with BDeditThanks Pelican9 for working on this.

I have only used BDedit to fix tsMuxeR's output which always loops-back to the beginning when a movie is over, but I've used this for EVERY ONE of my re-muxed BDs so it is a godsend. Glad you're back here so I finally get to say

:thanks:

P.S. For anyone who has trouble with it, when I tried the new 018b it failed to run initially. I had to delete the registry entry from HKCU for the older version first, then it ran fine.

deank
1st February 2010, 15:49
Hi all!

I've played a little with BDedit...

Thank you Pelican for your great work. Without BDedit it would've been impossible to create multiAVCHD!

:thanks::thanks::thanks:
Dean

Pelican9
1st February 2010, 18:46
:thanks:
Only a few people using BDedit, because it's too complicated and almost nobody knows what that lot of little stuff means ... :)
If you use BDedit please post here what do you do with it.

I'm thinking about the following functions:

- Remove FBI warning and other annoying stuff automatically (mean you delete the xxxx.m2ts and the sw do the rest)

- Edit the existing menu structure

- Create a simple menu if not exists

- Remove the complete menu and other stuff, just play the main movie

What is your idea about that?

What would be a really cool feature of BDedit? :)

Or it is a dead end and nobody wants to hack the BD structure?

laserfan
1st February 2010, 20:02
I have only used it to fix what (for me) is an annoying feature of tsMuxeR, which is to jump-back to the start of the movie after the movie has ended. Then just today I was able to use it to SetStream and force a subtitle to ON.

So it's been invaluable to me but I'm sure others will have "cool" ideas for you re: enhancements. :cool:

deank
1st February 2010, 21:40
I'm using it to program from scratch the movieobject objects and it is of great help. Although I know most of the OP codes :) it is easier to do it with BDedit (like a macro-assembler language).

A cool thing to have is to be able to edit (add/remove) entries in the STN. I needed it so badly that I finally wrote a function in multiAVCHD to do it for my needs.

And I don't find it complicated - it is just EXACTLY what I needed and I'm using it everyday.

Dean