Aditional subs into a DVD?
DVD-Software.info Forum Index DVD-Software.info
Your one stop source for DVD Software
 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Aditional subs into a DVD?
 
Post new topic   Reply to topic    DVD-Software.info Forum Index -> DivX
Author Message
Glitch
Guest





Posted: Thu Nov 11, 2004 7:45 pm    Post subject: Aditional subs into a DVD? Reply with quote

Is there a way to add aditional subtitles to a DVD movie if files on the
DVD are in a .VOB format?

Back to top
Jan Panteltje
Guest





Posted: Fri Nov 12, 2004 1:08 am    Post subject: Re: Aditional subs into a DVD? Reply with quote

On a sunny day (Thu, 11 Nov 2004 15:45:22 +0100) it happened Glitch
<Glitch_120@yahoo.com> wrote in <cmvtu0$1qp$1@bagan.srce.hr>:

Quote:


Is there a way to add aditional subtitles to a DVD movie if files on the
DVD are in a .VOB format?
Actually there are several ways, best way is to completely re-author the DVD.

But what has that to do with DivX?
Anyways if you use Linux you could look at my site
http://panteltje.com/panteltje/dvd/
Use perhaps transcode to extract old subs, write additional subs with xste
subtitle editor, remux, and re-author using dvdwizard.....

Some time ago I found on www.vcdhelp.com several desriptions how to add a sub
channel in windows, using ifo.edit, but even then re-autoring was recommended I
think. That would set you back several 100 $ for an authoring program that
supports subs in MS windows.
How about going DivX, and put some .srt files ?
JP
Back to top
Glitch
Guest





Posted: Fri Nov 12, 2004 1:08 am    Post subject: Re: Aditional subs into a DVD? Reply with quote

Jan Panteltje wrote:
Quote:
Actually there are several ways, best way is to completely re-author
the DVD.
But what has that to do with DivX?
Anyways if you use Linux you could look at my site
http://panteltje.com/panteltje/dvd/
Use perhaps transcode to extract old subs, write additional subs with xste
subtitle editor, remux, and re-author using dvdwizard.....


Is there a way I can encode the movie into Divx but that the quality
doesn't change much.I have the capacity of a full DVD disc because I
don't want no 2,3 or 4 CDs Divx.How can I encode .Vob files?

btw.I'm sorry for posting this in a Divx group but I didn't find another
group that was more 'suitable',so to say.
Back to top
Glitch
Guest





Posted: Sun Nov 14, 2004 12:04 am    Post subject: Re: Aditional subs into a DVD? Reply with quote

Jan Panteltje wrote:
Quote:
How good the end result will be also depends on how much you want to twiddle
and experiment, but DivX is capable of stunning good quality.
DivX will let you fit a lot more on a DVD then the normal 2 hours.

I know I'm becoming a pain,but I have one more question.
Is there a way that I can demultiplex the .vob,then add the subtitles
and then return the whole DVD back to .vob?
Back to top
Jan Panteltje
Guest





Posted: Sun Nov 14, 2004 12:04 am    Post subject: Re: Aditional subs into a DVD? Reply with quote

On a sunny day (Thu, 11 Nov 2004 22:37:15 +0100) it happened Glitch
<Glitch_120@yahoo.com> wrote in <cn0m29$3l6$1@bagan.srce.hr>:


Quote:
Is there a way I can encode the movie into Divx but that the quality
doesn't change much.I have the capacity of a full DVD disc because I
don't want no 2,3 or 4 CDs Divx.How can I encode .Vob files?
A vob you have to demultiplex first in to a mpeg2 stream, and sound an

subtitle channels.
There is of cause always a little bit of quality loss going from mpeg2
to divx, and how 'good' the end result will be depends on if you use
1 pass or 2 pass encoding, deinterlace perhaps, and bit rate from source
and what you will use.
To demux vob in MS windows there are several programs, go to www.vcdhelp.com
perhaps, for Linux use transcode with xvid or divx, vob2sub, srttool perhaps.


Quote:
btw.I'm sorry for posting this in a Divx group but I didn't find another
group that was more 'suitable',so to say.
OK no problem.

Most of the new standalone DivX players will play a Divx File on DVD with
ISO image, and you can select a subtitle file I think.
So in such a case adding a language for example is not too difficult.

