summaryrefslogtreecommitdiffstats
path: root/debian/transcode/transcode-1.1.7/docs/html/subtitles.html
blob: 3510f937db789b325b2c75794a3d35ce0fd03386 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
<html>
<head>
<title> Linux Video Stream Processing Tool - Examples</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="DVD, digital video, DV, encoder, divx,
DivX;-), lame, source, posix, avifile, opendivx, codec, linux, AC3,
program stream, video, audio, transcode, decoder, stream, YV12">
</head>

<body bgcolor=#CDB5CD>


<a name=top></a>
<table cellspacing="10" cellpadding="0" border="0" width="100%">
  <tr>
    <td align=left valign="top" width=30% bgcolor="#a0a0a0">
    <table border="0" cellpadding="10" cellspacing="3" font size=+2 bgcolor="#ffffff" width=100%>
      <td align="left" bgcolor="#e9e9e9"> <FONT
      FACE="Lucida,Helvetica"> <font>Subtitles:
      </font>
    </tr>
    <tr>

      <td>

	  This chapter gives a short introduction on handling and
	  processing subtitles with transcode and related programs.

	  <ul>
	    <li> <a href="#extsub"> <FONT FACE="Lucida,Helvetica">
		DVD subtitle overlay mode with <i> -J extsub</i></font></a> <p>
	    <li> <a href="#subrip"><FONT FACE="Lucida,Helvetica">
		generating subtitle files with <i>subrip</i></font></a><p>
	    <li> <a href="#subtitler"><FONT FACE="Lucida,Helvetica">
		adding custom subtitles with <i> -J subtitler</i></font></a><p>

	  </ul>
      </td>
    </tr>
</table>
</table>



