Trahald
21st May 2004, 20:10
Im releasing something i whipped up.. BatchUpdateIFO.. basically it just does the ifo update process but adds a functionality for processing multiple files at once (it gets to be a chore to do the files one at a time)
NOTE: if batchupdateIFO does not run for you do the following-->
download this --
http://activex.microsoft.com/controls/vb6/comdlg32.cab This is a common dialogue for many controls for
windows for all programing languages. I use it for the directory dialog.
Unpack and right+click the included .INF, choose install and you're
all set with the latest version of COMDLG32.OCX (6.1.97.82).
then do...
regsvr32 \windows\system32\COMDLG32.ocx
-- thanx to spuniun for locating the download and d3s7 for helping debug
i wrote it not because i thought anything was wrong with ifoupdate, just because i thought batch functionality was needed
i also plan to add the ability for it to automatically copy the VTS_YY_X.VOB files for you to save newbies a step.. and also to select the correct files to update.. for now you check them yourself. right click the batch area and hit select all to select all ifos.. also batch mode is default on.
Doesnt support acm mode which with scenaid available isnt needed. i might add it later (i never use it.) Being a batch processer its better to be able to only need to update with one method
lemme know how it works for you..
Here is a quick tutorial for it..
Batch-Mode check box
This allows you to update more than one ifo at a time. IMPORTANT! When this option is on.. you MUST check an .IFO in the batch window to update.. It only updates ifos that have checks next to them in the batch window. if none are checked, none are updated. Im going to add a popup that warns you nothing will be updated in the next version (0003). This option is default ON
When this option is OFF, it works like usual.. only the IFO in the 'original pathname' box is updated as ifoupdate would.
Use same pathname as authored for backup
This will automatically create a backup filename with the path of your authored file, using the filename of the original file. i added this because having to change the backup pathname with ifo update seemed like an uneccesary extra step. although you can turn the option off if you prefer to make your own backup path. NOTE - in batch mode, this option is forced on
'Transfer vts_c_adt map and 'transfer timemap and admap'
These options act the way they would in IFOupdate.. when off, nothing is transfered and the original maps are kept. When on, the authored maps are transfered over. things seem to work alot better with these options on so you may want to leave them on. They default to ON
'Transfer Audio and subtitle tables'
This option transfers the authored audio and subtitle tables from each pgc over. these tables contain the stream info for each audio and subtitle (ie when audio stream 1 is selected.. should x80 be played) this is default ON
'Transfer Color maps'
This option transfers the authored subtitle colors over for each pgc. i keep this option off because i usually import the subs myself and the colors are wrong.. so i keep the originals. you should use the same setting you did with ifoupdate. this is default OFF in batchupdate
<edit> 0.0.0.2
- will now take pgc with too few cells (if you dummy a pgc with a single cell it will just copy the cells that are available.) Its not the safest thing to do.. but it is supported in ifoupdate and i figured people might be used to it. 0001 would only update an ifo if cell count matched exactly.
- fixed copy color tables - wasnt copying entire table. p.s. i have this option defaulted off as the original colors work better for me
<edit> 0.0.0.3
- fixed vts_xx_0.BUP wasnt updated after get sectors
- fixed in vtsi_mat details ->vtstt_vobs and last sector of vtsi werent updating (they generally dont change but occasionally they do) during get sectors
<edit> 0.0.0.4
- added option to copy files from authored directory while updateing. this is default to on
- fixed sector start of vtsm_vobs and vtstt_vobs . note - ifoedit will set vtsm_vobs to the sector value when there is a 0 byte menu file. on professional dvds this is left at 0 (as if there were no menu vob present) when the menuvob is 0 bytes. i will defer to the pro dvds and set it to 0. so if you check my output to ifoedit's get vts sectors it will correct vtsm_vobs. this is by design. ifoupdate does the same as batchupdate on this matter. The 0 byte vob files really should be deleted and i may have batchupdate do that automatically.
<edit> 0.0.0.5
- added error popup when you did not check any boxes in the batch box and you hit update all.
- fixed .ifo.backup files now saved in authored files directory during batch (wasnt saving before)
- fixed secter start of vmgm_vobs and last sector vmg in video_ts . these would never change during a regular backup because the video_ts.vob file isnt changed (except by numenu which corrects this automatically) However to keep my get sectors in tune with ifoedits i update these as well. note - the same as with the vstm_vobs i also set this to 0 if the video_ts.vob is 0 bytes (rare)
<edit> 0.0.0.6
- fixed sometimes the last byte of the cell playback info table was written incorrectly.
<edit> 0.0.0.7a
- added command line (cli) function - -opathname=original ifo -apathname destination ifo -bpathname backuppathname if you dont supply backup name then its auto generated -u=auto update and close in cli mode batch mode is disabled , also the .ini file isnt updated during that session so no settings are saved
Example
batchupdateifo.exe -oD:\DIF\VIDEO_TS\VTS_01_0.IFO -aD:\DIF\0\VIDEO_TS\VTS_01_0.IFO -u
this will update D:\DIF\VIDEO_TS\VTS_01_0.IFO and close automatically
if a pathname (either original or authored) is not given it will use the last saved pathname so supply both if you are going to use -u
<edit> 0.0.0.8
- moved some stuff around in the gui and added chapter file saving function. so far it only does the single ifo, I'll have it update per the batch option in the next version. It only does Scenarist_PGC for now.. (it saves all cell times, btw.. not just the chapters) i'll add scenarist_vobid and other types later.
- fixed video_ts.bup was not always being updated.
- the region free button now also does rce removal. i think its a useless option since dvddecrypter removes it during copy.. but its there. You set the region in the options menu.. it defaults at R1
<edit> 0.0.0.9
- small update - if you picked a bad directory sometimes the program would error out. Now you just get a Message Box
- it now uses the original 'cell command no.' byte of the cell playback information table. before it would copy the authored cell command no (which would be 0) which basically nullified the fact that the cell commands where there. most commercial dvds dont rely on cell commands.. but on the few that do, it might cause a jump event after a cell play not to happen. IFOUpdate copies the 0 (no command) over same as batchupdate0008 and earlier did.
<edit> 0.0.0.11
- rewritten in c++ (MFC/VC7). pretty much the same features and GUI. I have used it a few times and it seems to work. I wrote it almost the same way except i used c++ commands instead (i tightened things up in a few spots). This version corrects Alsairs issue. Alert me to any issues please.
- and why the version skip? well.. 0.0.0.10 was the vis basic .net version - i decided not to bother releasing since it would have complicated things with the c++ version comming.
<edit> 0.0.0.11a
- bah - stupid error (new version) in get vts sectors fixed.
<edit> 0.9.0.1 beta
- first beta release.
- fixed an error where you couldnt select the video_ts.ifo for batch mode
- restored the right click menu for the batch listbox - you can select none/all and toggle all.
- other small things.
<edit> 0.9.0.2 beta
- small stuff.. downgraded message box of 'Invalid directory' popup to just an item in the log box to be less intrusive. when the copy option is on yet there are already files in the original file directory the files are now moved out of the way (to the authored dir) and the authored files are then moved. before if there were files in the way in the original directory i would abort the move. and other small stuff i cant remember
- fixed a bug where an aborted vts update (for example when cell quantity doesnt match and the override is off) occured it wouldnt abort the update properly.
- when cell quantity authored < original it updates the cell/program count. (before the original quantity was kept.)
- program is released under the GPL. source is available upon request. although you may only want to view on an empty stomach as it is ugly ;)
<edit> 0.9.0.3 beta
- Tested on XP SP2 and works. It is actually compiled on SP2. If anyone has any problem getting the program going in an SP2 environment, please post your system specs (cpu etc) for me.
- Added a .ini only setting to not copy the cell times over from the authored ifo.
- If the copy file option is on , as each vts is processed, the ifo is now updated first then the files are copied. that way if for some reason the update fails for that ifo (for example if there are too few pgcs in the authored) then the files wont be copied.
- Other little stuff.
NOTE: if batchupdateIFO does not run for you do the following-->
download this --
http://activex.microsoft.com/controls/vb6/comdlg32.cab This is a common dialogue for many controls for
windows for all programing languages. I use it for the directory dialog.
Unpack and right+click the included .INF, choose install and you're
all set with the latest version of COMDLG32.OCX (6.1.97.82).
then do...
regsvr32 \windows\system32\COMDLG32.ocx
-- thanx to spuniun for locating the download and d3s7 for helping debug
i wrote it not because i thought anything was wrong with ifoupdate, just because i thought batch functionality was needed
i also plan to add the ability for it to automatically copy the VTS_YY_X.VOB files for you to save newbies a step.. and also to select the correct files to update.. for now you check them yourself. right click the batch area and hit select all to select all ifos.. also batch mode is default on.
Doesnt support acm mode which with scenaid available isnt needed. i might add it later (i never use it.) Being a batch processer its better to be able to only need to update with one method
lemme know how it works for you..
Here is a quick tutorial for it..
Batch-Mode check box
This allows you to update more than one ifo at a time. IMPORTANT! When this option is on.. you MUST check an .IFO in the batch window to update.. It only updates ifos that have checks next to them in the batch window. if none are checked, none are updated. Im going to add a popup that warns you nothing will be updated in the next version (0003). This option is default ON
When this option is OFF, it works like usual.. only the IFO in the 'original pathname' box is updated as ifoupdate would.
Use same pathname as authored for backup
This will automatically create a backup filename with the path of your authored file, using the filename of the original file. i added this because having to change the backup pathname with ifo update seemed like an uneccesary extra step. although you can turn the option off if you prefer to make your own backup path. NOTE - in batch mode, this option is forced on
'Transfer vts_c_adt map and 'transfer timemap and admap'
These options act the way they would in IFOupdate.. when off, nothing is transfered and the original maps are kept. When on, the authored maps are transfered over. things seem to work alot better with these options on so you may want to leave them on. They default to ON
'Transfer Audio and subtitle tables'
This option transfers the authored audio and subtitle tables from each pgc over. these tables contain the stream info for each audio and subtitle (ie when audio stream 1 is selected.. should x80 be played) this is default ON
'Transfer Color maps'
This option transfers the authored subtitle colors over for each pgc. i keep this option off because i usually import the subs myself and the colors are wrong.. so i keep the originals. you should use the same setting you did with ifoupdate. this is default OFF in batchupdate
<edit> 0.0.0.2
- will now take pgc with too few cells (if you dummy a pgc with a single cell it will just copy the cells that are available.) Its not the safest thing to do.. but it is supported in ifoupdate and i figured people might be used to it. 0001 would only update an ifo if cell count matched exactly.
- fixed copy color tables - wasnt copying entire table. p.s. i have this option defaulted off as the original colors work better for me
<edit> 0.0.0.3
- fixed vts_xx_0.BUP wasnt updated after get sectors
- fixed in vtsi_mat details ->vtstt_vobs and last sector of vtsi werent updating (they generally dont change but occasionally they do) during get sectors
<edit> 0.0.0.4
- added option to copy files from authored directory while updateing. this is default to on
- fixed sector start of vtsm_vobs and vtstt_vobs . note - ifoedit will set vtsm_vobs to the sector value when there is a 0 byte menu file. on professional dvds this is left at 0 (as if there were no menu vob present) when the menuvob is 0 bytes. i will defer to the pro dvds and set it to 0. so if you check my output to ifoedit's get vts sectors it will correct vtsm_vobs. this is by design. ifoupdate does the same as batchupdate on this matter. The 0 byte vob files really should be deleted and i may have batchupdate do that automatically.
<edit> 0.0.0.5
- added error popup when you did not check any boxes in the batch box and you hit update all.
- fixed .ifo.backup files now saved in authored files directory during batch (wasnt saving before)
- fixed secter start of vmgm_vobs and last sector vmg in video_ts . these would never change during a regular backup because the video_ts.vob file isnt changed (except by numenu which corrects this automatically) However to keep my get sectors in tune with ifoedits i update these as well. note - the same as with the vstm_vobs i also set this to 0 if the video_ts.vob is 0 bytes (rare)
<edit> 0.0.0.6
- fixed sometimes the last byte of the cell playback info table was written incorrectly.
<edit> 0.0.0.7a
- added command line (cli) function - -opathname=original ifo -apathname destination ifo -bpathname backuppathname if you dont supply backup name then its auto generated -u=auto update and close in cli mode batch mode is disabled , also the .ini file isnt updated during that session so no settings are saved
Example
batchupdateifo.exe -oD:\DIF\VIDEO_TS\VTS_01_0.IFO -aD:\DIF\0\VIDEO_TS\VTS_01_0.IFO -u
this will update D:\DIF\VIDEO_TS\VTS_01_0.IFO and close automatically
if a pathname (either original or authored) is not given it will use the last saved pathname so supply both if you are going to use -u
<edit> 0.0.0.8
- moved some stuff around in the gui and added chapter file saving function. so far it only does the single ifo, I'll have it update per the batch option in the next version. It only does Scenarist_PGC for now.. (it saves all cell times, btw.. not just the chapters) i'll add scenarist_vobid and other types later.
- fixed video_ts.bup was not always being updated.
- the region free button now also does rce removal. i think its a useless option since dvddecrypter removes it during copy.. but its there. You set the region in the options menu.. it defaults at R1
<edit> 0.0.0.9
- small update - if you picked a bad directory sometimes the program would error out. Now you just get a Message Box
- it now uses the original 'cell command no.' byte of the cell playback information table. before it would copy the authored cell command no (which would be 0) which basically nullified the fact that the cell commands where there. most commercial dvds dont rely on cell commands.. but on the few that do, it might cause a jump event after a cell play not to happen. IFOUpdate copies the 0 (no command) over same as batchupdate0008 and earlier did.
<edit> 0.0.0.11
- rewritten in c++ (MFC/VC7). pretty much the same features and GUI. I have used it a few times and it seems to work. I wrote it almost the same way except i used c++ commands instead (i tightened things up in a few spots). This version corrects Alsairs issue. Alert me to any issues please.
- and why the version skip? well.. 0.0.0.10 was the vis basic .net version - i decided not to bother releasing since it would have complicated things with the c++ version comming.
<edit> 0.0.0.11a
- bah - stupid error (new version) in get vts sectors fixed.
<edit> 0.9.0.1 beta
- first beta release.
- fixed an error where you couldnt select the video_ts.ifo for batch mode
- restored the right click menu for the batch listbox - you can select none/all and toggle all.
- other small things.
<edit> 0.9.0.2 beta
- small stuff.. downgraded message box of 'Invalid directory' popup to just an item in the log box to be less intrusive. when the copy option is on yet there are already files in the original file directory the files are now moved out of the way (to the authored dir) and the authored files are then moved. before if there were files in the way in the original directory i would abort the move. and other small stuff i cant remember
- fixed a bug where an aborted vts update (for example when cell quantity doesnt match and the override is off) occured it wouldnt abort the update properly.
- when cell quantity authored < original it updates the cell/program count. (before the original quantity was kept.)
- program is released under the GPL. source is available upon request. although you may only want to view on an empty stomach as it is ugly ;)
<edit> 0.9.0.3 beta
- Tested on XP SP2 and works. It is actually compiled on SP2. If anyone has any problem getting the program going in an SP2 environment, please post your system specs (cpu etc) for me.
- Added a .ini only setting to not copy the cell times over from the authored ifo.
- If the copy file option is on , as each vts is processed, the ifo is now updated first then the files are copied. that way if for some reason the update fails for that ifo (for example if there are too few pgcs in the authored) then the files wont be copied.
- Other little stuff.