[mythtv] [PATCH] subtitles in mtd

Xavier Hervy maxpower44 at tiscali.fr
Thu Apr 29 05:02:30 EDT 2004


Hi,

this patch correct transcode command when subtitles is needed.
If you want clipping the video and add subtitles, the subtitle can be 
out of video.
This patch adjust the subtitle with the clipt2bottom param.
Be carrefull, this don't work with transcode-0.6-10 because extsub have 
some bug but this work with transcode-0.6-12
Xavier
-------------- next part --------------
Index: mythdvd/mtd/jobthread.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythdvd/mtd/jobthread.cpp,v
retrieving revision 1.15
diff -u -r1.15 jobthread.cpp
--- mythdvd/mtd/jobthread.cpp	13 Dec 2003 21:21:56 -0000	1.15
+++ mythdvd/mtd/jobthread.cpp	29 Apr 2004 08:53:14 -0000
@@ -802,18 +802,6 @@
     tc_arguments.clear();
     tc_arguments.append(tc_command);
     
-    //
-    //  Check if we are doing subtitles
-    //
-    
-    if(subtitle_track > -1)
-    {
-        tc_arguments.append("-x");
-        tc_arguments.append("vob");
-        tc_arguments.append("-J");
-        tc_arguments.append(QString("extsub=%1").arg(subtitle_track));
-    }
-    
     
     //
     //  Now *that* is a query string !
@@ -888,6 +876,18 @@
                two_pass = a_query.value(23).toBool();
     
     //
+    //  Check if we are doing subtitles
+    //
+    
+    if(subtitle_track > -1)
+    {
+        tc_arguments.append("-x");
+        tc_arguments.append("vob");
+        tc_arguments.append("-J");
+        tc_arguments.append(QString("extsub=track=%1:vertshift=%2").arg(subtitle_track).arg(cliptbottom));
+
+    }
+    //
     //  And now, another query to get frame rate code and
     //  input video dimensions from the dvdinput table
     //


More information about the mythtv-dev mailing list