View Full Version : changing default audio (AC3->DTS)
Kwark
27th September 2004, 10:05
I'm trying to change the default audio track with IfoEdit.
These are the audio tracks, given by IfoEdit. I want to have the second track, the DTS track to play by default for the main movie.
I've tried 2COOL's guide (http://forum.doom9.org/showthread.php?s=&postid=369149#post369149), but it didn't quite work for me. I'm probably doing something very silly wrong.
VTS Overview in VTS_01_0.IFO:Title Set (Movie) attributes:
Audio 1: English (Dolby AC-3) 6ch 48Kbps DRC (ID: 0x80,0x83)
Audio 2: English (DTS ) 6ch 48Kbps DRC (ID: 0x89)
Audio 3: English (Dolby AC-3) 6ch 48Kbps DRC (ID: 0x82)VTSM_PGCITI / VTS_PGC_2 (the main movie):[0000000c] Audio stream 1 status 32768
Audio stream 1 uses stream nr.: 0
[0000000e] Audio stream 2 status 33024
Audio stream 2 uses stream nr.: 1
Swapping the status numbers in VTS_PGC_2 results in this:Title Set (Movie) attributes:
Audio 1: English (Dolby AC-3) 6ch 48Kbps DRC (ID: 0x80,0x81,0x83)
Audio 2: English (DTS ) 6ch 48Kbps DRC (ID: 0x89,0x88)
Audio 3: English (Dolby AC-3) 6ch 48Kbps DRC (ID: 0x82)
When I try to save, I get the following errors:There's something wrong!
The file position does not match the offset for table: ID_VTSM_C_ADT
There's something wrong!
The file position does not match the offset for table: ID_VTSM_VOBU_ADMAP
There's something wrong!
The file position does not match the offset for table: ID_VTS_C_ADT
There's something wrong!
The file position does not match the offset for table: ID_VTS_VOBU_ADMAP
There's something wrong!
The IFO Endsector does not match the file size.
Does anyone know what I'm doing wrong? This is the first time I'm playing with the default audio track, so some help is very welcome.
I've attached the .ifo to this post, but if that doesn't work, mail/PM me and I can email the ifo.
Kwark
27th September 2004, 10:07
Mmmm the attachment didn't show up.. let's try it again.
2COOL
27th September 2004, 10:45
Originally posted by Kwark
I want to have the second track, the DTS track to play by default for the main movie.
Try this. In your VTS_01_0.IFO / VTSI_MAT, manually swap your Audio_1 and Audio_2 attributes. You may have to write your attributes down just in case. Make sure you are at the right address.
[00000204] Aud_1: audio attributes
[0000020c] Aud_2: audio attributes
Now go to your / VTSM_PGCITI, swap your Audio stream 1 and 2 for ALL your VTS_PGCs. Not just PGC_2.
BTW, forum attachments will need to be authorized by a moderator. I doubt this would happen in your case since we have this sticky (http://forum.doom9.org/showthread.php?s=&threadid=50765). ;)
Kwark
27th September 2004, 11:06
I've swapped the audio properties (only coding type was different), and swapped the audio status numbers for all PGCs.
But I still get all those errors.
BTW, Sorry about that .ifo..
2COOL
27th September 2004, 17:38
Try doing a mock stream strip in IfoEdit VOB Extras. Strip but keep every stream.
jeanl
27th September 2004, 17:46
May I suggest another (rather dumb) way to do that in PgcEdit?
1) Find an unused register (hopefully there will be one).
2) Set it to 1 in the first-play PGC.
3) In the title-menu PGC precommand area, check for the value of this register. If it's 1 set the language and subtitles to the desired values with a set SPRM command, then set the register to 0. If it's 0 do nothing (i.e., don't set the language/subtitles). You should probably put this code at the top of the precommand area, in case there are break in the following instructions.
The net result is that the first time you get to the title menu the language and subtitles will be set to the values you chose. If you then change them (with the remote or using the setup menu) the changes won't be overriden by the commands above (because the register will be 0 and the commands will be ignored).
It's a bit silly and brute-force, but it's been working fine for me... Of course, if there's no unused registers, you're hosed!
If the above steps are not clear, I'll post details...
Jean
Kwark
27th September 2004, 20:57
2COOL:
Your mock stream strip trick didn't work, it resulted in an unplayable dvd (no playback at all, no menu/fbi warnings/menu).
However, when I edited the audio streams I didn't get those same errors..
jeanl:
Can you give a bit more info please? I'm still pretty new to PGC command editing..
What exactly is a register, and how do I find a free one?
And where exactly do I need to add the precommands?
jeanl
27th September 2004, 21:53
OK, I'm going to do that by memory (I'm at work ;) I'll post more tonight if you're still stuck.
- Registers are memories available for the DVD "program" to use. Physically, they're on the DVD player (soft or settop). The DVD uses them to store info (for example, to remember if you already selected your aspect ratio etc). There are GPRMs and SPRMs (system). The GPRMs are general purpose registers (16 of them) that can be used for anything. SPRMs are system registers that are predefined.
- The DVD you intend to modify most likely already uses a few registers, so for the trick I described you need to find one that isn't already used (otherwise, you will mess things up). In PgcEdit, open your DVD, go to the Info menu and select "Find unused GPRMs" and pick any of the unused ones. Let's say it's GPRM #1
- Before you do anything, go to the Options menu and select "Automatically renumber GOTOs...", so if you insert a command the goto instructions won't be messed up.
- Find your first-play PGC (that'll be in the VMG). There, you can insert the following command at the top of the precommand area:
[71 00 00 01 00 01 00 00] 2 Set gprm(1) =(mov) 1 ".."
by clicking the "Add before" button, then double-clicking the NOP command that was inserted, seleting the "By Type" menu and "Set" submenu, then "GPRM" and "SetGPRM". Now, when you insert your DVD, the first-play PGC is the first one to execute, so your command will make sure GPRM 1 is set to 1.
- Now, you need to find your title menu (should be easy to find, the word "title" should show next to it). If you're lucking, it's in a VTS and not in the VMG. Let's assume it is in a VTS. You'll need to click on the title menu PGC, and insert 3 NOP commands at the top of the precommand area by using the Add Before button. Now edit these three commands to read:
[00 B1 00 01 00 01 00 03] 1 if ( gprm(1) != 1 ".." ) then { Goto line 3 }
[51 00 00 81 00 00 00 00] 2 (SetSTN) Set Audio stream = 1
[71 00 00 01 00 00 00 00] 3 Set gprm(1) =(mov) 0 ".."
For the first one, double-click on the nop, then select "By Type" "Flow Control" then "Goto Line". For the second, "By Type" then "Set" "SPRM" "Audio".
Pick whatever audio stream you'd like to be your default. You can also change the subtitles etc... So the first time you get to this menu, the commands you added will execute because GPRM(1) is 1. So your favorite language will be set, and the register will be reset to 0. This way, if you even select another language, your choices won't be overriden if you return to the title menu.
- Save and then test in your favorite player. That should do the trick.
- If your title menu is in the VMG, you can't use the set SetSTN command. But there will be a jump instruction that takes probably takes you to a "root" menu in a VTS. You should go to there and follow the above steps in that PGC.
Let me know if you get stuck somewhere. Getting familiar with PgcEdit is not too difficult, and it's a great tool if you want better control over how your DVDs play (you can bypass whole titlesets, titles, menues etc etc). Definitely a good investment of your time.
Jean
oddyseus
28th September 2004, 13:12
If may help. This errors from ifoedit come when u have reauthored and there is a flaw in the original ifo.
I am solving it by pressing 'Get VTS Sectors' and accepting the corrections ifoedit is proposing, how many time it is proposing them. Once it corrected the pointers for almost 20 times.
By the end everything was OK.
r0lZ
28th September 2004, 13:17
@jeanl
IMHO, it is best to do the opposite check:
Do not add the First-Play Set command. All GPRMs are resetted to 0 when the DVD is inserted in the player.
Then check if the GPRM value is 0, and, if true, set it to 1, and set the audio/subtitle you want.
Benefit: if there is a jump or call back to the FP-PGC somewhere in the DVD, the GPRM will not be changed, and the audio/subtitle will not be set again.
jeanl
28th September 2004, 16:44
@r0lZ
yes, you're absolutely right. It's also a bit cleaner.
But is it safe to assume that all gprms are set to 0 at the beginning of time? (I guess it is...)
Jean
jorel
28th September 2004, 17:43
Originally posted by Kwark
I'm trying to change the default audio track... I want to have the second track, the DTS track to play by default for the main movie.
.......
This is the first time I'm playing with the default audio track, so some help is very welcome.
use DVDShrink:
load the movie and adjust for "no compression"
set remapping once in the preferences.
right click on the title--. set default streams...
Then, you can set the default audio as well if you wish.
IF you want to remove any audio track: Just untick the audio you don't want. your chosen track (DTS) as the first track. If you leave another audio track, it will become second.(you can do the same with subs!)
backup (don't forget-->no compression)!
done!
;)
r0lZ
28th September 2004, 18:16
Originally posted by jeanl
@r0lZ
yes, you're absolutely right. It's also a bit cleaner.
But is it safe to assume that all gprms are set to 0 at the beginning of time? (I guess it is...)
Jean
Normally, yes. But some players are resetting the registers only when a DVD is physically inserted. This means that pressing Stop then Play is not enough to reset the player. You have to open and close the tray.
Kwark
28th September 2004, 22:06
Originally posted by jorel
use DVDShrink:
load the movie and adjust for "no compression"
set remapping once in the preferences.
right click on the title--. set default streams...
Then, you can set the default audio as well if you wish.
IF you want to remove any audio track: Just untick the audio you don't want. your chosen track (DTS) as the first track. If you leave another audio track, it will become second.(you can do the same with subs!)
backup (don't forget-->no compression)!
done!
;)
I want to keep all original menu functionality, and DVD Shrink won't let me if I reauthor the dvd. Thanks for trying though.
jeanl & r0lZ:
I will try your method tomorrow. I've played a bit with PGCEdit before, but I may need some help. It will be a nice workaround and a good experience for me.
jeanl
28th September 2004, 22:19
I want to keep all original menu functionality, and DVD Shrink won't let me if I reauthor the dvd. Thanks for trying though.
I don't think jorel suggested to use the authoring mode. You can strip audio tracks and keep the menus in Shrink. The only drawback with this method is the time it takes (even though you don't recompress, it will still rewrite all the vobs, takes about 20mn on my machine). By contrast, the PgcEdit method takes all of 5mn (if you're somewhat familiar with it) and the processing itself is instantaneous (no vob rewriting). Don't forget to use the cratchbook, it's pretty useful to save commands you think you might reuse someday... and don't forget to test your results! ;)
Jean
2COOL
28th September 2004, 22:24
Originally posted by jeanl
I don't think jorel suggested to use the authoring mode
Yes he did because you can't do this in Full Disk mode. ;)
Originally posted by jorel
right click on the title--. set default streams...
jeanl
28th September 2004, 22:28
Yes he did because you can't do this in Full Disk mode.
Darn, that's too bad, it sounded like an easy solution... Thanks for the correction 2C00L.
Jean
jorel
29th September 2004, 00:11
:o sorry my incomplete informations guys and 2COOL is right because you can't do this in Full Disk mode.
but this is what i read in the first post:
Originally posted by Kwark
I want to have the second track, the DTS track to play by default for the main movie.
and i understood "to play by default for the main movie." and i not pay atention in what Kwark really need....sorry!
:o
2COOL
29th September 2004, 04:48
@Kwark
Originally posted by Kwark
When I try to save, I get the following errors:There's something wrong!
The file position does not match the offset for table: ID_VTSM_C_ADT
There's something wrong!
The file position does not match the offset for table: ID_VTSM_VOBU_ADMAP
There's something wrong!
The file position does not match the offset for table: ID_VTS_C_ADT
There's something wrong!
The file position does not match the offset for table: ID_VTS_VOBU_ADMAP
There's something wrong!
The IFO Endsector does not match the file size.You know, I always assume that you were working with files freshly ripped. Did you do anything prior?
Kwark
29th September 2004, 08:48
2COOL:
Nope, nothing prior. The DVD played fine.
Ok, those PGC commands would have worked, but there were already other SetSTN commands to set the default audio track to 0..
Since that one is blank, I've changed those commands (1 in main movie, 1 in a dummy before that) to audio 1 and everything works great!
Thanks guys!
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.