How good the end result will be also depends on how much you want to twiddle
and experiment, but DivX is capable of stunning good quality.
DivX will let you fit a lot more on a DVD then the normal 2 hours.
Then there is rec.desktop.video newsgroup too for DVD.
JP
Back to top
Jan Panteltje
Guest





Posted: Sun Nov 14, 2004 6:00 pm    Post subject: Re: Aditional subs into a DVD? Reply with quote

On a sunny day (Sat, 13 Nov 2004 21:50:48 +0100) it happened Glitch
<Glitch_120@yahoo.com> wrote in <cn5s36$3bm$1@bagan.srce.hr>:

Quote:


Jan Panteltje wrote:
How good the end result will be also depends on how much you want to twiddle
and experiment, but DivX is capable of stunning good quality.
DivX will let you fit a lot more on a DVD then the normal 2 hours.

I know I'm becoming a pain,but I have one more question.
Is there a way that I can demultiplex the .vob,then add the subtitles
For Linux, if the vob consisted of several parts, I would do it like this

perhaps:
Lets have a look at a complicated DVD with 4 sub channels and 8 audio channels:

panteltje:~# mount /dev/dvd /dvd
mount: block device /dev/dvd is write-protected, mounting read-only
panteltje:~# l /dvd
total 4
dr-xr-xr-x 1 root root 2048 Sep 13 2003 audio_ts
dr-xr-xr-x 1 root root 2048 Sep 29 21:15 video_ts
panteltje:~# l /dvd/video_ts
total 1431082
-r-xr-xr-x 1 root root 40960 Sep 29 21:12 vts_01_0.ifo
-r-xr-xr-x 1 root root 40960 Sep 29 21:12 vts_01_0.bup
-r-xr-xr-x 1 root root 1073709056 Sep 29 21:14 vts_01_1.vob
-r-xr-xr-x 1 root root 391624704 Sep 29 21:15 vts_01_2.vob
-r-xr-xr-x 1 root root 6144 Sep 29 21:15 video_ts.ifo
-r-xr-xr-x 1 root root 6144 Sep 29 21:15 video_ts.bup

Now to get a mpeg with ONE sub and ONE audio channel from this fragmented vob:
mplayer -aid 0 -sid 0 -dumpstream /reiser/q1 dvd://1

So here I ask mplayer to get title 1, auio 1, subtitle one into one stream,
named stream.dump.

Let's see what is in it now:
bbdmux stream.dump
bbDMUX - version 1.7, by Brent Beyeler (beyeler@home.com)
speed increases by, Apachez and Christian Vogelgsang

Scanning for stream id's, press control-c to quit ...

File stream.dump is an MPEG-2 Program Stream

Found stream id 0xE0 = Video Stream 0
Found stream id 0xC0 = MPEG Audio Stream 0
Found stream id 0xBE = Padding Stream
Found stream id 0xBD = Private Stream 1

So, and we passed the 1073709056 bytes already:
ls -l stream.dump
-rw-r--r-- 1 root root 1452515328 Nov 14 13:54 stream.dump

So now we have ONE big file, and not a fragmented vob.
We can play this file and chack if audio and subs are there
mplayer -aid 0 -sid 0 stream.dump

OK, now just for fun, wat sort of stream does mplayer make?
panteltje:# streamtype stream.dump
streamtype
Reading stream.dump
PS_STREAM
SIZE: 720x576
ASPECT: 4:3
FRAMERATE: 25
PROFILE: Main
LEVEL: Main
CHROMA: 4:2:0
PAL
MPEG2

So, nice PS stream.

Now we demux the audio, for example like this:
bbdmux stream.dump 0xC0 audio.mp2
bbDMUX - version 1.7, by Brent Beyeler (beyeler@home.com)
speed increases by, Apachez and Christian Vogelgsang

Saving stream 0xC0 into file audio.mp2...

File stream.dump is an MPEG-2 Program Stream

Now convert it to 44100 samples / second wave
mpg123 -s 44100 -w sound.wav audio.mp2

Also demux the video:
bbdmux stream.dump 0xE0 video.mpv

Use the video and audio with xste subtitle editor, to write your new subs.
Then select submux-dvd output, and let it generate a .sub file and bitmaps.

