Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
#222 | Link | |
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
I have planned to revamp totally this part of the interface. IMHO, it will be better to have two completely different GUIs: one for the PGC header, streams lists and color lookup table. The other one with the Cell table. With this new interface, you will be able to multi-select any number of cells, and process them as a whole, to add, remove or move up/down the program and chapter entries, or to remap or blank the cells. However, I will have a look at the code. If your suggestion is easy to program, I will implement it. Or I may add an external function, working at the PGC level, to blank (or remap) ALL cells of the PGC in one operation.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) |
|
|
|
|
|
|
#223 | Link | ||
|
Registered User
Join Date: May 2004
Posts: 104
|
Commands or macro for VTS-chain needed - Call for help:
Given three VTST from DVD-lab Pro with 'File > Attach External VTS' attached to a dummy VTS1 (blank VOB): VTS2 with 40 chapters VTS3 with 33 chapters VTS4 with 41 chapters Wanted to step forward and backward from chapter to chapter with the 'next chapter' and with the 'previous chapter' button of the remote control as if the logical chain of the concatination of all chapters of the three VTS belonged to a virtual single VTS. An innocent wish but complicated to express in english and impossible for me to accomplish. Forward Chain: Using the 'next chapter button' jump from the current chapter to the next chapter until the last chapter of the current VTS is reached and then jump to the first chapter of the next VTS... Quote:
Using the 'previous chapter button' jump from the current chapter to the previous chapter until the first chapter of the current VTS is reached and then jump to the last chapter of the previous VTS... Quote:
Last edited by Cela; 23rd October 2004 at 17:08. |
||
|
|
|
|
|
#224 | Link | |
|
PGC Navigator in Training
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
|
@Cela
Quote:
@r0lZ A DVD can have more than one PGC holding the same title (Non_sequential_PGC Titles). In PgcEdit, you only have one VTST defined while another with the same title, showing nothing (undefined). It is possible to get the PGC's title number from VTs_PGCITI.
__________________
2COOL |
|
|
|
|
|
|
#225 | Link | |
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
@2COOL
Quote:
Note that you can find the other PGCs belonging to the same title by looking at the TTN number: all PGCs with the same TTN number are different parts of the same non-sequential title. BTW, I can't imagine a good reason to spread a title over several PGCs. Do you?
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) |
|
|
|
|
|
|
#226 | Link | |
|
Registered User
Join Date: May 2004
Posts: 104
|
Quote:
But as you say: "Without vision, we are blind to opportunity." Can we find a workaround? DVBlab's 'bridge element' is a first approximation to a solution. Here you jump from 'first chapter of current VTS' to 'FIRST chapter of previous VTS'! Which is not yet the natural, logical sequence in the film. So, if its possible to jump to the 'FIRST chapter of previous VTS', isn't it possible to put there a precommand that tells to jump on to the LAST chapter. (The number of the LAST chapter could be edited manually with PgcEdit). Probably a free GPRM is needed which could trigger the jump to the LAST chapter. It should be ON when the pending user action is a 'previous chapter button' click. Unfortunately, I am a simple user and my knowledge is too limited to activly seek a solution. Now a reason for such an example. Why do I bother you with this example? I simply want to be able to browse through a film in the natural, logical order - even when the film has to be segmented. Imagine there is a film which would need 114 chapters (major scene changes), too many for a single VTS. Since it consists of three major parts, I would like to segment it into three segments (if that is not possible, I will have to be content with two segments): segment 1: let original chapters 001 - 040 become VTS2 with ch. 1-40 (call it A1 - A40) segment 2: let original chapters 041 - 073 become VTS3 with ch. B1 - B33 segment 3: let original chapters 074 - 114 become VTS4 with ch. C1 - C41 a schematic graphic could be like this: !01____....______40_41____...______73_74____..._____114! original Film ------------------------------------------------------------------- !A1_A2_..._A39_A40!B1_B2_..._B32_B33!C1_C2_..._C40_C41! segmented into three parts ------------------------------------------------------------------- !_____VTS2_______!_____VTS3_______!_____VTS4_______! In the original film there is no problem to browse forwards and backwards with the appropriate chapter buttons. But how to browse ... from original 'chapter 41' -> 'chapter 40' that is from 'VTS3 chapter 1' -> 'VTS2 chapter 40' or generally from 'FIRST chapter of VTS3' -> 'LAST chapter of VTS2' more generally from 'first chapter of current VTS' -> 'last chapter of previous VTS' with the 'previous chapter button'? ... that is the question. With my limited knowledge I cannot find a solution! But I'm sure, you can. Cela |
|
|
|
|
|
|
#227 | Link | |||
|
PGC Navigator in Training
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
|
@r0lZ
You have lots of discrepancies in PgcEdit! ![]()
UPDATE:More errors found! There might be case that it is possible that an error occurs through the executioin of a navigation command. The DVD Specs requires the player to perform the following actions when an error condition occurs. If a GPRM is divided or mod by zero, PgcEdit reports an error. Code:
[77 00 00 00 00 00 00 00] # Set gprm(0) %=(mod) 0 [76 00 00 00 00 00 00 00] # Set gprm(0) /=(div) 0 Quote:
Code:
divide by zero
divide by zero
while executing
"expr $op1 / $val"
("6" arm line 2)
invoked from within
"switch $operand {
1 { ;# = SET
return $val
}
2 { ;# <-> SWAP !!! NOT SWAPPED: actually, this function allow only to return ONE value!
retu..."
(procedure "operation_result" line 2)
invoked from within
"operation_result $op1 $operand $val"
("7" arm line 25)
invoked from within
"switch $cmdtype {
0 {
# flow control commands
switch [::disasm::get_nibble $hex 1 1] {
0 {
# NOP
}
1 {
# Goto
set n..."
(procedure "trace_disasm" line 16)
invoked from within
"trace_disasm"
("default" arm line 14)
invoked from within
"switch $cmdtype {
"* pre" {
incr idx
::main::set_listbox_selection $idx
}
"* post" {
incr idx
::main::set_listbox_selection $idx
}..."
(procedure "exec_current_line" line 11)
invoked from within
"exec_current_line"
invoked from within
"if {$idx == "-"} {
::main::set_listbox_selection end
set idx [lindex [::main::get_selection_indexes] 0]
bell
} elseif $::tr::now_playin..."
(procedure "step" line 5)
invoked from within
"step "
(procedure "::tr::dvd_trace" line 280)
invoked from within
"::tr::dvd_trace"
(menu invoke)
If a navigation command results in an underflow, then the target GPRM will be set to zero.
__________________
2COOL Last edited by 2COOL; 27th October 2004 at 08:06. |
|||
|
|
|
|
|
#228 | Link |
|
PGC Navigator in Training
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
|
Suggestion:
When using Set commands with ADD SUB MUL DIV MOD RND SWP AND OR XOR .., a disclaimer to state that these commands cannot be used if the target GPRM is in counter mode.
__________________
2COOL Last edited by 2COOL; 27th October 2004 at 05:08. |
|
|
|
|
|
#229 | Link | ||
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
Quote:
[EDIT] Tested with IfoEdit, WinDVD, Sony and Kiss: it works perfectly!
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) Last edited by r0lZ; 27th October 2004 at 10:47. |
||
|
|
|
|
|
#230 | Link | |
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
Tested with IfoEdit, WinDVD, Sony and Kiss: it works perfectly! ![]() EDIT: I was wrong! Fixed in PgcEdit 0.4.7.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) Last edited by r0lZ; 7th January 2005 at 02:04. |
|
|
|
|
|
|
#231 | Link | ||
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
Quote:
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) |
||
|
|
|
|
|
#232 | Link | |
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
You can use a GPRM or SPRM as the source for the operation. The GUI is correct on this point. You can use a constant value as well, but only some values are legal. Only bits 2-4 and 10-12 are meaningful. Bits 0, 1, 5-9 and 13-15 must be set to 0. This is why the maximum value allowed in the GUI is 7196 (ie 0x1C1C, meaning all legal bits set.) However, it is possible to enter an illegal value here (for example: 1, meaning bit 0 set, is illegal, but can be entered). Ideally, I should replace the source value field by 6 checkboxes. It's on my TODO list for a while. But it's not easy to do (I use the same GUI for all sources allowing to input a value, a GPRM or a SPRM.) For now, you have to calculate yourself the correct value to use. Since this command is rarely used, changing the GUI is not a high priority TODO item for me. Sorry.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) Last edited by r0lZ; 27th October 2004 at 11:22. |
|
|
|
|
|
|
#233 | Link | ||
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
Quote:
Code:
[43 00 00 88 00 8F 00 00] 3 (SetGPRMMD) Set gprm(15) in counter mode =(mov) sprm(8:Highlighted button number) I must fix this bug...
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) Last edited by r0lZ; 27th October 2004 at 11:55. |
||
|
|
|
|
|
#234 | Link | ||
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
Quote:
![]() Again, tested on all my players: surprise: the command Code:
[78 00 00 00 00 00 00 00] 1 Set gprm(0) ?=(rnd) 0 But my Sony gives 0! ![]() I may change the minimum to 1 in the GUI, but I'm not sure since it is apparently allowed to use 0 (with unpredictable results, but it is what you want when using a random generator, no? )BTW, the error message you got is not related to this. Can you reproduce the problem?
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) Last edited by r0lZ; 27th October 2004 at 13:00. |
||
|
|
|
|
|
#235 | Link | |
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
The commands in this group (all *Set* commands) are duplicated in the 'Numerically' menu because there are actually two codes for each command: one code for the indirect Set (where the source is a GPRM or a SPRM), the other for the direct set (source is a constant value). But both menu entries are calling the same command in the GUI. I don't change automatically the source type (GPRM/SPRM <-> value), because you can do that yourself, with the radio buttons in the GUI, and changing that without an explicit user action may be disturbing. However, this behavior can be modified. Let me know if you want the source mode automatically updated...
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) Last edited by r0lZ; 27th October 2004 at 14:30. |
|
|
|
|
|
|
#236 | Link | ||
|
PGC Navigator in Training
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
|
Quote:
Quote:
__________________
2COOL |
||
|
|
|
|
|
#237 | Link | |||
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
This is why the highlight button parameter is not supported by the standard. Quote:
Quote:
Also, you must type 0 alone in the field to input an hexadecimal or octal number (ie 0x10 or 012). So, there are 4 cases where the input field may be filled with illegal characters: "0" (when the minimum is 1), "", "0x" and "0X". In these situations, the field's value is assumed to be 0. This is why the generated command is illegal. The pink background is there to invite the user to continue to type... I can't do more.
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) |
|||
|
|
|
|
|
#238 | Link | |
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) |
|
|
|
|
|
|
#239 | Link | |
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
Code:
[00 A0 00 00 00 00 00 00] 1 if ( gprm(0) == 0 ) then { NOP }
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) |
|
|
|
|
|
|
#240 | Link | |
|
PgcEdit daemon
Join Date: Jul 2003
Posts: 4,892
|
Quote:
__________________
r0lZ PgcEdit homepage (hosted by VideoHelp) Mirror (in Belgium) Unofficial mirror (in Poland) Last edited by r0lZ; 27th October 2004 at 15:39. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|