PDA

View Full Version : Adding an audio stream to an existing titleset (alternative method)


fmilovanov
14th February 2004, 19:22
Hi folks,

I've recently added the second audio stream to an existing DVD and would like to share this knolidge cause I got though a lot of problems.

The programs you will need for this are: DVD Shrink, IFO Edit, VOB Edit and ReJig.

First of all, you get DVD Shrink and rip an original DVD on the disk in Re-author more. Please, go to Edit -> Preferences -> Output File and uncheck an option Split VOB files into 1GB chunks [u]before[/u you start ripping. You may exclude unnesesary audio/subtitle streams with DVD Shrink - so do it on this step.

You will get a huge VOB file. Start ReJig, go to File Mode, load your huge VOB and use Demux button to extract audio and video stream(s). For audio do not forget to check Fix & Correct AC3 Delay option. Unfortunately, ReJig cannot demux all the streams in one time so you'll need to extract all the streams separately - but it allows to fix an audio delay, so I prefere to use it.

If you've got a subtitle stream, you need VOB Edit - ReJig is unable to extract subs. Run VOB Edit, load you hige VOB file, click Demux button and select Demux all Sups Streams and hit Ok - you'll get your subpicture stream.

At this moment you get M2V video file, AC3 audio file(s) and probably SUP subpicture file(s). Open up IFO Edit, open VTS_01_1.IFO you'd got with DVD Shrink, open VTS_PGCITI section, select VTS_PGC_1 and do Tools -> Save Celltimes to file - it will save a chapter information.

Then prepare your audio stream and convert it to AC3 format.

Not you're ready to put everything together. Open ReJig, go to DVD Author mode. Load your M2V file, AC3 audio file(s), SUP file(s). Load chapter information from a file created by IFO Edit in a Scene changes / Chapters section. Specify the Destination directory and click Create button - and you can have a cup of coffe, cause ReJig is a pretty slow program.

While ReJig is running, I tell you something. You can put it together with IFO Edit that works much more faster and intelligent than ReJig - but it does not work correct with NTSC video, and after discovery I did not find a way to fix this, that's why I recomment ReJig. Not than this program is not very stable and may crush at any time - so try to do it again, it worked some times with me.

After ReJig is done with its work, you get a set of IFO/BUP/VOB files. For some reason, ReJig does a good work with VOBs, but not that good with IFOs. Throw IFOs away and run IFO Edit. Click Create IFOs button, load your first VOB (VTS_01_1.VOB), select Create 1 PGC Only and Create Chapter for each Cell, click Destination directory - Same as source - and you may click Ok button and have more coffe while IFO Edit is running.

When IFO Edit is done, click Get VTS sectors to fix something. Then open VTS_01_1.IFO created by DVD Shrink, open VTS_PGCITI section, select VTS_PGC_1 and do Subtitle Color -> Copy Colors from this PGC, select your newly created VTS_01_1.IFO, open VTS_PGCITI section, select VTS_PGC_1 and do do Subtitle Color -> Paste Colors into this PGC. Then in both newly created VTS_01_1.IFO and VIDEO_TS.IFO correct the languages for audio/subtitle streams by double-clicking - IFO Edit cannot set if correct. Then save both files.... and you've cool!

Now you've got a fully correct set of VOB/IFO/BUP files. If the size does not exceed 4,484 MB - you can burn them. If does, open my favorite DVD Shrink, load the directory with your files and cut titles/credits at the start/end of the movie or/and shrink the video - DVD Shrink allows you to do all of these actions. As the result you'll get a set of files you may burn on DVD - it will work.

Dave82
14th February 2004, 21:35
BTW, you should specify "movie only" in the subject, since you're using the IFOs created by IFOEdit and you're not considering multipgc titlesets (so actually it's not an alternative method to mine ;) )

jorel
15th February 2004, 12:47
fmilovanov,
right Dave posted,it's for main movie only!

a few days i found here one
"tutorial for adding subtitles to a DVD"
somewhere in the forum build by one of this (great) guys:
2cool,Dave82 or maa...i think that was 2cool...aka:
:cool: :cool:
don't remember in what post i found
but is save as .txt and used to put
one more audio channel in the "main movie".
yeah,you can put several audio tracks!

i never had used this progs before and
got good result in the first try!

from the author (2cool,i think) :

*** Beware, this is definitively not for newbies ***

Tools needed:
- DVD Shrink 3b5
- VobEdit 0.6
- IfoEdit 0.96
- Str2Sup a4.03
- BurnAtOnce or Nero...

Material needed:
- Original DVD
- SRT subtitles file for that DVD (check in the DiVX sites)
- about 13GB of disk space
- a few hours...

--------- Step 1 - Ripping ------------
Use DVD Shrink 3b5 Re-author feature to grab the movie title (no menus, no extras...)

video: no compression
audio: main track only
subtitles: none
Save in: C:\Rip

So you should now have
c:\Rip\VIDEO_TS.BUP
c:\Rip\VIDEO_TS.IFO
c:\Rip\VTS_01_0.BUP
c:\Rip\VTS_01_0.IFO
c:\Rip\VTS_01_1.VOB
and a few more VTS_01_x.VOB depending on the size of your movie

--------- Step 2 - Demux ---------------
Use VobEdit 0.6 to demux the Vob files into separate video and audio files.

Create D:\Demux (D: should be an NTFS drive because the m2v file will be over 4GB)
Start VobEdit 0.6
Open c:\Rip\VTS_01_1.VOB
Click on "Demux" button
Check "Demux all Video streams" and "Demux all Audio streams" boxes
Click on "ok"
The target directory is of course D:\Demux
Quit

So you should now have
D:\Demux\VTS_01_1.m2v
D:\Demux\VTS_01_1.80.ac3


--------- Step 3 - Chapter infos --------
Use IfoEdit 0.96 to retrieve the chapter infos

Start IfoEdit 0.96
Open c:\Rip\VTS_01_0.IFO
In the upper window, double click on VTS_PGCITI.
VTS_PGC_1 appeared right below, click on it.
Now scroll the lower window until you see "PGC Command Table:", click on it.
Go in the main menu: "Tools/Save Celltimes to file"
Navigate in the savebox to save CellTimes.txt in D:\Demux
Quit

So you should now have
D:\Demux\VTS_01_1.m2v
D:\Demux\VTS_01_1.80.ac3
D:\Demux\CellTimes.txt

--------- Step 4 - Converting the subtitles --------
Use Str2Sup a4.03 to convert the Srt subtitles file into a Sup file

Start Str2Sup a4.03
In the main menu, choose SRT File/Open as text
Choose your SRT file.
Now in the dialog box, you can see an "adjust times" area. Usually "0" is fine, but you may have to tweak this a bit...
The easiest way is to open the Srt file in Notepad, look when is the 1st dialogue, then watch in your DVD player the time difference (if any).
Click on "ok".
In the main window, click on "All".
Now click on "Alter Subtitle Layout"
Click on "Global"
Change the colors and font settings to suit your tastes (if you don't, it will be green in the middle of the screen).
My settings are:
Backgnd: Black + Trans
Outline: Gray
Text: White
Antialias: Gray
Vertical Alignment: Bottom
Global Font: Arial 16
Others parameters left to default settings.
Don't forget to choose Screen Format according to the current DVD (PAL or NTSC).
Click on "ok"
Click on "close"
In the main menu, choose SUP File/Save
Target should be D:\Demux\VTS_01_1.20.sup

Write down the informations about the colors and quit, or keep that window open.

So you should now have
D:\Demux\VTS_01_1.m2v
D:\Demux\VTS_01_1.80.ac3
D:\Demux\VTS_01_1.20.sup
D:\Demux\CellTimes.txt

*****************jorel intermission*****
here,i take this .ac3 and encode as mp2!
****************************************

--------- Step 5 - Mux back -----------
Use IfoEdit 0.96 to mux what is in D:\Demux\ back into Vob files.

You can now delete C:\Rip.
Create C:\Full
Start IfoEdit 0.96
In the main menu, choose DVD Author/Author New DVD
In the right part, there is a dot button where you can choose the video file.
Choose D:\Demux\VTS_01_1.m2v
In the right part, there is a dot button where you can choose the audio file.
Choose D:\Demux\VTS_01_1.80.ac3

*************jorel intermission******
choose all the original audios
and the new audio too (ac3 or mp2)
*************************************

Then click on the ac3 file and choose its language (drop down box in the left part)
In the right part, there is a dot button where you can choose the subtitle file.
Choose D:\Demux\VTS_01_1.20.sup
Then click on the sup file and choose its language (drop down box in the left part)
In the right part, there is a dot button where you can choose the chapters file.
Choose D:\Demux\CellTimes.txt
Last, choose the destination, which of course is C:\Full.
Then click on "ok"
Later, click on "close"

In the upper window double click on VTS_01_0.IFO
Then double click on VTS_PGCITI.
VTS_PGC_1 appeared right below, click on it.
In the lower window, right below a lot of "Sub-picture steam x Status", you'll see "Color 0 Y Cr Cb".
Double click on it.
In the edit window, you'll see: "00000000 00 00 00 ...".
Click on the "00" pairs and fill with the Hex color informations from step 4
Repeat for "Color 1 Y Cr Cb", "Color 2 Y Cr Cb" and "Color 3 Y Cr Cb".
Click on "save", the default name is fine. You can say "yes" to the Bup question.

If you don't want to do Step 6, then quit IfoEdit now.

-------- Step 6 (optional) - Set "Subtitles On" as default ----------
This is only necessary if you want the subtitles to be displayed right at the beginning of the movie.
As we didn't copied the DVD's menus, I think this is quite convenient.

A little bit below the subtitles colors, you'll see "There is no PGC Command Table".
Then right click on that to display the context menu.
Choose "Add PreCommand".
Now you have a small PGC Command Table which ends with "1.Pre Command NOP".
Right click on "1.Pre Command NOP" and choose "Edit command".
In the list, change "NOP" to "(SetSTN) Set Subpicture Stream Nr"
Steam = 0, On/off = On
Click on "ok"
Save again.
Quit

***********************
D:\Demux is no longer useful, you can delete it.
C:\Full contains IFO and VOB files for our DVD with subtitles.
***********************

-------- Step 7 (very often mandatory) - Shrink -------------
Use DVD Shrink 3b5 to shrink our project (now in C:\Full) so it fits a DVD-R

Save it in D:\Shrinked

-------- Step 8 - Burn -------------
Use your favorite software (BurnAtOnce, Nero...) to burn what is in D:\Shrinked

end!

observations:
you can put 8 audio tracks in total.
got perfect audio-video sincro.

after i got perfect result with this tutorial,
i ask in the forum about the full movie
with one more audio track here:
http://forum.doom9.org/showthread.php?s=&threadid=70521
and now,Dave is helping me with this new tutor:
http://forum.doom9.org/showthread.php?s=&postid=444402

thanks for 2cool,maa and special thanks for Dave that help me a lot!
:)