Log in

View Full Version : Adding an audio stream to an existing titleset


Pages : 1 [2]

jorel
25th February 2004, 00:09
Dave,
i did like posted...
everything is working but the chapters are in wrong place,
they came before the point after the menu!

observations:
after the menu when the movie start in pcg_4,
i see round 1 second from the final of the pcg_3.
remember that the menu is between pcg_3 and pcg_4!
the remainder is working:
menu,extras the 3 audios...etc!

...then the celltimes that i did must be wrong!
see the "new" celltimes(without cell 1) and correct please,
i can't think in another error:

653
813
2825
14995
27727
40280
45848

vts_pgc_2 653 653 653
vts_pgc_3 160 653+160 813
2172 653+2172 2825
vts_pgc_4 12130 2825+12130 14995
24902 2825+24902 27727
37455 2825+37455 40270
42659 2825+42659 45848

thanks!

:)

Dave82
25th February 2004, 12:49
delete the first value and subtract it from all the following values
I think you missed this part of my post ;)
So you have to subtract 406 (frames in your PGC 1) from all the values:
new celltimes.txt
653 -406 = 247
813 -406 = 407
2825 -406 = 2419
14995 -406 = 14589
27727 -406 = 27321
40280 -406 = 39874
45848 -406 = 45442

I hope now it works! :)

jorel
25th February 2004, 23:55
i did and the chapters still out of place!

Dave,
correct me if i'm wrong:

the last celltimes that you posted,
was using my last celltimes as reference,don't?
then it is wrong cos my last is wrong too,
this is the original celltime:
(see your second post in the first page)

406,1059,1219,3231,15361,28133,40686,45890

than the new celltimes will be (i think):
653
813
2825
14995
27727
40280
45484

right or wrong?
:confused:

