en-USfr-FR
Pinnacle Studio, AVID Studio, HFX, proDAD, Boris FX Tutorials, Tips & Tricks
25 Latest Tutorials

DV FX RSS Flux Subscribe to Articles update by email - All Tutorials - Search - Tutorials by Category / Author / Month

How to Implement a Play All Script using IFOEdit

How to Implement a Play All Script using IFOEdit By Déclic Vidéo FX - Last updated on Sunday, August 29, 2010
17223 Views :: 4 Comments :: Article Rating (Total Votes: 22)
Category: Studio 1-15 Tutorials / Menus  -  Previous tutorials
Published on Wednesday, December 31, 2008
Created on Sunday, November 23, 2008 8:26 AM
 

The original author of this tutorial is Dave Tong. Thanks to him.

You have a series of short videos. You want to be able to view them individually or in sequence. However Studio just gives you the option to continue to the next chapter or return to a menu, not both.

It's possible to do this by authoring the disk image under Studio and then editing the IFO file prior to burning the disc. A DVD is controlled by a simple programming language. There are PRE commands, which are executed before the video, and POST commands which are executed after. The idea is to introduce some additional commands to make the disc do what we want. We will set a value in a register and then check that value later; if it is set we will advance to the next chapter; if not we return to the menu. You will need to download IFOEdit. This is a powerful tool that will allow you to reprogram the IFO file of any DVD. It does NOT contain any code to remove CSS encryption, so it is a perfectly legitimate tool.

Warning : Using IFOEdit is not always easy to use so it is easy to make mistakes. Approach this tutorial with calm and patience, if you have any doubts about any of the steps you have taken, it is best to start over from the beginnning.

Step1 : Preparation of the clip

Before making these changes to your project, I suggest you follow this example to familiarize yourself with IFOEdit.

For Studio 9, 10, 11, 12 and 14

Begin by creating a sample DVD with a very short title (about 4 seconds) followed by five short AVIs (about 5 or 7 seconds each). Insert a menu template at the start and allow it to create the chapter links. After each chapter - including the title - add an instruction to return to the menu.

The first title (C1-M1) corresponds to chapter 1 and it is the button which lets you play the entire DVD. The other buttons let you play the individual DVD chapters. Chapters have to be atleast 5 to 7 seconds long otherwise there is a risk of losing the chapter.

Time line

Step2 : Creation of the DVD

