Can DVDAfterEdit change GPRM values while playing a track?

Hi,

I am currently working on a DVD project for a cartoon series in which occasionaly the viewer is presented with three choices on how to deal with a certain situation. The viewer can make a choice by pressing a button. I am using overlays to provide feedback wether or not the choice was right. At the end I want to let the viewer know how many of the choices were correct. I could keep track of this by using a script to change a GPRM value, but this takes me out of the track.

What I am wondering is the following: Is it a limitation of DVDSP that I cannot change the value of a GPRM without jumping from a track, or is this a limitation of the DVD spec? If it is a limitation of DVDSP, is this something that could be solved with DVDAfterEdit?

I hope my question is clear and that someone is able to answer me this. I have not been able to find out another way.

Thanks,
David

Hi David, As Larry says, the

Hi David,

As Larry says, the problem you have is a limitation of DVDSP. Briefly, to overcome it with DVDAfterEdit, you would:

  • Author as normal in DVDSP, but not add any commands to the "buttons over video" that you add
  • Create scripts to respond the the GPRM values you intend to set using DVDAE
  • Open in DVDAE and add the button commands to set the GPRMs
  • The scripts created in DVDSP based on the values you set via commands added in DVDAE will now work

There are a few factors which might complicate things:

  • A button can only be activated once per cell (every time you create a button marker in DVDSP you create a cell to contain it). For the application you've described I don't think this will be a problem
  • You can only have one command per button. You can have certain limited types of more complicated composite commands, allowing you to set a GPRM, button, and optionally link to somewhere else, but it sounds as if all you need is something like Set GPRM 2 = 3, for example ?

As Larry says you can experiment with the demo program - if you follow the Guided Tour you will find that DVDSP tracks are contained in a VTS and that button commands are contained in the navpacks of the video stream within that VTS. If you change the button commands of one navpack to what you want, you can then copy those commands and paste them to all the navpacks in a cell by selecting the cell and choosing "Edit > Paste Deeply Into".

The last thing to mention is that what DVDSP calls GPRM 0 - 7 are actually the registers r8 to r15. So, GPRM 0 is r8, GPRM 1 is r9, and so on. So if you want to display info in DVDSP based on what it calls GPRM 1, you should use the command Set GPRM r9 = 0 in DVDAE, for example.

There is a more detailed discussion of the ideas I've outlined here in my article Sharing GPRM registers between DVDAfterEdit and your authoring application - it was written back in the days of DVDSP v2, but is equally appicable to the new version.

I hope all that makes sense and is useful, please ask if you need any further info or help,

Cheers,

Ian

DVDAfterEdit gives complete spec control

Hi David,

Yes, your problem is a limitation of DVDSP. That is because it uses an abstraction layer and places all scripts where you don't want them, causing the player to seek back and forth between different areas of the disc.

There is quite a bit of information in our articles and tutorials on the site about this and related topics. You can start to explore some of these with the free demo program, and probably Ian Shepherd will chime in with more pertinent advice. (I am trying to help finish off our newer products, and am a bit distracted).

Regards,

Larry

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h1> <h2> <h3> <h4> <center>
  • You may quote other posts using [quote] tags.
  • You may link to images on this site using a special syntax
  • Web page addresses and e-mail addresses turn into links automatically.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.