Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: DVD creation with subtitles



Thanks for the script, i've followed the code and made an own
dvd.xml-file that looks like this:

<dvdauthor dest="/rec/tst/DVD2/">
  <titleset>
    <titles>
      <audio lang='se' />
      <subpicture lang='se' />
      <pgc>
        <pre> subtitle=62; </pre>
          <vob file='/rec/tst/movie.mpg'
            chapters='0' pause='0'/>
       </pgc>
    </titles>
  </titleset>
</dvdauthor>

I've extracted the subtitles with cat 001.vdr | dvbtextsubs -vdr 199 >
subtitles.xml.

Subtitles.xml looks like this:

<?xml version="1.0" encoding="iso-8859-1" ?>
<subpictures>
  <stream forced="no">
    <spu lang="se" start="0:00:00.740" end="0:00:05.800">
      <line row="20" col="4"><white>Martin kör dig, så att du
kan</white></line>
      <line row="22" col="4"><white>hämta pengarna du har grävt
ner.</white></line>
    </spu>
    <spu lang="se" start="0:00:06.180" end="0:00:10.620">
      <line row="20" col="4"><white>-Vilka pengar?</white></line>
      <line row="22" col="4"><white>-Dem du yrade om.</white></line>
    </spu>
    <spu lang="se" start="0:00:10.940" end="0:00:16.200">
      <line row="20" col="4"><white>-Du sa att du måste hämta dem
nu.</white></line>
      <line row="22" col="4"><white>-Ni har gjort tillräckligt för
mig.</white></line>
    </spu>
  </stream>
</subpictures>

I then use xml2spumux to create the png files, I get three *.png-files
that looks correct (the right text at the right place) and a
spumux.xml-file that looks like:

<subpictures><stream><spu start="0:00:00.740" end="0:00:05.800"
image="sub00001.png" />
<spu start="0:00:06.180" end="0:00:10.620" image="sub00002.png" />
<spu start="0:00:10.940" end="0:00:16.200" image="sub00003.png" />
</stream></subpictures>

Finally I run dvdauthor -x dvd.xml and make an ISO of the result.

The output is still the same though, when the subs should appear the
picture greys out except for the part of the picture where the subtitles
should be, which seems to be transparent (That is, the only moving
pictures is where the subs should appear).

If I extract the subs they look like
http://www.kramforsfotboll.com/after.bmp

If I run dvdauthor without "-x dvd.xml" and with "-s "se" -o
/rec/tst/DVD2" instead the result is the same.

Any ideas?

Best Regards,
Mattias Viberg

> -----Ursprungligt meddelande-----
> Från: vdr-bounce@linuxtv.org [mailto:vdr-bounce@linuxtv.org] 
> För Sean Carlos
> Skickat: den 3 december 2004 09:18
> Till: vdr@linuxtv.org
> Ämne: [vdr] Re: SV: Re: DVD creation with subtitles
> 
> 
> On Fri, 2004-12-03 at 00:59, Mattias Viberg wrote:
> > > Hi, I did a lot testing with subtitles some months ago, and
> > > it is working now.
> > > 
> > > Version 0.3 of dvbtextsubs is not working as well as version
> > > 0.2, if you start from the beginning of a film, I do not know 
> > > why. Try version 0.2, too. You can find it at 
> > > http://www.linuxstb.org/dvbtextsubs.
> > > 
> > > I did have same kind of
> > > problems with subtitle colors, too. I had installed new 
> > > version of Dvdauthor, but some old version from Mandrake 
> > > installation was still there, and it was found before the new 
> > > one. When I removed it, I have got subtitle colors correctly. 
> > > I have now DvdAuthor version 0.6.10.
> > 
> > I'm running version 0.6.10 of both vdrauthor and spumux, and 0.2 of 
> > dvbtextsubs, and still the colors gets weird.
> > 
> > I'm running out of ideas...
> > 
> > Best Regards, Mattias Viberg
> > 
> > 
> 
> Mattias, I am sending you separately a wrapper script that I 
> developed to extend vdrsync.pl to include teletext subtitle 
> support.  The script is not yet clean enough for general 
> distribution, BUT you'll see the exact syntax that "works for me".
> 
> I'm using dvdauthor 0.6.10, a modified version of dvbtextsubs 
> 0.2 (it is
> true: 0.3 does not work - so I back-ported the -pts 
> functionality from 0.3 to 0.2) and xml2spumux from dvbsubs 
> 0.3 (the newer version allows you to specify the font, so you 
> don't have to use the default teletext
> font.)
>  
> An uneducated guess is that MAYBE there is a problem with the 
> commands you're using to create the DVD with dvdauthor - 
> compare the dvdauthor dvd.xml instruction file that my script 
> generates with what you've been using. 
> 
> Good luck,
> 
> Sean 
> 
> 
> 
> 





Home | Main Index | Thread Index