<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
I'm planning to write a script that will take a mythtv TS (transport
stream) file and create an mpg PS (program stream) file with embedded
dvb subtitles, ready to author to dvd with dvdauthor. Mytharchive
doesn't seem to have this functionality. I don't have much scripting
experience so it will probably take me a while but I believe I've
worked out the necessary steps::<br>
<br>
* dump the recording's cutlist with mythcommflag -f ${file} --getcutlist<br>
<br>
* Use <a href="http://project-x.sourceforge.net/">projectx</a> to
demux and cut the recording, and also dump the dvb subtitles to son
format.<br>
<br>
* use the son2spu script from <a
 href="http://linvdr.org/mailinglists/vdr/2005/01/msg00314.html">here</a>
to&nbsp; convert the subtitles into an <a
 href="http://dvdauthor.sourceforge.net/doc/spumux.html">spumux</a>
compatible format. son2spu may need a little tweaking as it substitutes
some colours that probably don't need changing in the dvb subtitles of
my region (UK)<br>
<br>
* Use mplex to multiplex the audio and video files into a single mpeg2
program stream.<br>
<br>
* Use spumux to multiplex the subtitles into the PS file.<br>
<br>
Does a script already exist to do this? Any feedback on this plan would
be much appreciated.<br>
<br>
regards,<br>
<br>
drbob<br>
</body>
</html>