View Full Version : [DVDLAB PRO] Problems restart movies with the summary command.
kirous
25th August 2015, 23:46
Hello, I have a little problem in restarting after playing movies or completed. Good to make the matter more explanatory, it is due in a project that previously did two movies (MOVIE 1 and movie2) apart with submenus. What happens is that for a summary is made, it is done with a command log, or syntax, in which DUMMY syntax would be:
VMCOMMAND:
PRE-COMMANDS:
If (Set gprm(5) == 1) then {RSM}
(JumpVTS_TT) Jump to TTN 1 in this VTS
Now to insert commands into movies at the end of the line put the value
MOVIE 1 y MOVIE2
PRE-COMMANDS:
Set gprm(5) == 1
These data were me perfectly perform the operation, to summarize one of the 2 movies when they are playing.
Now everything here is fine, now the problem is when once play finished and when you return to the main menu and restart the first film, it automatically goes to the second film, to start the first film, you have to stop by full play and replay, that from there, usually the first film is executed.
Well, I have seen commands DVDlab PRO, there are 2 commands are: Break and Exit, but do not know how to perform or rather how to employ the VM COMMAND, or if there will be a command to end playback and return to start normally and not jump as a summary ?.
My idea is not to use a command list of film (or playlist), because there is something basic that can be done. Well, that's all I have on that little problem. I await your prompt response.
One more thing, when I add more JumpVTS_TT, mark me this:
http://i61.tinypic.com/xarixg.jpg
He told me about this issue, but there is a solution that ?..... Sorry my bad English XD:scared:
sekininsha
26th August 2015, 05:25
My idea is not to use a command list of film (or playlist), because there is something basic that can be done. Well, that's all I have on that little problem. I await your prompt response.
If you don't want the DVD-lab commands to be executed, simply put a last line Break command in the Custom commands.
r0lZ
26th August 2015, 07:45
It is difficult to understand you and to figure out what you want without knowing the DVD structure.
If I understand correctly, if you launch the first title from the menu, when it has finished playing, the second title is played automatically. And it's probably the value in GPRM 5 that controls the title to be played. But I'm not sure, because that command cannot exist: If (Set gprm(5) == 1) then {RSM}
You can not use a Set command within a condition. Therefore, I suppose that the command is in fact two different commands: Set gprm(5) = 1 followed by: If (gprm(5) == 1) then {RSM}
Anyway, the RSM command does just one thing: it jumps back to the title that has been interrupted by the user when he has pressed a menu button on the remote or when it has finished playing and the menu has been called with a CallSS command.
Therefore, if you replace the RSM with another command, the behaviour of the menu will not be correct any more.
Unfortunately, without knowing how the authoring is made, I can't help much more. Please post ALL commands of the menu PGC that contains the command that jump back to the second title when it should jump to the first title. If I know its content, maybe I'll be able to help.
You should never use the Exit command. It "quits" the DVD, exactly as when you open the tray of the player. It's certainly not what you want to do.
The break command must be used only in the pre-commands area of a PGC. It skips the forthcoming commands and forces the playback of the video content of the current PGC immediately. In other words, it breaks the pre-commands and continue exactly as if the last pre-command has been reached. (In a dummy PGC, it jumps immediately to the post-commands.)
Break is always used with a condition, as otherwise its effect is strictly identical than deleting the last pre-commands of the PGC. Again, I don't think it's what you want to do.
As sekininsha suggests, putting a Break command in front of the commands normally inserted by DVDLab pro has the effect of skipping them all. That's a radical way to change how the DVD reacts, but you will have to fix the navigation yourself. That's probably not easy, and I don't think it's what you want.
I have already explained what are dead (purple) commands. You should know that it is useless to put a command after an unconditional jump, link or call (and, BTW, also after a break or exit), because it cannot be executed. Please try to learn from your errors. I can't explain the same things over and over.
kirous
27th August 2015, 07:10
Ok, I mistook me that detail, and I forget to fix (just that I realize that), then it means I'll put that in my DUMMY "RESUME" - PRE VM COMMANDS COMMAND in the beginning:
Set gprm(5) = (mov) 1
If (gprm(5) == 1) then {RSM}
That is correct? ... Or am I wrong in something?
Now, as you say you want to see how my project is structured codes only I give you, the part where is the PLAY button, rather than being associated with the button, the images here:
MAIN MENU:
http://i57.tinypic.com/2w6s9cx.jpg
DUMMY – Resume:
http://i60.tinypic.com/n6b595.jpg
Title 1 (or Movie 1)
http://i62.tinypic.com/9068u9.jpg
Title 2 (or Movie 2)
http://i60.tinypic.com/301zds0.jpg
The friend @sekininsha told me to put the BREAK command, but I did not specify where, if the DUMMY or TITLE.
In summary, only, I add a dummy PGC and put the "break" command, that's right ?, and if so, where I put it, after last TITLE rather in Title 2 ?.
And if not correctly, as should be done ?.
I hope that my questions are not a bit uncomfortable, but I'm just learning to be knowledgeable about DVDlab PRO commands, but if I'm identifying and fixing errors in my project.
I await your prompt response. Sorry my bad english XD!!
r0lZ
27th August 2015, 08:56
Forget the break. It's not what you need here.
If I understand the screenshots correctly, when Title 1 is played up to its end, the navigation continues automatically to Title 3. In these two titles (and perhaps also in Title 2, I don't know), GPRM 5 is set to 1. It's important to understand what's happening later.
In Title 3, the last Post-command (the CallSS) returns to the menu automatically, and sets the resume point to cell 1 of the current title. Again, it's important. Note that there is no Set gprm(5) = 0 command here.
When the user presses the Menu button to return to the Main menu during the playback of Title 1 or 3, and then it presses the Play button, the nav jumps to the dummy PGC 6. In that PGC, the command "if ( gprm(5) == 1 then ) {RSM}" checks if the value in gprm(5) is 1. It's the case, since gprm(5) has been set to 1 in the two titles, and never modified later. Therefore, the RSM command is executed. As explained in my previous post, RSM resumes to the last played Title, either to the point where the user has pressed the Menu button, or to the cell specified by the CallSS command that has been executed to leave the movie PGC.
Therefore, when the user has interrupted the playback of title 1 or 3 with the remote and he presses the Play button, the playback if the title is simply resumed.
When he doesn't use the remote and Title 3 is played up to its end, it's the CallSS post-command that hsas been executed, and the playback resumes to cell 1 of Title 3. I suppose that it's this behaviour that you want to change.
The solution is very simple. You don't want to resume to Title 3 when the title has finished playing. Therefore, you don't want the RSM command to be executed when the Play button is pressed in the menu, Therefore, the value of gprm(5) must be different than 1.
Setting gprm(5) to 1 at the beginning of the title is a good idea if you want to force the Play button to resume where the movie was interrupted with the remote. But you must reset gprm 5 to 0 when it has finished playing, so that the next time you press Play, it doesn't resume to Titte 3, and execute the JumpSS to Title 1 instead.
So, insert "Set gprm(5) = (mov) 0" as the first POST-command of Title 3, and the condition of the RSM command will be false when it is executed, therefore the RSM will be ignored, and the next command will be executed. The next command jumps to Title 1. It's what you want. The problem is fixed.
As you should know, the last pre-command of the dummy is dead and useless. It is only confusing and you should remove it. Note that the post-command in the dummy is dead too, although PgcEdit has not highlighted it in purple. There is no way to execute it, since the pre-commands execute either the RSM or the JumpSS command, and they leave the PGC immediately. The post commands are therefore never executed. You should also remove that useless command.
Note that with the current navigation commands (after having fixed the RSM problem as described above), the Play button continues to resume to the last played title when the user presses the menu button during the playback of title 1 or 3. It's only when the user does nothing that the playback restarts Title 1. If it's not what you want, you may want to remove completely the conditional RSM command in the dummy. (In that case, the Set gprm(5) commands are useless and can normally be removed too, but they do not hurt.) Note that if you do that, you can still resume from the menu, When the menu is displayed, instead of activating a button, you can simply press the Menu button again. Normally (and unless some PUOs prohibit to result to the title), pressing Menu when you are already in a menu resumes always to the last played title. You don't need to add explicit RSM commands to do that. (However, some bad DVD player do not implement that rule correctly, so the resume by pressing Menu again may not work in all cases.)
Ghitulescu
27th August 2015, 09:28
Ok, I mistook me that detail, and I forget to fix (just that I realize that), then it means I'll put that in my DUMMY "RESUME" - PRE VM COMMANDS COMMAND in the beginning:
Set gprm(5) = (mov) 1
If (gprm(5) == 1) then {RSM}
That is correct? ... Or am I wrong in something?
I cannot see the pictures (probably the pages do contain offending things - you could embed them as images, not as links)
But depending on your intentions, you do this right or wrong.
The result of your code lines is equivalent to a simple RSM, because that condition will always be true. If this is your intention, then it's correct. If not, then it is incorrect.
Nevertheless, the way DVDLabPro works is rather visual, and it makes the "coding" for you according to the project type and links you graphically do.
Although it allows you to combine coding with graph linking, you should use one or the other. For coding I would use the piece of software r0lZ has written, PGCEdit, after the visual linking is finished in DLP, if of course I would need some fine tuning or special tasks.
r0lZ
27th August 2015, 09:46
Ghitulescu, you're right, of course, but the Set and the RSM commands are in different PGCs. The condition is always true anyway, because the GPRM is never reset to 0 after having been set to 1. That's the bug, as I have explained in my previous post.
I don't know why you cannot see the pictures. They are OK for me, and there is no offending content. Just PgcEdit screenshots. Anyway, instead of screenshots, I would prefer the dumps of the commands (easily available from the Info menu of PgcEdit), but Kirous is really a novice in PgcEdit, and I don't want to explain other things.
I agree that the GUI of DVD-Lab Pro should be used for what it can do, and then PgcEdit to fix minor details only. But my domain of expertise is PgcEdit, and I don't know well DVD-Lab pro. Anyway, it seems that Kirous wants things that DVD-Lab pro cannot do (or he cannot use it correctly), and therefore he needs to modify the commands. That's what I am trying to explain. I don't know if it is possible to do what he wants with DVD-Lab only.
Ghitulescu
27th August 2015, 10:49
Because the links go to web pages that my "advisor" in security consider them dangerous in one way or the other.
So I "embedded" them for future use.
http://i57.tinypic.com/2w6s9cx.jpg
http://i60.tinypic.com/n6b595.jpg
http://i62.tinypic.com/9068u9.jpg
http://i60.tinypic.com/301zds0.jpg
Now, I don't know what the intentions of the OP are (I frankly did not understand what he wants), but this behaviour is natural - a DVD sets a marker that the first movie has been played so that the flow goes to the next, unviewed movie. Once the first movie has been completely played, the RSM command has no (real) function because the resume position it's at the end.
Eg, that marker is GPRM 11, it hold 24 as long as the first movie plays and 28 as long as the second one plays.
I believe GPRM 5 is used in the menus (where it should be a "Back to Film" or "Resume Play" button).
r0lZ
27th August 2015, 11:04
It's exactly that. The Play button of the menu leads to the dummy PGC 6 (second screenshot), where the conditional RSM is made BEFORE the jump to Title 1. Since GPRM 5 was set in the pre-commands of Title 1 and 3 and was never reset to 0, RSM was always executed as soon as a title have been called, and the navigation resumed to Title 3 anyway. There was no way to play Title 1 a second time. Now, with the fix I have suggested above, GPRM 5 is reset by the post commands of Title 2, and the RSM is executed only when the post-commands have not been executed, that is when the playback has been interrupted by the user calling the menu with the remote.
I have not analysed the rest of the navigation, but I suppose that your analysis of the usage of GPRM 11 is correct. But as far as I know, that part works fine.
kirous
28th August 2015, 01:33
Thank you, friend, explaining me help much. Now if you are already fixed the problem. As I say I miss you explain more details (pardon to all), but if the friend @r0IZ gave the spot. Since the other film (Title 2) would be the trailer, and I know that the original DVD, trailers or presentation of a logo of a company, is in another project or second VTS telling you, I will practice that topic later.
Well, for friendGhitulescu, thanks for helping. As I say, those images that you show openly, are after compiling the project in DVDlab PRO and opening the PgcEdit, had to show the friend @r0IZ, captures only part of the function of "Button PLAY" and other operations that are associated with it and not "modify". To give me a solution to that problem.
Now on respect of the publications of the images on the web, tell me. What other page other than the web "i57.tinypic.com" are safe ?, because the page you recommended the friend @r0IZ rarely not enter the page or simply fail for a certain time, either server problem , etc. as I say Friend @Ghitulescu, what other pages you recommend me to not have that problem ?.
And finally, for friend @sekininsha, thanks for helping it in this post, as the previous post.
Once again, thank you guys for help. Hopefully any problems you can help me. Sorry my bad English XD!!
kirous
28th August 2015, 01:34
Thank you, friend, explaining me help much. Now if you are already fixed the problem. As I say I miss you explain more details (pardon to all), but if the friend @r0IZ gave the spot. Since the other film (Title 2) would be the trailer, and I know that the original DVD, trailers or presentation of a logo of a company, is in another project or second VTS telling you, I will practice that topic later.
Well, for friendGhitulescu, thanks for helping. As I say, those images that you show openly, are after compiling the project in DVDlab PRO and opening the PgcEdit, had to show the friend @r0IZ, captures only part of the function of "Button PLAY" and other operations that are associated with it and not "modify". To give me a solution to that problem.
Now on respect of the publications of the images on the web, tell me. What other page other than the web "i57.tinypic.com" are safe ?, because the page you recommended the friend @r0IZ rarely not enter the page or simply fail for a certain time, either server problem , etc. as I say Friend @Ghitulescu, what other pages you recommend me to not have that problem ?.
And finally, for friend @sekininsha, thanks for helping it in this post, as the previous post.
Once again, thank you guys for help. Hopefully any problems you can help me.
r0lZ
28th August 2015, 05:59
For sharing images, I use postimage.org (http://postimage.org/), and for large files, I like infinit.io (https://infinit.io/) (but the latter one requires to install a little program on your PC).
Thanks for the thanks, and good luck!
Ghitulescu
28th August 2015, 09:30
The point was not to put links but to embed them as images. Because this way only the images are loaded and not the webpage (which may have dubious links hidden, eg for advertising, spying, x x x related and so on).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.