another problem that i have:
like i posted before,
menuedit crash if i try to open vobs
with more than ~870mb!
don't find any reason.
it crash even if i try to open any original vob
from all dvds that i have!
:(

Dave82
26th February 2004, 00:07
Originally posted by jorel
than the new celltimes will be (i think):
653
813
2825
14995
27727
40280
45484
Yeah, try with these ones, I hadn't noticed they were wrong! :p
menuedit crash if i try to open vobs
with more than ~870mb!
I'm sorry, I can't help you with this kind of things :(

jorel
26th February 2004, 17:05
same result Dave!
:(
the chapters still out of place (remainder ok!).

after hours thinking...
why the chapters are wrong?!?!?

i open the vts_01_1.vob from the original dvd and
from the new authored in vdubmod to find differences.
nothing is wrong...,
using "edit-go to" in vdubmod,the frames and time are the same
in the vobs...nothing different,same image in the same frame,same time!

then i open the cell 1 (from step 5 of the guide)
and save as uncompressed rgb with vdubmod!
did the same with the cell 2.
now, see differences:

cell 1 as 1.avi show in "vdubmod-file information"
video stream-lenght-403 frames-00:13.44
audio stream-lenght-480768 samples-00:10.01---<time is different of video

cell 2 as 2.avi show in "vdubmod-file information"
video stream-650 frames-00:21.68
audio lenght-1041040 samples-00:21.68---<the same time of video

could be this different time on the audio from the cell 1
that give the overall error in the chapters?
have a way to "delete playback" in the cell 1 after reauthoring?

thanks Dave.....hard work, don't?!
:)

Dave82
26th February 2004, 19:40
video stream-lenght-403 frames-00:13.44
What's happened here? wasn't it 406 frames?
could be this different time on the audio from the cell 1
that give the overall error in the chapters?
To be honest, I don't know, but it seems strange to me, since chapters are based on video frames, not on audio.
have a way to "delete playback" in the cell 1 after reauthoring?
If you are going to delete the playback of the first cell, what about replacing it with a blank one (since it seems to be the one that causes every problem...)? Of course it makes sense to do it if, starting from cell 2, synchro and chapter points are OK...
Use BlankVob (http://www.iespana.es/jsoto/tools/blank_exe.zip) to create a blank cell. Rename it to VTS_01_001.VOB and use it instead of the one you already have in step 7. Before doing step 10 open your original VTS_01_0.IFO, go to VTS_PGCITI ---> PGC_1 and edit Playback Time (BCD) and Cell 1: playback time to 82 for PAL and to 213 for NTSC. Then go through the mock strip and the rest of the guide.
I hope it finally works, let's cross fingers, but having the first cell without audio it's really strange...

jorel
27th February 2004, 05:22
Dave,
i will kill this cartoon!
:p
without cell 1 nothing is change,the chapters errors remains the same!
:eek:

well,i'm using this cartoon cos the size is short (1,72gb full size)
comparing with other dvds,but give me big headache!

--->with or without the cell 1 after the menu i got:
(yes,you can remove cell 1 and nothing change after menu)
chapter 1 start ~4 seconds before the right point.
chapter 2 start ~15 sconds before the right point.
chapter 3 start ~27 seconds before the right point.
chapter 4 start ~40 seconds before the right point.
:mad:


"What's happened here? wasn't it 406 frames?"
yeah,have only 403 in cell 1 and 650 in cell 2!
the right values are 406 and 653!

i will try to find the values of time/frames "by hand"!
can't think in another way!

jorel
27th February 2004, 15:05
Dave,
is working!
:cool:

let me rewrite how i did,(i'm tired)
i post later!

ps:
nothing is wrong with your guide,
my dvd that needed more steps!
:)

Dave82
27th February 2004, 15:16
I'm really happy for you! :D :cool:
It seems like you picked a strange DVD! Now the other ones you'll do will look like a breeze!
I'm curious: how did you do?

jorel
29th February 2004, 23:32
Originally posted by Dave82
I'm really happy for you! :D :cool:
It seems like you picked a strange DVD! Now the other ones you'll do will look like a breeze!
I'm curious: how did you do?

@ Dave:
first....obrigado, gracia, thanks!
:)
you're amazing friend with big patience and great knowledge!
:cool:

now...shame on me: :o
believe,i did and forgot how i did and was needed restart
everything writing each pass till the end working from zero!
i had lots of folders from tests and forgot the passes!
:rolleyes: :p
please,
correct my words(poor english)or something wrong in this guide
that was made following your recomendations in this thread!

@ all:
my source is a dvd with 2 audio streams and the
first cell of the main movie had only one audio stream!
this was build for this case,with others dvds follow the Dave's guide!

i did one folder for each step, was easy to follow!

starting:
doing Celltimes:

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

B- 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 as CellTimes.txt

1- open in vobedit the vts_??_1.vob and choose
demux--> cell id--> demux complete title set .
click OK and choose the destination folder. Click "Save".

2- left alone the cell 1 (vts_??_001.vob) in the folder!
---> cell 1 will use used later in step 9 !
take the remainders cells (from vts_??_002.vob to the last cell)to another folder.

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

4- rename all vobs from vts_??_002.vob to the last cell
from vts_??_1.vob to vts_??_x.vob . ( "x" means:last cell )

5- 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".
*---> remember:left cell 1 alone, we will use it later!

6- recomendations if your new audio will be mp2 :
using BeSweet or HeadAC3he to encode mp2,
normalize to 97% or the new audio will give too loud volume
comparing with the ac3 from the source!

* hint: encode your new audio mp2 at the same bitrate
of the ac3-2channels or it can give sincro problems.(don't know why)

7- celltimes for this vobs:
take the CellTimes.txt created as explained in step A(doing Celltimes),
delete the first value and subtract this value from all the following values.
---> save as celltimesX.txt

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

9- take the cell 1 (vts_??_001.vob) from step 2 !
rename cell 1 as VTS_01_1.VOB,
then rename the new authored VOBs (with the new audio)
starting from VTS_01_2.VOB.
Open VTS_01_1.VOB in vobedit and click
demux--> cell id--> demux complete title set .
click OK and choose the destination folder. Click "Save".

10- 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!

11- 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.

12- 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).

13- 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.
observations:
the first cell in my dvd had only the first audio stream (80),
i encrease more 2 audios streams(81 and 82) like the reminders cells!

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.

12- 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.

13- 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 too).

14- end!

tested 2 times starting from zero (step 1)!
:)
working perfect...menus,chapters,audio streams,extras...everything!

dbasulto
10th March 2004, 19:46
i highly recommend REJIG (freeware) to remux the files instead of ifoedit. it gives you the option to do it on NTSC, as it has been documented that ifoedit cant do it.

jorel
11th March 2004, 00:51
all my sources are ntsc and don't had any problem!