Now repeat previous game with mplayer for all audio an subtitle channels
you need.

You could then use linux transcode and perhaps sub2srt to rip the subs,
and input the .srt in xste, and make new bitmaps and a .sub, or use vob2sub
from submux-dvd to make a separate .sub and bitmaps.
(but I have not tried that), all that if you also want to keep the old subs.
Myeb you need to fiddle a bit or write a cript for submux-dvd format
requires some extra parameters,

The vob2sub format:
sub0008.bmp 00:01:28,77 00:01:31,85 488 80 122 496

The submux-dvd format:
frame40390.bmp 00:26:55:60 00:27:03:84 488 80 121 430 0 15 15 15 0 1 2 15

Just add the extra parameters for each line, they should all be the same....
Else experiment.... I wrote submux-dvd but can't remember exactly what it was,
have to look at the source....

Mux the video, all audio, and all subs with tcmplex-panteltje, into a new VOB.
Thne use submux-dvd as many times as you have subtitle channels to add these
to the vob.
So this new vob now has the extra subtitle channel.

Now automatically (with dvdwizard) or manually (with an xml script you write),
author the new DVD.

Simple, takes a sunday afternoon.....
All these programs and some example scripts are on
http://panteltje.com/panteltje/dvd/

For MS windows I really have not done that in MS windows, but I am sure
there are tools. Not many people write their own subs... But this question
has come up before.

So basically you demux everything, write the new subs, remux and re-author.
Since you have to do all that, you may as well go DivX.
Why not, I just recorded old westside-story last night from ARD, it is almost
6 GB, I have no dual layer burner, so.... Good for compression.

So, I have done my good deed for today ;-)

JP
Back to top
Jan Panteltje
Guest





Posted: Sun Nov 14, 2004 6:00 pm    Post subject: Re: Aditional subs into a DVD? Reply with quote

I want to follow up to this a bit, as the question was asked to me before,
I just did some tests (in Linux), to see if I could just add a subtitle to a
fragmented (one that consists of several parts) vob, and it all seems to work:
I did
cat vts_01_1.vob vts_01_2.vob > a.vob
Then demuxed it with bbdmux, and get correct sound for subtitle editor xste:
bbdmux stream.dump 0xC0 audio.mp2
mpg123 -s 44100 -w sound.wav audio.mp2
bbdmux stream.dump 0xE0 video.mpv
selected submux-dvd output in xste, then did

FILENAME2=movie-test
echo $FILENAME2

echo "use xste to make and output vfactor .113 subs, then press ENTER"
read user_reply
cd /root/.subtitles/$FILENAME2
submux-dvd \
-v 3 \
-s 4 \
-t .180 \
a.vob \
/root/.subtitles/$FILENAME2/$FILENAME2.sub \
subbed4.vob

dvdauthor \
-a mp2+en+1ch,mp2+nl+2ch,ac3+5ch+nl,ac3+5ch+ru,ac3+de+5ch,ac3+el+5ch,ac3+ta+5ch,ac3+iw+5ch \
-s nl,nl,nl,nl,en,xx \
-p /video/vie/test2/xste-palette.dat \
subbed4.vob

So, now 5 subtitle channels. (and plenty audio channels).

I am not sure if it is technically correct to 'cat'
the vts_01_1.vob vts_01_2.vob etc. (all of them in the same title)
together like this, but I get zero error messages and zero warnings
in the whole process.

The '-s 4' in the above script stands for the fifth subtitle channel I just
added, these start counting at zero, so if you only had one other sub it
should be -s 1.
I have burned a DVD and played it on teh Mustek 562, and looked
specifically at the point where the vobs were put together,
no problems I can see.

Subtitle timing may have to be adjusted, this was late, dunno why,
but you can specify that with the -t parameter in the script.

So, after this experiment I do conclude that using submux-dvd to add subtitles
to an existing vob works!

You still need to author, beause in the .IFO file where the player gets it's
info from, the correct bits must be set so you can actually SELECT that extra
subtitle (maybe in MS windows ifo-edit? maybe someone can port submux-dvd to
MS windows (no I am into other things) ).
Jp
Back to top
 
Post new topic   Reply to topic    DVD-Software.info Forum Index -> DivX All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Office Forum Access Forum Exchange Server

Powered by phpBB