Create your disc image (select create disc image but don't burn under Burn Options.)


create DVD

Step3 Opening IFOEdit

Start IFOEdit

  1. Press the Open button
  2. Locate the VIDEO_TS folder and open
  3. Locate the VTS_01_0.IFO file and open

Fichier VIDEO_TS

IFOedit will probably complain that filenames are not in upper case; don't worry about that. The tool will deconstruct the IFO file and display the contents in a readable format.(These messages appear only for a DVD created with Studio 9)


message d'erreur1 message d'erreur 2

Step4 : Programming of chapter 3

fichier VTS_PGCITI

  • Select VTS_PCITI - Video Title Set Program Chain Information Table. A + will appear - click it to expand the table.
  • Select VTS_PGC_1.
  • This will be the instruction to go back to the main menu: CallSS VTSM.
  • It is the instruction which makes the return to the main menu

For a DVD created with Studio 9 : the CallSS VTSM command is :

fichier VTS_PGC_1 commande CallSS VTSM S9

For a DVD created with Studio10, 11, 12 and 14 : the CallSS VTSM command is :

fichier VTS_PGC_1 commande CallSS VTSM S10/11

It is now necessary to change the command which allows you to change register 8 to the value of 1. I chose 8 because it wasn't being used anywhere else in the DVD - it's up to you to verify if it's safe to use in yours. Just change the 08 to a different value in this and all subsequent edit commands

  1. For a DVD created with S9 : Select the 1. Post Command line.
  1. For a DVD created with S10, 11, 12 : Select the 2.Post Command line
  1. Press the right mouse button to bring up a menu.
  1. Select Insert Command to introduce a NOP instruction.

Insert command

NOP and HexEdit Module

  1. Then double-click on the NOP to bring up the hex editor.
  2. Change the value from 00 00 00 00 00 00 00 00 to 71 00 00 08 00 01 00 00

Now, it will be necessary to jump to the following chapter

Select CallSS VTSM again, bring up the menu, and select Edit Command :

Edit Command

 

Select Jump_VTS_TT* and set the Title Number to 2. Press OK :

Commande Jump_VTS_TT

*Note: Please refer to the contextual list at the top to find the Jump_VTS_TT command

That is the introductory chapter updated (chapter 1 here). We put the 1 in register 8 and we jump to the chapter (in this case to chapter 2). Afterward if we detect that register 8 has a 1 we shall skip the command, return to the menu, and we shall read the entire DVD, on the other hand if the register 8=0 we shall execute the following command and we shall return to the menu.

résultat programmation VTS_PGC_1 S9

Step5 : Programming of chapters

Now we must update the next few chapters. For each chapter except the last add a new first Post Command

For a DVD create with Studio 9 :

VTS_PGC_2  Insert Command S9

  1. Select 1.Post Command
  2. Click right then Insert Command

VTS_PGC_2 commande NOP  and HexEdit module S9

  1. Double-click on command NOP put the value
  2. Set the value to 00 D1 00 08 00 00 00 03 which translates to "If register 8 is not zero, skip to instruction 3".

For a DVD created with Studio 10, 11, 12 and 14:

VTS_PGC_2 Insert Command S10/11

  1. Select 2.Post Command
  2. Click right then Insert Command

VTS_PGC_2 command NOP and HexEdit Module S10/11

  1. Double-click on command NOP
  2. Set the value to 00 D1 00 08 00 00 00 04 which translates to "if register 8 is not zero, skip to instruction 4"

To add a 3rd jump command for a DVD created with Studio 9 or created with Studio 10/11/12 and 14

  1. Select the command line CallSS VTSM, and right click and ADD PostCommand
  2. Select line NOP and right click and select Edit command
  3. To choose Jump_VTS_TT and the number 3 of the following chapter

For the remaining chapters, to start again of the point 1 to the point 7 of the Step 5 according to your version of Studio but by changing in the command Jump_VTS_TT the number of corresponding chapter. Example for VTS_PGC_3, the number will be "4" and so on.

For a DVD create with Studio 9 : If you followed the procedure, here is what you would have gotten for chapters 3, 4 and 5

Resultat VTS_PGC_3 S9

Résultat VTS_PGC_4 S9

Résultat VTS_PGC_5 S9

For a DVD create with Studio 10, 11, 12 and 14: If you followed the procedure, here is what you would have gotten for chapters 3, 4 and 5

Résultat VTS_PGC_3 S10/11

Résultat VTS_PGC_4 S10/11

VTS_PGC_5 S10/11

Finally for the last chapter VTS_PGC_6 we need to set the value of register 8 to zero before jumping to the menu.

To enter this new value: 71 00 00 08 00 00 00 00, proceed in the same way as points 1 to 5 of Step 4


You get this for a DVD created with Studio 9 :

Résultat VTS_PGC_6 S9

You get this for a DVD created with Studio 10, 11, 12 and 14:

Résultat VTS_PGC_6 S10/11

That's all there is to it. Now try viewing your disc with a video player (PowerDVD for example). Ensure that the navigation works as expected. If all is well you can now burn your DVD using Studio or your preferred DVD writing package.


{Thanks to Loosecannon for the fine tuning}

Share/Save this article


Comments
Keledole By # Keledole @ Friday, January 30, 2009 7:22 AM
Great tutorial! Studied it for hours and practiced on a mock project before I had the guts to try it on my project. It works pretty good but I had a question?

If I play an individual chapter upon starting the DVD it returns to the main menu after the chapter is completed as it is supposed to do! If I select the "play all" button it plays thru to the end as it is supposed to!

Here's the catch. If I stop the movie while in the "play all" mode, go to the main menu and select a specific chapter, it will play thru to the next chapters with no return to the main menu. Is this how it is designed to function or did I do something wrong in the editing of the PGC files? I have checked and everything seems to be correct?

Etienne KINNAER By # Etienne KINNAER @ Friday, January 30, 2009 9:37 AM
Very Usefull

jcgrini By # jcgrini @ Friday, January 30, 2009 12:44 PM
bonjour
si je résume, si on choisi la lecture totale du DVD. la lecture démarre au 1er chapitre. si on decide d'appuyer sur stop pendant la lecture puis que l'on choisi la lecture d'un chapitre, à la fin de ce chapitre il ne retourne pas au menu principal. il continu.

exact. c'est normal car on active la fonction "lecture totale" par le menu et on ne peut la désactiver que par la lecture du dernier chapitre.

aussi si on souhaite passer du mode "lecture totale" à "lecture par chapitre" , il faut sauter de chapitre en chapitre et démarrer la lecture du dernier chapitre.

il n'y a pas d'autre moyen de désactiver la variable 'lecture totale".

salutation.

Keledole By # Keledole @ Friday, January 30, 2009 1:04 PM
Merci. Je comprends et apprécie la réponse rapide.

 
WARNING: this comment section only relates to the current article. All technical and/or general questions regarding software detailled in our article *MUST* be asked through various forums; we won't even answer to comments which do not comply to this basic rule, and we might even moderate it. Thanks in advance for your comprehension.

Comments support tags : [quote]Text[/quote], [b]Text[/b], [i]Text[/i], [u]Text[/u], [url]www.sample.com[/url] or [url=www.sample.com]Link name[/url].
You can use these tags to highlight your text or insert a link in your comment.

Name or surname (required) - publicly visible on the website

Email (required)

Website

CAPTCHA image
Enter the code shown above:

Pinnacle website access

Site officiel Pinnacle Studio