<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Quick and dirty: mplayer config file</title>
	<atom:link href="http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/</link>
	<description>K.Mandla's blog of Linux experiences</description>
	<lastBuildDate>Mon, 11 Feb 2013 18:19:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Cheater</title>
		<link>http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/#comment-46530</link>
		<dc:creator><![CDATA[Cheater]]></dc:creator>
		<pubDate>Wed, 24 Nov 2010 19:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/#comment-46530</guid>
		<description><![CDATA[This got me thinking: how about fancy subtitles outside the video frame?

I had to add ass=1, ass-use-margins=1 and ass-font-scale=1.5 to the config file.

Getting framebuffer mplayer to do subtitles not overlaid on video while also running fullscreen got quite though, so in the end I had to resort to an script:

#!/bin/bash

vidheight=`mplayer -identify &quot;$1&quot; -ao null -vo null -frames 0 2&gt;/dev/null&#124;grep HEIGHT&#124;sed s/ID_VIDEO_HEIGHT=//`
vidw=`mplayer -identify &quot;$1&quot; -ao null -vo null -frames 0 2&gt;/dev/null&#124;grep WIDTH&#124;sed s/ID_VIDEO_WIDTH=//`

ratio=`echo &quot;1280/$vidw&quot;&#124;bc -l`

vidheight=`echo &quot;($vidheight*$ratio)/1&quot;&#124;bc`

vidnheight=$((800-$vidheight))
vidnheight=$(($vidnheight/2))

exec mplayer -ass-bottom-margin $vidnheight -ass-top-margin $vidnheight  -fs -vf scale=1280:-3 &quot;$1&quot;]]></description>
		<content:encoded><![CDATA[<p>This got me thinking: how about fancy subtitles outside the video frame?</p>
<p>I had to add ass=1, ass-use-margins=1 and ass-font-scale=1.5 to the config file.</p>
<p>Getting framebuffer mplayer to do subtitles not overlaid on video while also running fullscreen got quite though, so in the end I had to resort to an script:</p>
<p>#!/bin/bash</p>
<p>vidheight=`mplayer -identify &#8220;$1&#8243; -ao null -vo null -frames 0 2&gt;/dev/null|grep HEIGHT|sed s/ID_VIDEO_HEIGHT=//`<br />
vidw=`mplayer -identify &#8220;$1&#8243; -ao null -vo null -frames 0 2&gt;/dev/null|grep WIDTH|sed s/ID_VIDEO_WIDTH=//`</p>
<p>ratio=`echo &#8220;1280/$vidw&#8221;|bc -l`</p>
<p>vidheight=`echo &#8220;($vidheight*$ratio)/1&#8243;|bc`</p>
<p>vidnheight=$((800-$vidheight))<br />
vidnheight=$(($vidnheight/2))</p>
<p>exec mplayer -ass-bottom-margin $vidnheight -ass-top-margin $vidnheight  -fs -vf scale=1280:-3 &#8220;$1&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kolby</title>
		<link>http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/#comment-41821</link>
		<dc:creator><![CDATA[kolby]]></dc:creator>
		<pubDate>Fri, 29 Jan 2010 04:22:06 +0000</pubDate>
		<guid isPermaLink="false">http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/#comment-41821</guid>
		<description><![CDATA[Hey, the really-quiet option was a life saver when using screen+mplayer, a line of text would bleed in. It stills shows a blinks &#039;_&#039; through the video though when using screen, do you know of anyway around this?]]></description>
		<content:encoded><![CDATA[<p>Hey, the really-quiet option was a life saver when using screen+mplayer, a line of text would bleed in. It stills shows a blinks &#8216;_&#8217; through the video though when using screen, do you know of anyway around this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike21091</title>
		<link>http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/#comment-41796</link>
		<dc:creator><![CDATA[mike21091]]></dc:creator>
		<pubDate>Tue, 26 Jan 2010 19:34:12 +0000</pubDate>
		<guid isPermaLink="false">http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/#comment-41796</guid>
		<description><![CDATA[Thanks for the config! It was quite useful for my EEE pc when using dvtm (Which I learned about on this blog).

PS: I&#039;ve been following this blog for about 2 years and learned quite alot.]]></description>
		<content:encoded><![CDATA[<p>Thanks for the config! It was quite useful for my EEE pc when using dvtm (Which I learned about on this blog).</p>
<p>PS: I&#8217;ve been following this blog for about 2 years and learned quite alot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: p0ng</title>
		<link>http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/#comment-41794</link>
		<dc:creator><![CDATA[p0ng]]></dc:creator>
		<pubDate>Tue, 26 Jan 2010 16:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://kmandla.wordpress.com/2010/01/26/quick-and-dirty-mplayer-config-file/#comment-41794</guid>
		<description><![CDATA[Hi K.Mandla! I&#039;m impressed with the things you do, using old hardware. What I would like to make is how you use them in everyday life. What is the use of them?

Cheers :D]]></description>
		<content:encoded><![CDATA[<p>Hi K.Mandla! I&#8217;m impressed with the things you do, using old hardware. What I would like to make is how you use them in everyday life. What is the use of them?</p>
<p>Cheers <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
