<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The HyRax Macrocosm &#187; Subtitles</title>
	<atom:link href="http://www.serenux.com/tag/subtitles/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.serenux.com</link>
	<description>Life, the Universe and Ubuntu.</description>
	<lastBuildDate>Tue, 10 Jan 2012 06:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Subtitle Downloader</title>
		<link>http://www.serenux.com/2008/12/subtitle-downloader/</link>
		<comments>http://www.serenux.com/2008/12/subtitle-downloader/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 19:57:51 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Review]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Subtitles]]></category>
		<category><![CDATA[Totem]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=218</guid>
		<description><![CDATA[I&#8217;m a big fan of simple applications that fill a big void or annoyance in life, and one of those annoyances is finding suitable subtitle files (.srt files) for your movie rips. To fill this void is a simple application called SubDownloader that does its best to crawl the &#8216;net for suitable subtitle files for [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m a big fan of simple applications that fill a big void or annoyance in life, and one of those annoyances is finding suitable subtitle files (.srt files) for your movie rips. To fill this void is a simple application called <a title="The SubDownloader" href="http://www.getdeb.net/app/SubDownloader" target="_blank">SubDownloader</a> that does its best to crawl the &#8216;net for suitable subtitle files for whatever movie you select in the file browser.</p>
<p><span id="more-218"></span>Download the application&#8217;s .deb file from the <a title="GetDeb Homepage" href="http://www.getdeb.net" target="_blank">GetDeb</a> website and install it with:</p>
<pre><span style="color: #000080;">$ sudo dpkg -i subdownloader_2.0.9-1~getdeb1_all.deb</span></pre>
<p>(or if you&#8217;re afraid of the command line, just double-click it within a window to launch the GUI version of the Package Installer instead &#8211; either way will take care of the QT4 and Python dependencies for you)</p>
<p>&#8230;and that&#8217;s it. now just fire it up from the <em>Applications-&gt;Sound &amp; Video</em> menu, browse to your movie folder and let the app find the subtitles for you. Sweet! <img src='http://www.serenux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/SubDownloaderInAction.jpg" target="_blank"><img title="Finding subtitles based on movie filenames" src="http://www.serenux.com/~hyrax/snaps/SubDownloaderInAction_thumb.jpg" alt="Click for full size" /></a></p>
<p>You don&#8217;t have to search by your collection, though &#8211; you can do a regular title search as well.</p>
<p><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/SubDownloader_SearchByTitle.jpg" target="_blank"><img title="Finding subtitles based on name search" src="http://www.serenux.com/~hyrax/snaps/SubDownloader_SearchByTitle_thumb.jpg" alt="Click for full size" /></a></p>
<p>The selected subtitles are then downloaded into the same directory as your source video, allowing you to execute them in Totem or other subtitle-supporting player right away.</p>
<p><a title="Click for full size" href="http://www.serenux.com/~hyrax/snaps/BatmanWithDownloadedSubtitles.jpg" target="_blank"><img title="Movie with downloaded subtitles" src="http://www.serenux.com/~hyrax/snaps/BatmanWithDownloadedSubtitles_thumb.jpg" alt="Click for full size" /></a></p>
<p>Simple, yet effective. This really should be in the Ubuntu repositories.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2008/12/subtitle-downloader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Create your own subtitles to display on video in Totem</title>
		<link>http://www.serenux.com/2008/11/howto-create-your-own-subtitles-to-display-on-video-in-totem/</link>
		<comments>http://www.serenux.com/2008/11/howto-create-your-own-subtitles-to-display-on-video-in-totem/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 03:11:45 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Subtitles]]></category>
		<category><![CDATA[Totem]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=155</guid>
		<description><![CDATA[Subtitles &#8211; a simple, but effective means of communication for speakers of non native languages and the hard-of-hearing. We see subtitles in DVD&#8217;s and on TV in various forms. It would be good to utilise subtitles for a home video that you have encoded to give to your parents or grandparents, both of whom are [...]]]></description>
			<content:encoded><![CDATA[<p>Subtitles &#8211; a simple, but effective means of communication for speakers of non native languages and the hard-of-hearing. We see subtitles in DVD&#8217;s and on TV in various forms.</p>
<p>It would be good to utilise subtitles for a home video that you have encoded to give to your parents or grandparents, both of whom are a little hard-of-hearing, but it&#8217;s an effort to add subtitles to a video, encode it again and it will ultimately bother those people who don&#8217;t need to view the subtitles.</p>
<p>You don&#8217;t have to encode the subtitles as part of the physical video, however. Most media players, including Ubuntu&#8217;s Totem have the ability to overlay subtitles on top of the video being played back. This allows you to create your own custom subtitles and be able to modify them as required without any need to re-encode the video.</p>
<p><span id="more-155"></span></p>
<p>So how do you create subtitles? Well, first up you need a transcript of the video you are subtitling. In this example, I&#8217;m going to use an old news story I have recorded from TV. The file is called GasLeak.mpg and is located in my ~/videos directory. To subtitle it, you need to create a text file with the same name as the video in the same directory, thus:</p>
<pre><span style="color: #000080;">gedit ~/videos/GasLeak.srt</span></pre>
<p>(note the .srt extension replaces the .mpg extension. This marks it as a subtitle file)</p>
<p>Your text editor will now appear with a clean slate. Move this window aside, but don&#8217;t close it.</p>
<p>Now fire up your video in Totem and let it play. As people speak, type what they say into GEdit. Use one line per sentence, thus in my case:</p>
<pre><span style="color: #000080;">Help at last for victims of the HIH collapse.
A gas leak brings a section of the city to a standstill.
And angry protests as our new Catholic Archbishop takes the reigns.</span></pre>
<p>&#8230;etc. Do this for the entire video. You may have to pause and rewind the video several times to keep up with transcribing.</p>
<p>Once you have the raw text down, now it&#8217;s time to format it so that Totem recognises it and knows when to display each line.</p>
<p>Each subtitle has to have a sequential number to identify it, plus a start and end time to display as follows:</p>
<pre><span style="color: #000080;">1
00:00:10,000 --&gt; 00:00:14,000
Help at last for victims of the HIH collapse.

2
00:00:14,000 --&gt; 00:00:18,000
A gas leak brings a section of the city to a standstill.

3
00:00:18,000 --&gt; 00:00:23,000
And angry protests as our new Catholic Archbishop takes the reigns.</span></pre>
<p>So above we have three subtitles numbered 1 through 3. After each number, we have the time period that each subtitle will appear for. The left-most numbers are the start-time for the subtitle in the form of HH:MM:SS,FFF (where HH is hours, MM is minutes, SS is seconds and FFF is hundredths of one second between 000 and 999), and the right-most numbers is the finish time for the subtitle in the same format.</p>
<p>The time given is the time of the video stream itself, so if you have an hour-long video, your subtitles will sequentially count in from from 00:00:00,000 all the way through to 01:00:00,000. In the above example, the first subtitle will appear 10 seconds into the video and will disappear at the 14 second mark (thus making the subtitle appear for a total of four seconds).</p>
<p>The second subtitle appears immediately after the first at 14 seconds and disappears at 18 seconds, and the third subtitle appears at 18 seconds and disappears at 23 seconds.</p>
<p>Save the file and fire up your video in Totem to see how what you&#8217;ve done so far looks.</p>
<div id="attachment_156" class="wp-caption alignnone" style="width: 160px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/subtitlenoformat.jpg"><img class="size-thumbnail wp-image-156" title="Subtitle example with no formatting" src="http://www.serenux.com/wp-content/uploads/2008/11/subtitlenoformat.jpg" alt="Our simple subtitle in all its glory" width="150" height="138" /></a><p class="wp-caption-text">Our simple subtitle in all its glory</p></div>
<p>If you cannot see the subtitles, it is possible that the feature is not enabled &#8211; go to Edit-&gt;Preferences and make sure the &#8220;Automatically load subtitle files when movie is loaded&#8221; at the middle-bottom of the window is checked in the General tab, then close Totem and re-open your movie.</p>
<div id="attachment_161" class="wp-caption alignnone" style="width: 148px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/totemsubtitleprefs.jpg"><img class="size-thumbnail wp-image-161" title="Totem Preferences - Subtitles" src="http://www.serenux.com/wp-content/uploads/2008/11/totemsubtitleprefs.jpg" alt="Totem Preferences showing Subtitle display options" width="138" height="150" /></a><p class="wp-caption-text">Totem Preferences showing Subtitle display options</p></div>
<p>Great! We now have working subtitles, but the timing is out. This is where you have to fine-tune the timings to the video and will require you to watch the video again, keeping an eye on the timer as you go. Just jot down the approximate whole seconds for when each subtitle should appear and go back and update the subtitle file accordingly.</p>
<p>Save and re-open your video. To further fine-tune the appearance of the subtitles, you can now edit the hundredths-of-a-second value to allow subtitles to appear at half a second instead of the whole second, etc. In my case, my tuned subtitle file now looks like:</p>
<pre><span style="color: #000080;">1
</span><span style="color: #000080;">00:00:10,500 --&gt; 00:00:14,000</span><span style="color: #000080;">
Help at last for victims of the HIH collapse.

2
00:00:14,500 --&gt; 00:00:18,000
A gas leak brings a section of the city to a standstill.

3
00:00:18,400 --&gt; 00:00:23,000
And angry protests as our new Catholic Archbishop takes the reigns.</span></pre>
<p>I tweaked the first subtitle to appear at 10.5 seconds, terminating at 14 seconds. The second title appears at 14.5 seconds and finishes at 18 seconds, and the third subtitle appears at almost 18.5 seconds and finishes at 23 seconds.</p>
<p>It may take some time, but once done, you will have a perfectly subtitled home video.</p>
<p>But wait, there&#8217;s more! You can enhance the subtitles a bit with italic and underline tags!</p>
<p>By enclosing your subtitle text in &lt;i&gt; and &lt;/i&gt; for italics and &lt;u&gt; and &lt;/u&gt; for underline, you can format the text a bit to highlight aspects of it, for example italics are generally used to subtitle a voice off-camera such as a narrator. As an example:</p>
<pre><span style="color: #000080;">1
</span><span style="color: #000080;">00:00:10,500 --&gt; 00:00:14,000</span><span style="color: #000080;">
&lt;i&gt;Help &lt;u&gt;at last&lt;/u&gt; for victims of the HIH collapse.&lt;/i&gt;
</span></pre>
<p><span style="color: #000000;">Which will italicise the entire subtitle, and underline just the words &#8220;at last&#8221;.</span></p>
<div id="attachment_159" class="wp-caption alignnone" style="width: 160px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/medressubtitle.jpg"><img class="size-thumbnail wp-image-159" title="Subtitles on a 384x288 size video" src="http://www.serenux.com/wp-content/uploads/2008/11/medressubtitle.jpg" alt="Formatted subtitle with italic and underline" width="150" height="138" /></a><p class="wp-caption-text">Formatted subtitle with italic and underline</p></div>
<p>Now this is all well and good, but the subtitles still look kinda small. Can we make them bigger? Well, the actual font size is determined by Totem&#8217;s font size setting under Edit-&gt;Preferences-&gt;General (by default it&#8217;s 20 points), but generally the resolution of the source video will ultimately govern how that font physically appears. Here&#8217;s an example of the same video clip in low, medium and high resolutions using the same subtitle file:</p>
<div class="mceTemp">
<table border="0">
<tbody>
<tr>
<td>
<p><div id="attachment_158" class="wp-caption alignnone" style="width: 160px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/lowressubtitle.jpg"><img class="size-thumbnail wp-image-158" title="Subtitles on a 192x144 size video" src="http://www.serenux.com/wp-content/uploads/2008/11/lowressubtitle.jpg" alt="Subtitles on a 192x144 size video" width="150" height="138" /></a><p class="wp-caption-text">Subtitles on a 192x144 size video</p></div></td>
<td>
<p><div id="attachment_159" class="wp-caption alignnone" style="width: 160px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/medressubtitle.jpg"><img class="size-thumbnail wp-image-159" title="Subtitles on a 384x288 size video" src="http://www.serenux.com/wp-content/uploads/2008/11/medressubtitle.jpg" alt="Subtitles on a 384x288 size video" width="150" height="138" /></a><p class="wp-caption-text">Subtitles on a 384x288 size video</p></div></td>
<td>
<p><div id="attachment_157" class="wp-caption alignnone" style="width: 160px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/dvdressubtitle.jpg"><img class="size-thumbnail wp-image-157" title="Subtitles on a 720x576 size video" src="http://www.serenux.com/wp-content/uploads/2008/11/dvdressubtitle.jpg" alt="Subtitles on a 720x576 size video" width="150" height="138" /></a><p class="wp-caption-text">Subtitles on a 720x576 size video</p></div></td>
</tr>
</tbody>
</table>
</div>
<p>As you&#8217;ve already noticed, Totem will word-wrap long subtitles, but sometimes this can result in orphaned words. You can make your subtitles even more readable by breaking them up into multiple lines, eg:</p>
<pre><span style="color: #000080;">1
</span><span style="color: #000080;">00:00:10,500 --&gt; 00:00:14,000</span><span style="color: #000080;">
&lt;i&gt;Help &lt;u&gt;at last&lt;/u&gt; for
 victims of the HIH collapse.&lt;/i&gt;</span></pre>
<p>Will make the subtitle appear as follows:</p>
<div id="attachment_160" class="wp-caption alignnone" style="width: 160px"><a href="http://www.serenux.com/wp-content/uploads/2008/11/subtitlemultiline.jpg"><img class="size-thumbnail wp-image-160" title="Subtitle broken into multiple lines" src="http://www.serenux.com/wp-content/uploads/2008/11/subtitlemultiline.jpg" alt="Subtitle broken into multiple lines" width="150" height="143" /></a><p class="wp-caption-text">Subtitle broken into multiple lines</p></div>
<p>&#8230;which looks much nicer.</p>
<p>That&#8217;s basically it! Now when you email/post the video to your folks, make sure the .srt file accompanies it in the same directory and Totem will automagically open it and utilise the subtitles. Should you want to turn the subtitles off without deleting the .srt file, simply go to View-&gt;Subtitles-&gt;None while the video is playing in Totem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2008/11/howto-create-your-own-subtitles-to-display-on-video-in-totem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