<a name=extsub></a>
<table cellspacing="10" cellpadding="0" border="0" width="100%">
  <tr>
    <td align=left valign="top" width=30% bgcolor="#a0a0a0">
    <table border="0" cellpadding="10" cellspacing="3" font size=+2 bgcolor="#ffffff" width=100%>
      <td align="left" bgcolor="#e9e9e9">

      <font> DVD subtitle overlay mode </font>
    </tr>
    <tr>
      <td>

	  transcode provides a filter plugin <i> filter_extsub.so</i> for elementary DVD
	  subtitle rendering in connection with <i>-x vob</i>. Use it with<p>

	   <table>
	    <tr>
	      <td align=left valign="top" bgcolor="#ccffcc">
	      transcode [...] -J extsub=&lt;options&gt;</td>
	    </tr>
      </table><p>

      The option string looks as follows (all options default to 0): <p>

      <table>
	<tr>
	  <td align=left valign="top" bgcolor="#ccffcc">
	  s:h:t:f:w:a:b:p:q
	    </tr>
      </table><p>

      	<ul>

		  <li>  s  &nbsp; subtitle track id (0-31)<br>

		      Use <i>tcprobe -H N</i> with N>1 to find out
		      if subtitle any packs are available in the program stream.<p>


		  <li>  h  &nbsp; offset of subtitle with respect to bottom
		      of frame in rows.<br>

		      Subtitles are placed at the bottom of the
		      frame. Try this option to shift them up or down.<p>

		  <li>  t &nbsp;  global display start time correction
		      in msec.<br>
		      If you feel, subtitles are displayed not timely,
		      adjust it with this option. This will affect all subtitles.<p>


		  <li>  f  &nbsp; fast rendering, i.e., no anti-aliasing (0=off,1=on).<br>
		      Anti-aliasing of the font is performed by
		      default. Switch it of (1) if your font is tiny
		      and messed up by this feature.<p>


		  <li>  w &nbsp;  render on post-processing (0=off,
		      1=on).<br>
		      Setting this option to 1 will render the
		      subtitle on post-processing instead of pre-processing.
		      This may improve subtitle quality but makes no
		      sense after extensive resizing of the frame.<p>

		  <li>  a  &nbsp; graylevel value a (0-255).
		  <li>  b &nbsp;  graylevel value b (0-255).<br>
		      Make another subtitle color visible with full
		      intensity equal to 255. May lead to fatter fonts.<p>

		  <li>  p  &nbsp; assign subtitle color p [0-3] to
		      graylevel value a.
		  <li>  q  &nbsp; assign subtitle color q [0-3] to graylevel value b.<br>
		      Shuffle the color assignment by choosing another
		      subtitle color between 0 and 3. Useful for black fonts on white background.<p>

		</ul>
		<p>

		Example (1) changing color assignment:

		<ul>

		  <li>
		      <table>
			<tr>
			  <td align=left valign="top" bgcolor="#ccffcc">
			  -J extsub
			</tr>
		  </table>

		  this one looks not as expected without any further options.

		  <p>

		  <img align="top" src="mes0-00000.png"> <p>



	      <li>
		  <table>
		    <tr>
		      <td align=left valign="top" bgcolor="#ccffcc">
		      -J extsub=0:0:0:0:0:0:0:1:2
		    </tr>
	      </table>

	      shuffle the font color assignment
	      using 1:2 looks like this, but has an ugly 3D effect.

	      <p>

	      <img align="top" src="mes4-00000.png"> <p>

	  <li>
		  <table>
		    <tr>
		      <td align=left valign="top" bgcolor="#ccffcc">
		      -J extsub=0:0:0:0:0:0:0:1:3
		    </tr>
	      </table>

	      shuffle the color assignment using 1:3 looks better,
	      but shows white shadows that make the font fatter but blurry

	      <p>

	      <img align="top" src="mes5-00000.png"> <p>


	  <li>
		  <table>
		    <tr>
		      <td align=left valign="top" bgcolor="#ccffcc">
		      -J extsub=0:0:0:0:0:0:0:2:3
		    </tr>
	      </table>

	      shuffle the color assignment using 2:3 seems to be perfect.
	      Nice and smooth looking letters.
	      <p>

	      <img align="top" src="mes6-00000.png"> <p>


	  <li>
	      <table>
		<tr>
		  <td align=left valign="top" bgcolor="#ccffcc">
		  -J extsub=0:0:0:1:0:0:0:2:3
		</tr>
	  </table>

	  for comparison, we switch off anti-aliasing, see the difference?

	  <p>

	  <img align="top" src="mes7-00000.png"> <p>


	    </ul>

	    Example (2) adding another white color:

	    <ul>

	      <li>
		  <table>
		    <tr>
		      <td align=left valign="top" bgcolor="#ccffcc">
		      -J extsub
		    </tr>
	      </table>

	      this one looks already perfect without any options.

		  <p>

	      <img align="top" src="sub0-00000.png"> <p>


	      	      <li>
		  <table>
		    <tr>
		      <td align=left valign="top" bgcolor="#ccffcc">
		      -J extsub=0:0:0:1
		    </tr>
	      </table>

	      same as above with-out ant-aliasing.

		  <p>

	      <img align="top" src="sub1-00000.png"> <p>


	  <li>
	      <table>
		<tr>
		  <td align=left valign="top" bgcolor="#ccffcc">
		  -J extsub=0:0:0:0:0:0:255
		</tr>
	  </table>

	  We make switch another color to full intensity (white) to
	  make the subtitle appear fatter, maybe too much.

	  <p>

	  <img align="top" src="sub2-00000.png"> <p>


      <li>
	  <table>
	    <tr>
	      <td align=left valign="top" bgcolor="#ccffcc">
	      -J extsub=0:0:0:1:0:0:255
	    </tr>
      </table>

      The above fat one without anti-aliasing.

      <p>

      <img align="top" src="sub3-00000.png"> <p>





	</ul>


    </table>
</table>


<a name=subrip></a>
<table cellspacing="10" cellpadding="0" border="0" width="100%">
  <tr>
    <td align=left valign="top" width=30% bgcolor="#a0a0a0">
    <table border="0" cellpadding="10" cellspacing="3" font size=+2 bgcolor="#ffffff" width=100%>
      <td align="left" bgcolor="#e9e9e9">

      <font>generating subtitle files</font>
    </tr>
    <tr>
      <td>


	  Please find some documentation on Arne Driescher's
	  <i>subrip</i> program in the <code>contrib/subrip/</code> directory
	  or visit the  <a
	  href=http://subtitleripper.sourceforge.net/>project page</a>
	  for more information.
</table>
</table>



<a name=subtitler></a>
<table cellspacing="10" cellpadding="0" border="0" width="100%">
  <tr>
    <td align=left valign="top" width=30% bgcolor="#a0a0a0">
    <table border="0" cellpadding="10" cellspacing="3" font size=+2 bgcolor="#ffffff" width=100%>
      <td align="left" bgcolor="#e9e9e9">

      <font> generating custom subtitles</font>
    </tr>
    <tr>
      <td>


	  Please find some documentation on Jan Panteltje's
	  <i>subtitler</i> plugin in the <code>filter/subtitler/</code> directory
	  or visit the <a
	  href=http://www.home.zonnet.nl/panteltje/subtitles/>
	  project page</a>
	  for more information.

</table>
</table>


<!-- hhmts start -->
Last modified: Thu May 16 12:52:34 CEST 2002
<!-- hhmts end -->

</body> </html>