but thanks for recommend Rejig,
i will use too, i'm doing the same with all my musicals!

:)

Malcolm
20th July 2004, 14:46
This whole process of adding an audio-stream is completely mechanical (no decisions to make...). Is there a change of automating this (at least partially) any time soon?
Either by extending one (or more) of the tools used (IfoEdit, VobEdit, ReJig).
Or by writing a tool that uses the other tools and does the rest automatically?

Why i ask for this?
See this thread for more:
Downrate audio? (http://forum.doom9.org/showthread.php?s=&threadid=79347)

Greetings,
Malcolm

t0tum
10th September 2004, 22:21
perhaps it was answered in previous posts.
When adding an extra subtitle stream there are few other steps involved?
Iam adding subs to notsubbed dvd. Followed ur steps even added subid to video_ts.ifo.
Still not able to select them.

EDIT: Forgot to remove user prohibits, its all ok now.

Sh4m4n
20th September 2004, 07:34
:devil: 4 days gone :angry:

5 days ago i have trouble with adding new audio to NTSC DVD.

IFOedit authoring DVD don't understand correct NTSC timing on CellTimes.txt. original DVD - 15 cells ; reautored 12 cells.
and when i lost huge time (all this days while wait 4 day pause after registering on forum.doom9.org) i try rejig. Rejig made all correct!!


PS: How i need correct original IFO if i add new sub to DVD?

[0000001c] Sub-Picture stream 1 status -2147483648 [80000000]
Sub-Picture stream 1 uses steream nr.(4:3) 0
Sub-Picture stream 1 uses steream nr.(wide) 0
Sub-Picture stream 1 uses steream nr.(letterbox) 0
Sub-Picture stream 1 uses steream nr.(pan&scan) 0
[00000020] Sub-Picture stream 2 status -2147483648 [80010101]
Sub-Picture stream 2 uses steream nr.(4:3) 1
Sub-Picture stream 2 uses steream nr.(wide) 1
Sub-Picture stream 2 uses steream nr.(letterbox) 1
Sub-Picture stream 2 uses steream nr.(pan&scan) 1
[00000024] Sub-Picture stream 3 status 0 [00000000]


what i mast set on [00000024] Sub-Picture stream 3 status[/b]

and what i mast do if i want swap 1 SUB with new one and place 1 to 3

Dave82
20th September 2004, 09:14
I think there's something wrong in your post: according to the hex value your Subpictures-stream 2 status should be -2147549441, and not the same as stream 1. I think you should edit the status value of stream 3 so that hex is 80020202, and so to -2147615234.
To swap the subtitles, just swap the two stream status values.
BTW, I'll soon edit the guide to something like "Adding an audio/subtitle stream to an existing titleset" ;)

Sh4m4n
20th September 2004, 09:37
oops, yes you right. -2147549441 (my mistype error)

thanx. i'll try. your value. (80020202, and so to -2147615234.)

BTW, can you teel how you calculate this value?

Dave82
20th September 2004, 09:41
It's very simple: 80020202 is an hexadecimal value, 2147615234 is the corresponding decimal value (I just used Windows calculator) ;)

r0lZ
20th September 2004, 11:00
You may edit the subpic and audio stream status easily with PgcEdit, in the PGC Editor. You will see the real stream assignments, not a cryptic hex number converted to a negative decimal!

Cappone
25th May 2010, 23:44
I've tried this method but the audio in the re-authored dvd is out of sync. I pretty new to this whole thing but I assume that the new audio has to be the same length as the movie.
Is there a way I can insert a slightly shorter audio into the dvd and have is synced with the video?

Ghitulescu
26th May 2010, 08:58
You have to process the audio separately, better in an audio editor (its length should be the same till the last milisecond), or in any audio-aware videoeditor (premiere & co).

raquete
25th November 2022, 20:14
Hi Dave82.
The guide works perfectly for DVDs, thank you. :thanks:
Have any guide to change the audio from mp4 video?

Emulgator
28th November 2022, 08:41
While that thread has been silent for 12 years, you may use MeGUI -> Tools -> Muxer -> MP4 Muxer

raquete
2nd December 2022, 04:39
Emulgator,
the good part is that this cool topic revives.
I was out from the forum for long time and don't know anythiing about " MeGUI -> Tools -> Muxer -> MP4 Muxer" but i :search: will help.
Thank you very much! :thanks: