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.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > IFO/VOB Editors

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th February 2004, 23:47   #1  |  Link
Dave82
vobclips.com
 
Dave82's Avatar
 
Join Date: Jul 2003
Location: Piacenza (North of Italy)
Posts: 220
Adding an audio stream to an existing titleset

Adding an audio stream to an existing titleset

Actually you have to reauthor your titleset, but I'll explain you how to recreate the original VOB structure and correct the IFOs, so that you'll be able to import this new titleset in your VIDEO_TS and everything (menues included) is going to work.
This could be useful even if you just want to modify an existing audio stream (since audio remuxing isn't supported yet) and rebuild your VOB.

Tools needed:
- IFOEdit
- VOBEdit
- MenuEdit (unregistered version)

1. Open your VTS_??_1.VOB with VOBEdit, click on Demux, check "Demux all Video streams" and "Demux all audio streams", click OK and choose the destination folder. Click "Save".

2. Open your VTS_??_0.IFO with IFOEdit, go to VTS_PGCITI and for each VTS_PGC_? click on File ---> Save celltimes to file.
If your titleset has got only 1 PGC, skip to step 4., otherwise go to next step.

3. Open the first CellTimes.txt with a text editor and append to it the values of the second one increased by the last value of the first *.txt. Append each CellTimes file, increasing its values by the current last number of the first file. Save the *.txt

4. Open IFOEdit and click on DVD Author ---> Author new DVD. Input all your streams (the new audio too) and the CellTimes.txt, select the destination directory and click OK.
Delete the new IFOs, keep only the new VOBs.

5. Open your new VTS_01_1.VOB with VOBEdit, click on "Demux" and check "CellID" and "Demux complete titleset". Click OK.

6. Open these new VOBs with Menu Edit and using "Change ID" reproduce the original VOB/cell ID sequence (you find it in the VTS overview of your original VTS_??_0.IFO). Pay attention: the sequence must continue through the VOBs!

7. Open the first VOB with VOBEdit and click on Edit ---> Join CellVobs files. Rename your new files according to your titleset number.

8. Take the VOBs and put them in your original VIDEO_TS folder overwriting the existing VOBs (it's a good idea to make a backup of the entire folder before you replace the VOBs).

9. Open VTS_??_0.IFO with IFOEdit. Go to VTSI_MAT and increase the number of audio streams in VTSTT_VOBS by 1. Go to VTS_PGCITI and for each VTS_PGC edit the new audio stream status: double click on it and insert a number which is the conversion from hexadecimal to decimal of the stream number followed by 00.
Examples:
Code:
Stream     HEX value     Decimal value

  80         8000           32768

  81         8100           33024

  82         8200           33280
Edit audio stream properties in VTS overview. SAVE and close.

10. Open VTS_??_0.IFO again, click on "VOB extras", we are going to do a mock strip. Select "Strip streams","Correct Vob-Unit (Navigation Pack) pointers in VOB files" and "correct original IFOs".
Uncheck "Autocopy menu-files to destination".
Click OK, check all your streams and click Strip it. Let IFOEdit process all your files.

11. Put all these files from IFOEdit in your VIDEO_TS folder and it should be OK! (I tested this method with PowerDVD and DVD Shrink).
__________________
vobclips.com: free vobclips for your reauthored DVDs.

Last edited by Dave82; 17th February 2004 at 20:32.
Dave82 is offline   Reply With Quote
Old 12th February 2004, 03:11   #2  |  Link
jorel
Guest
 
Posts: n/a
in step 8 :
menuedit runtime error trying to open the new VTS_01_1.vob.....
(abnormal program termination)(mfc42.dll..the prog will be closed)
something is wrong with my system(ME) or with menuedit?!?!

edited:
after reboot the system, menuedit is working very fine!
  Reply With Quote
Old 12th February 2004, 17:41   #3  |  Link
jorel
Guest
 
Posts: n/a
Dave,
i did all using a little cartoon(25 minutes)
and after the "disclaimers" the menu don't came
and the player stop!
i'm lost in step3....celltimes.
the movie have 7 vts_pcgs and his :
vts_pcg_1...406
vts_pcg_2...653
vts_pcg_3...160,2172
vts_pcg_4...12130,24902,37455,42659
vts_pcg_5...12130
vts_pcg_6...12772
vts_pcg_7...12553

i did only one celltimes.txt using all values...don't work!
i'm loosing here:

"But you mustn't insert these values: you have to add to each one the last frame value of the previous PGC (and so, within the same PGC, you'll add the same value to each frame number). Save the *.txt "

sorry,i don't understand how to do the celltime.txt.
can you use the values posted and use to build the right celltimes?

thanks!

ps:
sometimes menuedit give the same runtime error and close.
  Reply With Quote
Old 12th February 2004, 18:48   #4  |  Link
Dave82
vobclips.com
 
Dave82's Avatar
 
Join Date: Jul 2003
Location: Piacenza (North of Italy)
Posts: 220
Yeah, maybe I didn't explain it very well...
So, in your case:
Code:
            Frames    Cell times      CellTimes.txt
vts_pgc_1   406          406             406
vts_pgc_2   653        406+653           1059
vts_pgc_3   160       1059+160           1219
            2172      1059+2172          3231
vts_pgc_4   12130     3231+12130         15361
            24902     3231+24902         28133
            37455     3231+37455         40686
            42659     3231+42659         45890
vts_pgc_5   12130    45890+12130         58020
vts_pgc_6   12772    58020+12772         70792
vts_pgc_7   12553    70792+12553         83345
Let me know if this works for you.
I think I'll edit the guide to make it more clear
BTW, maybe your uncorrect celltimes.txt caused the errors in MenuEdit...
__________________
vobclips.com: free vobclips for your reauthored DVDs.
Dave82 is offline   Reply With Quote
Old 12th February 2004, 19:33   #5  |  Link
jorel
Guest
 
Posts: n/a
now is very clear Dave!

my celltimes was(is) uncorrect.

i'm trying and post the result later.

thanks again!
  Reply With Quote
Old 14th February 2004, 02:03   #6  |  Link
jorel
Guest
 
Posts: n/a
hi Dave,

i have some news!

i got the 3 audios, menu,etc working with some "changes"
that i "break my head" to found cos i don't knew
the ifoedit,vobedit and menuedit progs.

i follow the guide but the menu don't came....then
i compare the ifos and vobs and found a "solution"...
using a little cartoon as sample with 2 vobs(main movie),
the first with 0,99gb and the second with 155mb
and 1,15 gb total before the new audio(original vobs,main movie).
from steps 1 to 5,all is ok(using the celltimes that you posted.)

after step 5 with one more mp2 audio
i got 8 vobs with 1,19gb total size.

in step 6:
if the vts.vobs group have more than ~870 mb,
(*)menuedit crash(in step 8),then i did:
from vts_01_001 to vts_01_005 with 406mb in the first folder,
and from vts_01_006 to vts_01_008 with 813mb in the second folder!

(*)menuedit crash too if i try to open the original vobs with 0,99gb!
don't know the reason!


in step 7 :
open the first vob of the first folder in vobedit,click in
edit--->join clips--->save!
after this vob edit ask about "first vob id"..
1 is ok for the first group!

now open the first vob from the second folder in vobedit,click in
edit--->join clips--->save!
vobedit will ask again about "first vob-id"...
was used 6 for the second group!!!
see the first vts from the second folder:
vts_01_006 !

if use " Join CellVob files " i got in menuedit:
only one "vob ID" with 5 "cell ID" from the first folder and
only one "vob ID" with 3 "cell ID" from the second folder
but using :
"join clips",save and the "first vob id" from each folder,
i got 5 "vob id" from the first folder
and 3 "vob id" from the second folder.
was needed only adjust all the "cell id" values and

bingo!

the chapters,menu,sound selection ...all is working but

got a new problem:
the 3 audio channels are out of sincro with the video!

...... i did all (many times) again and
don't know the reason of this problem and how can i solve this!

please Dave,send more hints.
thanks in advance
  Reply With Quote
Old 14th February 2004, 02:46   #7  |  Link
Dave82
vobclips.com
 
Dave82's Avatar
 
Join Date: Jul 2003
Location: Piacenza (North of Italy)
Posts: 220
Quote:
i got 8 vobs with 1,19gb total size.
There's something wrong here...if you used the celltimes I posted you should have 11 VOBs, not 8!
Quote:
the 3 audio channels are out of sincro with the video!
These 2 things make me suspect you're trying to add the new audio just to some PGCs, not to all the titleset. If I am right, be careful: you can't do that, all the parts of a titleset must have the same A/V features, there can't be different PGCs!
Quote:
from vts_01_001 to vts_01_005 with 406mb in the first folder,
and from vts_01_006 to vts_01_008 with 813mb in the second folder!
You're right, you don't need to rename the files in each folder to start from 001, I'll edit the guide!
Quote:
if use " Join CellVob files " i got in menuedit:
only one "vob ID" with 5 "cell ID" from the first folder and
only one "vob ID" with 3 "cell ID" from the second folder
Sorry, you're right again, you must use Join Clips every time...
Quote:
was used 6 for the second group!!!
This is useless (VOB ID 1 is always OK) since in step 8 you're going to edit every ID with MenuEdit (BTW, you seem to have some problems with this program )
__________________
vobclips.com: free vobclips for your reauthored DVDs.
Dave82 is offline   Reply With Quote
Old 14th February 2004, 20:52   #8  |  Link
jorel
Guest
 
Posts: n/a

Dave,this post is too big but i'm trying to write extreme details,ok?

thinking....."what i did wrong?!?!"
i trash everything and restart from zero.

rip the cartoon with dvddecrypter3190 (file mode)
and backup again in another folder....the files:
video_ts.bup --- 12k
video_ts.ifo --- 12k
vts_01_0.bup --- 42k
vts_01_0.ifo --- 42k
vts_01_0.vob --- 1,71mb - menu
vts_01_1.vob --- 0,99gb - main movie
vts_01_2.vob --- 155mb - main movie
vts_02_0.bup --- 14k
vts_02_0.ifo --- 14k
vts_02_0.vob --- 0 bytes
vts_02_1.vob --- 123mb - extras (3 little cartoons,~1 minute each)
vts_03_0.bup --- 20k
vts_03_0.ifo --- 20k
vts_03_0.vob --- 0 bytes
vts_03_1.vob --- 464mb - extras2(4 little cartoons,~9 minutes,30 seconds)

total size of the cartoon is 1,72gb !

step 1:
VTS_01_1.VOB with VOBEdit, click on Demux,....did ok and got:
vts_01_1.m2v --- 1,02gb - video
vts_01_1.80.ac3 --- 34,9mb - ac3-2 channels
vts_01_1.81.ac3 --- 69,4mb - ac3-5.1 channels
that was used to do the new mp2 file at 256 bitrate-48k(no resample):
vts_01_1.81.mp2 --- 46,3mb
all files are ok tested in powerdvd,winamp,soundforge!

steps 2 and 3:
vts_01_0.ifo in ifoedit(vts overview):
from pgc_1 to pgc_7
pgc_3 with 2 cells(01,02)
pgc_4 with 4 cells(01,02,03,04)
the remainders with 1 cell each
total 11 cells in 7 pcgs!
in vts_pgciti in ifoedit have (of course) 7 pgcs too.
the celltimes are the same posted that you correct for me!
(celltimes have 11 numbers like posted)

step 4:
ifoedit dvd author using all streams demuxed,
the new mp2 and celltimes that got:
vts_01_01.vob --- 0,99gb
vts_01_2.vob --- 202mb.
i open this vobs in powerdvd(as files)and the audio is out of sincro.
i load the ifos,select the 3 audios and they all are out of sincro too!
i did it before the new ifos and bups was trashed.

i open in vobedit the original vts_01_1.vob (ripped in hd)
and the new vts_01_1.vob (new with mp2) after step4 and got
using "get video/audio delay" :
original vts_01_1.vob:
video-delay:0
audio-delay id <80>:0

new vts_01_1.vob (new from step4):
video-delay:0
audio-delay id<80>:0
audio-delay id<81>:0
audio-delay id<c2>:0

then i stop cos i don't know where i did something wrong
and the reason of the 3 audios are out of sincro with the video!
if i follow the remainder of the guide,
i will got the menu working
but the audio out of sincro,like the last time that i did!


thanks again Dave!
  Reply With Quote
Old 14th February 2004, 21:30   #9  |  Link
Dave82
vobclips.com
 
Dave82's Avatar
 
Join Date: Jul 2003
Location: Piacenza (North of Italy)
Posts: 220
Quote:
i open this vobs in powerdvd(as files)and the audio is out of sincro.
Quote:
audio-delay id<80>:0
audio-delay id<81>:0
audio-delay id<c2>:0
I'm sorry, I really can't understand how VOBEdit could give you such information if the audio is out of synchro...
It's a stupid question, I know, but are you sure you didn't set any delay while authoring with IFOEdit?
Try to use ReJig to correct the A/V delay (even if VOBEdit says it's 0, just in case...)
Quote:
if i follow the remainder of the guide,
i will got the menu working
At least I'm happy of that
I suggest also to try with another DVD and see what happens...
__________________
vobclips.com: free vobclips for your reauthored DVDs.
Dave82 is offline   Reply With Quote
Old 14th February 2004, 22:04   #10  |  Link
jorel
Guest
 
Posts: n/a
really thank you Dave!

....and yes,i didn't set any delay while authoring!
the menu is working ok and the main movie have 3 audios!
i will try with another dvd and post!


ps:
you wrote:
"it's a stupid question, I know,..."
no,not stup...
all that i learn with this 3 progs was follow your guide.
before that, i don't knew anything about authoring dvds!
i thank you in the same way Dave!
my first steps with this progs was too big...
you have big patience and frienship!


  Reply With Quote
Old 16th February 2004, 05:58   #11  |  Link
Woodlake
Registered User
 
Join Date: Jan 2004
Posts: 28
Dave82,

Firstly - thanks for the guide
I have been playing with this for the last couple of days to see if I can get it to work, but I am having a couple of problems.
I chose a short Music DVD single to practice on - it has a couple of versions of a song and then some small 30sec clips. It is a multi PGC title BUT I think the reason I am having problems is that the vob/cell sequence is NOT in order. I have something like this;

PG1 v/c 1/1
PG2 v/c 6/1
PG3 v/c 2/1
PG4 v/c 3/1
PG5 v/c 4/1
PG6 v/c 5/1

It appears that when I strip the streams that they are stripped in PGC order? - so when I join the clips, everything apart from the first vob is out of order? I pressume this will also affect the way I should do the celltime.txt? - should I add cell times in "VOB order" rather than PGC order? When I look at the end results, my cells are not the same as the original.
My other problem is audio - all I did was to take the stripped audio stream (LPCM) and create a duplicate as an .ac3 file to see if I could add it. Now apart from the above problem, I find that with the default audio playing (the original) - it plays correctly but the VIDEO runs at twice normal speed!! If I switch to the ac3 track I added (on the fly) it play properly AND is in sync??
Any suggestions are welcome.....

Woodlake
Woodlake is offline   Reply With Quote
Old 16th February 2004, 20:41   #12  |  Link
jorel
Guest
 
Posts: n/a
Dave,

why dvd2avi project show -67ms audio-delay and
vobedit audio-delay id<80>:0 using the same source?

edited:
and ripping with smartripper i got the same -67ms!
rip method=files mode

***************
* Stream Info *
***************

Stream[001] X=[[0xE0] Video NTSC 720x480] [PTS 0:01:52] [Delay 0 ms] [@1] []
Stream[002] X=[[0x80] Audio Portugues AC3(2Ch) 48kHz ] [PTS 0:00:45] [Delay -67 ms] [@7] [192 kb/s]
Stream[003] X=[[0x81] Audio Portugues AC3(6Ch) 48kHz ] [PTS 0:00:45] [Delay -67 ms] [@6] [384 kb/s]
Stream[004] X=[[0x??] Others] [] [] [] []

  Reply With Quote
Old 17th February 2004, 21:02   #13  |  Link
Dave82
vobclips.com
 
Dave82's Avatar
 
Join Date: Jul 2003
Location: Piacenza (North of Italy)
Posts: 220
I have edited the guide removing some (I think) useless stuff: please report if it still works (have a look at step 6,7,8,10).

@Woodlake
I don't know much about this stripping issue. To check what happened open your *.m2v with PowerDVD/WinDVD and see if your PGC 6/1 is in the same place as the original or has been moved to the end. If it's at the end just edit your CellTimes.txt appending the info from your 2nd PGC at the end. After demuxing by cellID rename the VOBs so that the last one becomes VTS_01_002 and the other ones (except the first one) are shifted by one. Then join the vobs (step 7) and it should be OK. Follow the other steps.
Quote:
I find that with the default audio playing (the original) - it plays correctly but the VIDEO runs at twice normal speed!! If I switch to the ac3 track I added (on the fly) it play properly AND is in sync??
I'm afraid I can't help you with this, try to do what I suggested to you here, and see if this issue comes out again

@jorel
I'm sorry, I've never used DVD2AVI, and I would like to know too why VOBEdit doesn't give the correct values...
Have you tried to reauthor with this delay? Is your project OK now?
BTW, jorel, are you a Smallville addicted like me?
__________________
vobclips.com: free vobclips for your reauthored DVDs.
Dave82 is offline   Reply With Quote
Old 17th February 2004, 21:15   #14  |  Link
2COOL
PGC Navigator in Training
 
2COOL's Avatar
 
Join Date: Oct 2002
Location: NTSC Land
Posts: 3,552
Quote:
Originally posted by jorel
Dave,

why dvd2avi project show -67ms audio-delay and
vobedit audio-delay id<80>:0 using the same source?

edited:
and ripping with smartripper i got the same -67ms!
rip method=files mode

***************
* Stream Info *
***************

Stream[001] X=[[0xE0] Video NTSC 720x480] [PTS 0:01:52] [Delay 0 ms] [@1] []
Stream[002] X=[[0x80] Audio Portugues AC3(2Ch) 48kHz ] [PTS 0:00:45] [Delay -67 ms] [@7] [192 kb/s]
Stream[003] X=[[0x81] Audio Portugues AC3(6Ch) 48kHz ] [PTS 0:00:45] [Delay -67 ms] [@6] [384 kb/s]
Stream[004] X=[[0x??] Others] [] [] [] []

@jorel

There's has been talk in past threads that VobEdit does not give out the right delay. My guess is that if ReJig is reporting the same delay as DVD2AVI and SmartRipper then, IMO, it is safe to assume that the delay of -67 is most likely true and I would go with that.
__________________
2COOL
2COOL is offline   Reply With Quote
Old 18th February 2004, 02:05   #15  |  Link
jorel
Guest
 
Posts: n/a
Dave,
i'm a smallville addicted too but not a superman's father!


2 cool,
welcome(back) to this tutor.
i search but not found where in past threads about vobedit's delay!
thanks for the information!


@ Dave and 2 cool:
thanks in advance.

i did all again (no lazy here...:-) )

after step 4,using dvdauthor with rejig and/or ifoedit,
adjusting -67 or not using the adjust,
using the news or the old ifos and bups i got
the same error in sincro....
the audio remains coming round 3 seconds before the video!
and without the new audio channel...
only using the 2 originals .ac3!

  Reply With Quote
Old 18th February 2004, 03:08   #16  |  Link
Woodlake
Registered User
 
Join Date: Jan 2004
Posts: 28
Thanks Dave82,

I will look into it some more....By the way, wasn't it determined earlier in the thread that step 7 should be "join clips" rather than "Join CellVobs files"?

Woodlake

OK - the navigation problems are solved - the celltimes.txt MUST be done in VobID order NOT PGC order.
Unfortunately, I still have my audio problems though. It's strange, it appears that IFOEDit doesnt like the LPCM audio track. If I do nothing apart from striping the video and audio out, then simply multiplex them together (using "Author new DVD") I have the problem with the video speed ??
Could someone please try to demux and multiplex a video and LPCM track (typically found on music DVD's) and see if they have any problems?

Last edited by Woodlake; 18th February 2004 at 12:53.
Woodlake is offline   Reply With Quote
Old 18th February 2004, 13:24   #17  |  Link
jorel
Guest
 
Posts: n/a
Woodlake wrote:
"... step 7 should be "join clips" rather than "Join CellVobs files"? "
right(works in my tests)

and

"... the celltimes.txt MUST be done in VobID order NOT PGC order."
here i'm lost.
where i got the celltimes.txt in vobid?


thanks!
  Reply With Quote
Old 18th February 2004, 13:49   #18  |  Link
Woodlake
Registered User
 
Join Date: Jan 2004
Posts: 28
Hi Jorel,

I guess I was unlucky and picked an odd DVD to try this on
The PGC's and VobId's are not in order and were structured like this:

Code:
PGC1  [Vob/Cell Id 1/1]   [Frames 7130]
PGC2  [V/C Id 6/1]        [Frames 6246]
PGC3  [V/C Id 2/1]        [Frames  760]
PGC4  [V/C Id 3/1]        [Frames  760]
PGC5  [V/C Id 4/1]        [Frames  810]
PGC6  [V/C Id 5/1]        [Frames  760]
Notice that VobId 6 is played 2nd. This means that my celltimes.txt would look like this:

Code:
VobId   frames    cell time      celltime.txt
---------------------------------------------
 1       7130        7130           7130
 2        760      7130+760         7890
 3        760      7890+760         8650
 4        810      8650+810         9460
 5        760      9460+760         10220
 6       6246      10220+6246       16466
----------------------------------------------
I'm guessing that generally the VobId and PGC's are usually in sequence - but if you come across one like this at least you will know what to do now

Woodlake
Woodlake is offline   Reply With Quote
Old 18th February 2004, 19:51   #19  |  Link
Dave82
vobclips.com
 
Dave82's Avatar
 
Join Date: Jul 2003
Location: Piacenza (North of Italy)
Posts: 220
Quote:
Originally posted by Woodlake
By the way, wasn't it determined earlier in the thread that step 7 should be "join clips" rather than "Join CellVobs files"?
That's because I moved the MenuEdit part to step 6, and so you need to do Join CellVob Files to keep the IDs you have adjusted. It's much easier this way, I removed all the group-in-folders part...
__________________
vobclips.com: free vobclips for your reauthored DVDs.
Dave82 is offline   Reply With Quote
Old 18th February 2004, 22:07   #20  |  Link
jorel
Guest
 
Posts: n/a
Dave,
another prog to demux the audio and video streams?
i think(but have doubt)that vobedit give the sincro error!

  Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:57.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.