<?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>nin9lives.com &#187; Unix</title>
	<atom:link href="http://www.nin9lives.com/blog/category/computers/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nin9lives.com/blog</link>
	<description>what happens around me</description>
	<lastBuildDate>Fri, 01 Oct 2010 15:57:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>.ogg to .mp3</title>
		<link>http://www.nin9lives.com/blog/ogg-to-mp3/</link>
		<comments>http://www.nin9lives.com/blog/ogg-to-mp3/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 16:31:41 +0000</pubDate>
		<dc:creator>Tommaso</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://nin9lives.com/blog/?p=25</guid>
		<description><![CDATA[Here&#8217;s how to convert an .ogg to .mp3You&#8217;ll need: sox &#8211; Sound eXchange libvorbis libogg lame and just$ sox file.ogg file.mp3or in batch mode for all files in a dir$ for x in * ; do mv "$x" `echo -n $x &#124; tr " " "_"`; done$ for x in *.ogg ; do sox $x [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to convert an .ogg to .mp3You&#8217;ll need:
<ul>
<li><a href="http://sox.sourceforge.net/">sox &#8211; Sound eXchange</a></li>
<li>libvorbis</li>
<li>libogg</li>
<li>lame</li>
</ul>
<p>and just<code></code><code>$ sox file.ogg file.mp3</code>or in batch mode for all files in a dir<code>$ for x in * ; do mv "$x" `echo -n $x | tr " " "_"`; done$ for x in *.ogg ; do sox $x `echo $x|awk -F . '{print $1 ".mp3"}'`; done</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nin9lives.com/blog/ogg-to-mp3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Log log log</title>
		<link>http://www.nin9lives.com/blog/log-log-log/</link>
		<comments>http://www.nin9lives.com/blog/log-log-log/#comments</comments>
		<pubDate>Mon, 03 Dec 2007 02:30:04 +0000</pubDate>
		<dc:creator>Tommaso</dc:creator>
				<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://nin9lives.com/blog/?p=23</guid>
		<description><![CDATA[Two very useful utilities for system logging and log management: syslog-ng  a system log deamon logrotate to automate log rotation and maintenance]]></description>
			<content:encoded><![CDATA[<p>Two very useful utilities for system logging and log management:
<ul>
<li><a href="http://gentoo-wiki.com/Syslog-ng" title="syslog-ng daemon">syslog-ng</a>  a system log deamon</li>
<li><a href="http://linuxcommand.org/man_pages/logrotate8.html" title="utility to rotate logs">logrotate</a> to automate log rotation and maintenance</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nin9lives.com/blog/log-log-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ffmpeg Ipod Touch encoding</title>
		<link>http://www.nin9lives.com/blog/ffmpeg-ipod-touch-encoding/</link>
		<comments>http://www.nin9lives.com/blog/ffmpeg-ipod-touch-encoding/#comments</comments>
		<pubDate>Fri, 23 Nov 2007 23:39:33 +0000</pubDate>
		<dc:creator>Tommaso</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://nin9lives.com/blog/?p=19</guid>
		<description><![CDATA[This should do it:  ffmpeg -y -i input_file.avi -an -v 1 -threads auto -vcodec h264 -b 500k -bt 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 -parti4x4 1 -partp8x8 1 -me full -subq 1 -me_range 21 -chroma 1 -slice 2 -bf 0 -level 30 -g 300 -keyint_min 30 -sc_threshold 40 -rc_eq &#8216;blurCplx^(1-qComp)&#8217; -qcomp 0.7 [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify">This should do it: </p>
<p style="text-align: justify"><span style="font-size: 13px; line-height: normal; font-family: 'Courier New'" class="Apple-style-span">ffmpeg -y -i input_file.avi -an -v 1 -threads auto -vcodec h264 -b 500k -bt 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 -parti4x4 1 -partp8x8 1 -me full -subq 1 -me_range 21 -chroma 1 -slice 2 -bf 0 -level 30 -g 300 -keyint_min 30 -sc_threshold 40 -rc_eq &#8216;blurCplx^(1-qComp)&#8217; -qcomp 0.7 -qmax 51 -qdiff 4 -i_qfactor 0.71428572 -maxrate 768k -bufsize 2M -cmp 1 -s 320&#215;240 -f mp4 -pass 1 /dev/null</span></p>
<p style="text-align: justify"><span style="font-size: 13px; line-height: normal; font-family: 'Courier New'" class="Apple-style-span"></span><strike><code>ffmpeg -y -i input_file.avi -v 1 -threads auto -vcodec h264 -b 500k -bt 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 -parti4x4 1 -partp8x8 1 -me full -subq 6 -me_range 21 -chroma 1 -slice 2 -bf 0 -level 30 -g 300 -keyint_min 30 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.7 -qmax 51 -qdiff 4 -i_qfactor 0.71428572 -maxrate 768k -bufsize 2M -cmp 1 -s 320x240 -acodec aac -ab 96 -ar 48000 -ac 2 -f mp4 -pass 2 output_file.mp4</code></strike></p>
<p style="text-align: justify"> <code>ffmpeg -y -i input_file.avi -v 1 -threads auto -vcodec h264 -b 500k -bt 175k -refs 1 -loop 1 -deblockalpha 0 -deblockbeta 0 -parti4x4 1 -partp8x8 1 -me full -subq 6 -me_range 21 -chroma 1 -slice 2 -bf 0 -level 30 -g 300 -keyint_min 30 -sc_threshold 40 -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.7 -qmax 51 -qdiff 4 -i_qfactor 0.71428572 -maxrate 768k -bufsize 2M -cmp 1 -s 320x240 -acodec libfaac -ab 96 -ar 48000 -ac 2 -f mp4 -pass 2 output_file.mp4</code> </p>
<p style="text-align: justify">Edit: second command was wrong at least on gentoo, the -acodec was unknown. Replace acc with libfaac instead, make sure you have acc in the USE flag for ffmpegSettings do work!</p>
<p style="text-align: justify"> Run the first command and then the second for a multipass encoding <img src='http://www.nin9lives.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p style="text-align: justify"> Please leave a comment if it also works for you! (no registration or real email needed)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nin9lives.com/blog/ffmpeg-ipod-touch-encoding/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

