<?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>Flexion.Org Blog &#187; Audio &amp; Video</title>
	<atom:link href="http://blog.flexion.org/category/audio-video/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexion.org</link>
	<description>Bad grammar and typos for total strangers</description>
	<lastBuildDate>Tue, 15 May 2012 10:12:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Mediatomb vs. MiniDLNA</title>
		<link>http://blog.flexion.org/2009/12/18/mediatomb-minidlna/</link>
		<comments>http://blog.flexion.org/2009/12/18/mediatomb-minidlna/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 15:34:12 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[comparison]]></category>
		<category><![CDATA[DLNA]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mediatomb]]></category>
		<category><![CDATA[MiniDLNA]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[UPnP]]></category>
		<category><![CDATA[versus]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=296</guid>
		<description><![CDATA[I have been using Mediatomb for nearly two years now but I decided to give MiniDLNA a whirl since it is a fully fledged DLNA server whereas Mediatomb is UPnP only. I am currently running both Mediatomb SVN and MiniDLNA CVS. So, how does MiniDLNA compare to Mediatomb? MiniDLNA is easier to compile, configure, uses [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://blog.flexion.org/2009/12/18/mediatomb-minidlna/"></g:plusone></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/12/18/mediatomb-minidlna/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/12/18/mediatomb-minidlna/" data-text="Mediatomb vs. MiniDLNA" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><script type="in/share" data-url="http://blog.flexion.org/2009/12/18/mediatomb-minidlna/" data-counter="top"></script></div></div><p>I have been using Mediatomb for nearly two years now but I decided to give MiniDLNA a whirl since it is a fully fledged DLNA server whereas Mediatomb is UPnP only. I am currently running both Mediatomb SVN and MiniDLNA CVS. So, how does MiniDLNA compare to Mediatomb?</p>
<ul>
<li>MiniDLNA is easier to compile, configure, uses less RAM and has less software dependencies than Mediatomb.</li>
<li>MiniDLNA doesn&#8217;t currently support music play lists or Last.fm scrobbling. Mediatomb supports .m3u and .pls playlists but requires a 3rd party patch to add Last.fm scrobbling.</li>
<li>MiniDLNA doesn&#8217;t support dynamic video thumbnail creation, which would be nice to have but is not essential, cover images are supported. Mediatomb supports video thumbnailing via ffmpegthumbnailer.</li>
<li>MiniDLNA doesn&#8217;t currently have any transcoding support. This is of little consequence for me since I import video content into my library in a format natively supported by the PS3, either MP3, MPEG-2 TS or MPEG-4. Mediatomb does support transcoding but it is somewhat fiddly to setup and you can&#8217;t pause transcoded content.</li>
<li>MiniDLNA works <em>&#8220;out of the box&#8221;</em> with the PS3 (and other DLNA clients) while Mediatomb requires some tweaking.</li>
<li>Mediatomb&#8217;s default video import script doesn&#8217;t suit how I organise my video library, but MiniDLNA fit my video library perfectly.</li>
</ul>
<p>So, as of today I am running both Mediatomb and MiniDLNA. Mediatomb is exclusively handling audio since playlist and Last.fm support are essential for me. MiniDLNA is now handling video exclusively. I&#8217;m very happy with the results but should MiniDLNA add .m3u/.pls play lists and Last.fm support I will switch everything to MiniDLNA <img src='http://blog.flexion.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I&#8217;ve written up my notes on installing Mediatomb SVN (including Last.fm support) and MiniDLNA CVS on Ubuntu Karmic 9.10 Server, get them from the links below&#8230;</p>
<ul>
<li><a href="http://wiki.flexion.org/DLNAServer.html" target="_self">MiniDLNA </a></li>
<li><a href="http://wiki.flexion.org/UPnPServer.html" target="_self">Mediatomb </a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/12/18/mediatomb-minidlna/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>DVD to MPEG2-TS Ripper for Linux</title>
		<link>http://blog.flexion.org/2009/12/04/dvd-mpeg2ts-ripper-linux/</link>
		<comments>http://blog.flexion.org/2009/12/04/dvd-mpeg2ts-ripper-linux/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 07:53:58 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[H.264]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MPEG2-TS]]></category>
		<category><![CDATA[ripper]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=289</guid>
		<description><![CDATA[A while back I released a script that rips a DVD to MPEG-2 PS allowing the user to select one audio stream and one subtitle stream. Optionally the video can be requantised, using M2VRequantiser and an ISO image created. If creating an ISO image the chapters are also preserved from the original DVD. You can [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://blog.flexion.org/2009/12/04/dvd-mpeg2ts-ripper-linux/"></g:plusone></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/12/04/dvd-mpeg2ts-ripper-linux/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/12/04/dvd-mpeg2ts-ripper-linux/" data-text="DVD to MPEG2-TS Ripper for Linux" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><script type="in/share" data-url="http://blog.flexion.org/2009/12/04/dvd-mpeg2ts-ripper-linux/" data-counter="top"></script></div></div><p>A while back I released a script that rips a DVD to MPEG-2 PS allowing the user to select one audio stream and one subtitle stream. Optionally the video can be requantised, using M2VRequantiser and an ISO image created. If creating an ISO image the chapters are also preserved from the original DVD. You can see the original post below.</p>
<ul>
<li><a href="http://blog.flexion.org/index.php/2009/04/23/dvd-mpeg2ps-ripper-linux/" target="_self">DVD to MPEG-2 PS Ripper for Linux</a></li>
</ul>
<p>I&#8217;ve just released an update to that original script which fixes subtitles in the original MPEG-2 PS mode but now adds the capability to rip MPEG-2 TS. The video stream can still be shrunk and in MPEG-2 PS mode the video is still<br />
requantised but in MPEG-2 TS mode the video is re-encoded as H.264. Requantising is faster but can introduce artifacting. H.264 encoding is slower, but produces very good quality. I am currently re-importing my entire DVD collection, using this script, to my DLNA server using MPEG-2 TS and re-encoding the video to H.264. This gives me high quality rips at relatively small size (~3Gb) whilst preserving Dolby Digital 5.1 audio. Perfect for playback via DLNA on the PS3 <img src='http://blog.flexion.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Some things to be aware of:</p>
<ul>
<li>Subtitles are only supported in MPEG-2 PS mode.</li>
<li>MPEG-2 PS files created by this script are DVD compliant.</li>
<li>ISO files created by this script will preserve the chapters from the original DVD.</li>
<li>The PS3 can only play DTS audio in MPEG-2 PS streams when they have been authored to DVD.</li>
<li>The PS3 can only play subtitles in MPEG-2 PS streams when they have been authored to DVD.</li>
<li>The PS3 can&#8217;t play DTS audio in MPEG-2 TS streams therefore this script will transcode DTS to AC3 when in MPEG-2 TS mode.</li>
</ul>
<p>If you are running Ubuntu then I strongly suggest you add the Avenard repository to your system as it includes recent builds of mplayer and x264.</p>
<ul>
<li><a href="http://avenard.com/media/Ubuntu_Repository/Ubuntu_Repository.html" target="_blank">http://avenard.com/media/Ubuntu_Repository/Ubuntu_Repository.html</a></li>
</ul>
<p>To download the script and find out how to make full use of it visit the release page below.</p>
<ul>
<li><a href="http://code.flexion.org/DVD-to-MPG.html" target="_self">DVD-to-MPG</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/12/04/dvd-mpeg2ts-ripper-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>IMDB Film Summary as a MPEG2 video, Part 2</title>
		<link>http://blog.flexion.org/2009/09/20/imdb-film-video-summary/</link>
		<comments>http://blog.flexion.org/2009/09/20/imdb-film-video-summary/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 08:48:36 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[IMDB]]></category>
		<category><![CDATA[MPEG]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[summary]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=270</guid>
		<description><![CDATA[Back in April I released a script to create a MPEG video summarising a movie using data from IMDB, you can find the original post in the URL below to learn why I created such a script in the first place. IMDB Film Summary as a MPEG2 video Today I&#8217;ve release v2.0 of that script, [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://blog.flexion.org/2009/09/20/imdb-film-video-summary/"></g:plusone></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/09/20/imdb-film-video-summary/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/09/20/imdb-film-video-summary/" data-text="IMDB Film Summary as a MPEG2 video, Part 2" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><script type="in/share" data-url="http://blog.flexion.org/2009/09/20/imdb-film-video-summary/" data-counter="top"></script></div></div><p>Back in April I released a script to create a MPEG video summarising a movie using data from IMDB, you can find the original post in the URL below to learn why I created such a script in the first place.</p>
<ul>
<li><a title="Permanent link to  IMDB Film Summary as a MPEG2 video" rel="bookmark" href="../index.php/2009/04/22/imdb-film-summary-mpeg2-video/">IMDB Film Summary as a MPEG2 video</a></li>
</ul>
<p>Today I&#8217;ve release v2.0 of that script, which is almost a complete re-write mostly thanks to Eric at <a title="yPass.net" href="http://yPass.net/" target="_blank">yPass.net</a> who contributed significantly. Thanks to Eric the script is much improved since version 1.0, here is a run down of what&#8217;s new.</p>
<p><strong>v2.0 2009, 19th September</strong></p>
<ul>
<li>Merged yet more contributions from Eric, http://www.ypass.net. Thanks Eric!</li>
<li>Added usage instructions.</li>
<li>Added categorisation by Certificate.</li>
<li>Added dynamic computation of video bitrate.</li>
<li>Added silent audio generation.</li>
<li>Added a shell script to reprocess an entire film store.</li>
<li>Re-added MPEG-2 video encoding.</li>
<li>Improved video encoding speed by removing pre-processing with &#8216;jpeg2yuv&#8217;.</li>
<li>Fixed spiffy animations when cover art is not available.</li>
<li>Fixed spiffy animations on platforms that may have incomplete GD.</li>
<li>Modified filename input so that an input filename is optional rather than mandatory.</li>
</ul>
<p><strong>v1.2 2009, 17th July.</strong></p>
<ul>
<li>Merged extensive contributions from Eric, http://www.ypass.net. Thanks Eric!</li>
<li>Updated the README to reflect Eric&#8217;s changes.</li>
<li>MPEG-4 video encoding replaced MPEG-2 video encoding.</li>
<li>Never released to the public.</li>
</ul>
<p>To download the script and find out how to make full use of it visit the release page below.</p>
<ul>
<li><a title="IMDB-to-MPEG" href="http://code.flexion.org/IMDB-to-MPEG.html" target="_self">IMDB-to-MPEG</a></li>
</ul>
<p>You&#8217;ll have seen reference to &#8220;spiffy animations&#8221; in the change log, take a look at the example video summary clip below to see for yourself.</p>
<ul>
<li><a href="http://blog-test.flexion.org/files/2009/09/About_The_Usual_Suspects.mp4">About The Usual Suspects</a> (~2Mb)</li>
</ul>
<p>As it stands the IMDB-to-MPEG script does what I require, so I will maintain it in it&#8217;s current form. However, Eric has been working on a new direction by adding support for NetFlix, creating a GUI with php-gtk and some other cool stuff. While Eric has shared the details with me, I simply don&#8217;t have the time to add all that good stuff to IMDB-to-MPEG, so if you like the sound of what Eric has been up to hop over to his site to find out more.</p>
<ul>
<li><a title="Netflix Has a Developer API" href="http://www.ypass.net/blog/2009/07/netflix-has-a-developer-api/" target="_blank">Netflix Has a Developer API</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/09/20/imdb-film-video-summary/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
<enclosure url="http://blog-test.flexion.org/files/2009/09/About_The_Usual_Suspects.mp4" length="0" type="video/mp4" />
		</item>
		<item>
		<title>MKV to MPEG-4 conversion script</title>
		<link>http://blog.flexion.org/2009/08/27/mkv-to-mp4-conversion-script/</link>
		<comments>http://blog.flexion.org/2009/08/27/mkv-to-mp4-conversion-script/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 20:48:58 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[AAC 5.1]]></category>
		<category><![CDATA[AC3]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[DTS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MKV]]></category>
		<category><![CDATA[MP4]]></category>
		<category><![CDATA[MPEG-4]]></category>
		<category><![CDATA[PlayStation 3]]></category>
		<category><![CDATA[PS3]]></category>
		<category><![CDATA[Xbox 360]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=264</guid>
		<description><![CDATA[The Play Station 3 can&#8217;t play MKV file. Therefore I&#8217;ve written a script that creates a PlayStation 3 or Xbox 360 compatible MPEG-4 from Matroska providing the video is H.264 and audio is AC3 or DTS. Xbox 360 compatibility requires that audio is forcibly downmixed to stereo with &#8216;&#8211;stereo&#8217;. AAC 5.1 audio will have the [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://blog.flexion.org/2009/08/27/mkv-to-mp4-conversion-script/"></g:plusone></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/08/27/mkv-to-mp4-conversion-script/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/08/27/mkv-to-mp4-conversion-script/" data-text="MKV to MPEG-4 conversion script" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><script type="in/share" data-url="http://blog.flexion.org/2009/08/27/mkv-to-mp4-conversion-script/" data-counter="top"></script></div></div><p>The Play Station 3 can&#8217;t play MKV file. Therefore I&#8217;ve written a script that creates a PlayStation 3 or Xbox 360 compatible MPEG-4 from Matroska providing the video is H.264 and audio is AC3 or DTS. Xbox 360 compatibility requires that audio is forcibly downmixed to stereo with &#8216;&#8211;stereo&#8217;. AAC 5.1 audio will have the correct channel assignments when transcoding from AC3 5.1 and DTS 5.1. If &#8216;neroAacEnc&#8217; is installed then it in preference to &#8216;faac&#8217; for encoding the AAC audio as it produces better quality output. neroAacEnc is optional.</p>
<p>The script does as little re-encoding as possible, only the audio and subtitles are re-encoded or converted. The script can detect profile 5.1 H.264 and patch it to 4.1 in under a second. Any subtitles in the Matroska are preserved. If &#8216;mp4creator&#8217; is used the subtitles are extracted stored in a seperate file. If &#8216;MP4Box&#8217; is used (default) the subtitles are converted to GPAC Timed Text and muxed into the resulting<br />
MPEG-4. The PS3 can&#8217;t display these subtitles but some software players can.</p>
<p>The script can optionally split the Matroska if it is greater than 4GB to ensure Play Station 3, Xbox 360 and FAT32 compatibility.</p>
<p>This script works on Ubuntu Linux and should work on any other Linux/Unix flavour and possibly Mac OS X providing you have the required tools installed.</p>
<ul>
<li><a href="http://code.flexion.org/MKV-to-MP4.html" target="_self">MKV-to-MP4</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/08/27/mkv-to-mp4-conversion-script/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>MP3Gainer &#8211; Apply ReplayGain to your entire music library</title>
		<link>http://blog.flexion.org/2009/08/14/mp3gainer-replaygain-your-music-library/</link>
		<comments>http://blog.flexion.org/2009/08/14/mp3gainer-replaygain-your-music-library/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 15:25:45 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[mp3gain]]></category>
		<category><![CDATA[replaygain]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=259</guid>
		<description><![CDATA[Work has been crazy. We&#8217;re moving house. Hence, not much time for geeky stuff recently. I&#8217;ve been putting this off for ages, I need to &#8220;normalise&#8221; the volume of my MP3 music music library. Not all CDs sound equally loud. Whilst different musical moods require that some tracks should sound louder than others, the loudness [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/08/14/mp3gainer-replaygain-your-music-library/" data-text="MP3Gainer &#8211; Apply ReplayGain to your entire music library" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/08/14/mp3gainer-replaygain-your-music-library/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div></div><p>Work has been crazy. We&#8217;re moving house. Hence, not much time for geeky stuff recently.</p>
<p>I&#8217;ve been putting this off for ages, I need to &#8220;normalise&#8221; the volume of my MP3 music music library. Not all CDs sound equally loud. Whilst different musical moods require that some tracks should sound louder than others, the loudness of a given CD has more to do with the year of issue or the whim of the producer than the intended emotional effect. This difference carries over when you rip the CD to MP3 and random play through my music collection requires constant manual volume adjustment. This has been bugging me for a while now, but when it started to bug my wife I knew it was time to find a solution <img src='http://blog.flexion.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>My main concerns with applying some sort of audio normalisation were&#8230;.</p>
<ul>
<li>My MP3s should not be irretrievably changed into something I end up hating.</li>
<li>The method used should be free of the application used for music playback, given that I play my music on iPod Nano, iPod Shuffle, PSP, PS3, Linux desktops, TomTom 720T FM streaming and in car MP3 player.</li>
</ul>
<p>After some research <a href="http://mp3gain.sourceforge.net" target="_blank">mp3gain</a> seems to be the tool for the job which provides an implementation of <a href="http://www.replaygain.org/" target="_blank">ReplayGain</a>.</p>
<p>However, as of today my entire CD collection is ripped, which is very large, so I needed a way to process my whole music collection in an automated fashion. I found some examples of how to script this, but there are caveats with the solutions I found.</p>
<p>Therefore I have created my own script, MP3Gainer, to apply ReplayGain using &#8216;mp3gain&#8217; which overcomes these common limitations. MP3Gainer recursively applies ReplayGain to a MP3 music collection of any size and directory depth. ReplayGain can be applied in &#8216;track&#8217; or &#8216;album&#8217; mode and if ReplayGain has previously been applied it can also be undone. It is important to understand that MP3Gainer &#8216;album&#8217; mode really is per album, which is what you want. Trust me! <img src='http://blog.flexion.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>This script works on Ubuntu Linux, should work on any other Linux/Unix flavour and possibly Mac OS X providing you have the required tools installed.</p>
<ul>
<li><a href="https://code.launchpad.net/~flexiondotorg/+junk/MP3Gainer">MP3Gainer</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/08/14/mp3gainer-replaygain-your-music-library/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PlayStation 3 compaitble MPEG-4 container repacker</title>
		<link>http://blog.flexion.org/2009/04/23/ps3-mpeg-4-container-repacker/</link>
		<comments>http://blog.flexion.org/2009/04/23/ps3-mpeg-4-container-repacker/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 17:09:11 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[iPlayer]]></category>
		<category><![CDATA[MPEG-4]]></category>
		<category><![CDATA[PlayStation]]></category>
		<category><![CDATA[PS3]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=253</guid>
		<description><![CDATA[Some of my mobile phones have been able to record video clips in MPEG-4 format. Sadly some of these clips don&#8217;t play on the PlayStation 3 and those that do stutter terribly. I use &#8216;iplayer-dl&#8216; to download content from BBC iPlayer. Sadly the files are in a Quicktime container and are not playable on the [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://blog.flexion.org/2009/04/23/ps3-mpeg-4-container-repacker/"></g:plusone></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/04/23/ps3-mpeg-4-container-repacker/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/04/23/ps3-mpeg-4-container-repacker/" data-text="PlayStation 3 compaitble MPEG-4 container repacker" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><script type="in/share" data-url="http://blog.flexion.org/2009/04/23/ps3-mpeg-4-container-repacker/" data-counter="top"></script></div></div><p>Some of my mobile phones have been able to record video clips in MPEG-4 format. Sadly some of these clips don&#8217;t play on the PlayStation 3 and those that do stutter terribly. I use &#8216;<a href="http://po-ru.com/projects/iplayer-downloader/" target="_blank">iplayer-dl</a>&#8216; to download content from BBC iPlayer. Sadly the files are in a Quicktime container and are not playable on the PS3. In order to address both these issues I created a script which extracts the audio and video from an existing MPEG-4 or ISO Media Apple QuickTime container and repacks them in a new MPEG-4 container with optional splitting of the resulting MPEG-4 to maintain FAT32  compatibility.  The new MPEG-4 files play back just fine on my PS3 <img src='http://blog.flexion.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>This script works on Ubuntu Linux, should work on any other Linux/Unix flavour and possibly Mac OS X providing you have the required tools installed.</p>
<ul>
<li>See the <a rel="nofollow" href="http://code.flexion.org/" target="_self">Code</a> section of my site for the download and more details.</li>
</ul>
<p>Mp4-Repacker.sh was released on April 23rd 2009 to help celebrate <a rel="nofollow" href="http://en.wikipedia.org/wiki/St_George%27s_Day" target="_blank">St. George’s Day</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/04/23/ps3-mpeg-4-container-repacker/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>MKV to M2TS conversion script</title>
		<link>http://blog.flexion.org/2009/04/23/mkv-m2ts-conversion-script/</link>
		<comments>http://blog.flexion.org/2009/04/23/mkv-m2ts-conversion-script/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 17:00:46 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[M2TS]]></category>
		<category><![CDATA[MKV]]></category>
		<category><![CDATA[PS3]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=251</guid>
		<description><![CDATA[The Play Station 3 can&#8217;t play MKV file. Therefore I&#8217;ve written a script that creates a PlayStation 3 compatible M2TS from a MKV, assuming video is H.264 and audio is AC3 or DTS with as little re-encoding as possible. Any subtitles in the MKV are preserved in the M2TS although the PS3 can&#8217;t display subtitles [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://blog.flexion.org/2009/04/23/mkv-m2ts-conversion-script/"></g:plusone></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/04/23/mkv-m2ts-conversion-script/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/04/23/mkv-m2ts-conversion-script/" data-text="MKV to M2TS conversion script" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><script type="in/share" data-url="http://blog.flexion.org/2009/04/23/mkv-m2ts-conversion-script/" data-counter="top"></script></div></div><p>The Play Station 3 can&#8217;t play MKV file. Therefore I&#8217;ve written a script that creates a PlayStation 3 compatible M2TS from a MKV, assuming video is H.264 and audio is AC3 or DTS with as little re-encoding as possible. Any subtitles in the MKV are preserved in the M2TS although the PS3 can&#8217;t display subtitles in M2TS containers. Optionally splits the M2TS, if it is greater than 4GB, to maintain FAT32 compatibility. Unlike other MKV to M2TS solutions, this script doesn&#8217;t create any intermediate files during the conversion. The PS3 can&#8217;t play DTS audio streams in M2TS containers, therefore DTS audio is transcoded to AC3.</p>
<p>This script works on Ubuntu Linux, should work on any other Linux/Unix flavour and possibly Mac OS X providing you have the required tools installed.</p>
<ul>
<li>See the <a rel="nofollow" href="http://code.flexion.org/" target="_self">Code</a> section of my site for the download and more details.</li>
</ul>
<p>MKV-to-M2TS.sh was released on April 23rd 2009 to help celebrate <a href="http://en.wikipedia.org/wiki/St_George%27s_Day" target="_blank">St. George&#8217;s Day</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/04/23/mkv-m2ts-conversion-script/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>DVD to MPEG2-PS Ripper for Linux</title>
		<link>http://blog.flexion.org/2009/04/23/dvd-mpeg2ps-ripper-linux/</link>
		<comments>http://blog.flexion.org/2009/04/23/dvd-mpeg2ps-ripper-linux/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 16:50:31 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[DVD]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[M2VRequantiser]]></category>
		<category><![CDATA[MPEG2-PS]]></category>
		<category><![CDATA[ripper]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=244</guid>
		<description><![CDATA[Every so often I find myself in looking through the ex-rental DVD &#8220;bargain bin&#8221;. Quite often I find something I consider a bargain. However, the experience of watching an ex-rental DVD is typically ruined by the various trailers and marketing guff at the start which you can&#8217;t skip. My wife hates that stuff, and I [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://blog.flexion.org/2009/04/23/dvd-mpeg2ps-ripper-linux/"></g:plusone></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/04/23/dvd-mpeg2ps-ripper-linux/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/04/23/dvd-mpeg2ps-ripper-linux/" data-text="DVD to MPEG2-PS Ripper for Linux" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><script type="in/share" data-url="http://blog.flexion.org/2009/04/23/dvd-mpeg2ps-ripper-linux/" data-counter="top"></script></div></div><p>Every so often I find myself in looking through the ex-rental DVD &#8220;bargain bin&#8221;. Quite often I find something I consider a bargain. However, the experience of watching an ex-rental DVD is typically ruined by the various trailers and marketing guff at the start which you can&#8217;t skip. My wife hates that stuff, and I love my wife, so I routinely rip the main feature of newly acquired ex-rental DVD movies so we can avoid that crap. I run a Mediatomb DLNA server and I want to load it with all my DVDs. Ripping them helps reduce the amount of storage I will require. MPEG2-PS files are compatible with my PS3 which is the client to my Mediatomb DLNA server.</p>
<p>As a solution to the above I created this script, which can extract the main feature from a DVD video, allowing the user to select one audio stream and one subtitle stream. Optionally the video can be requantised, using M2VRequantiser, and an ISO image created. If creating an ISO image the chapters are also preserved from the original DVD.</p>
<ul>
<li>See the <a rel="nofollow" href="http://code.flexion.org/" target="_self">Code</a> section of my site for the download and more details.</li>
</ul>
<p>DVD-toMPG.sh was released on April 23rd 2009 to help celebrate <a href="http://en.wikipedia.org/wiki/St_George%27s_Day" target="_blank">St. George&#8217;s Day</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/04/23/dvd-mpeg2ps-ripper-linux/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>M2VRequantiser for 32-bit and 64-bit Linux</title>
		<link>http://blog.flexion.org/2009/04/23/m2vrequantiser-64bit-tcrequant/</link>
		<comments>http://blog.flexion.org/2009/04/23/m2vrequantiser-64bit-tcrequant/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 16:47:20 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[32-bit]]></category>
		<category><![CDATA[64-bit]]></category>
		<category><![CDATA[M2VRequantiser]]></category>
		<category><![CDATA[tcrequant]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=237</guid>
		<description><![CDATA[I recently discovered that &#8216;tcrequant&#8217; (part of the transcode suite of tools) has been deprecated. Worst still I found that when I ran &#8216;tcrequant&#8217; on my 64-bit Linux workstation is was corrupting the video. See the links below for details. transcode 1.1.0 Final Release [transcode-users] tcrequant status Therefore I decided to get the M2VRequantiser code [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://blog.flexion.org/2009/04/23/m2vrequantiser-64bit-tcrequant/"></g:plusone></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/04/23/m2vrequantiser-64bit-tcrequant/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/04/23/m2vrequantiser-64bit-tcrequant/" data-text="M2VRequantiser for 32-bit and 64-bit Linux" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><script type="in/share" data-url="http://blog.flexion.org/2009/04/23/m2vrequantiser-64bit-tcrequant/" data-counter="top"></script></div></div><p>I recently discovered that &#8216;tcrequant&#8217; (part of the <a href="http://http://www.transcoding.org/" target="_blank">transcode</a> suite of tools) has been deprecated. Worst still I found that when I ran &#8216;tcrequant&#8217; on my 64-bit Linux workstation is was corrupting the video. See the links below for details.</p>
<ul>
<li><a href="http://tcforge.berlios.de/archives/2009/01/18/transcode_1_1_0_final_release/index.html" target="_blank">transcode 1.1.0 Final Release</a></li>
<li><a href="http://www.mail-archive.com/transcode-users@exit1.org/msg01773.html" target="_blank">[transcode-users] tcrequant status</a></li>
</ul>
<p>Therefore I decided to get the <a href="http://www.metakine.com/products/dvdremaster/developers.html" target="_blank">M2VRequantiser code</a> from <a href="http://www.metakine.com/" target="_blank">Metakine</a> working on both 32-bit and 64-bit Linux as a replacement for &#8216;tcrequant&#8217;.</p>
<p>M2VRequantiser accepts the raw MPEG2 video data (not VOB) from the standard input and writes the recompressed frames to the standard output.  M2VRequantiser takes two arguments. The first one is a floating point value specifying the ratio of compression. The second is the size of the M2V, since the data is streamed to M2VRequantiser it cannot know the M2V size. The following command would recompress &#8216;original.m2v&#8217;, whose size is 1024000 bytes, by a factor of 1.25.</p>
<pre>M2VRequantiser 1.25 1024000 &lt; original.m2v &gt; requantised.m2v</pre>
<p>I&#8217;ve only tested on 32-bit and 64-bit Linux, specifically Ubuntu Intrepid 8.10. It works for me but I&#8217;d be interested to get your feedback.</p>
<ul>
<li>See the <a rel="nofollow" href="http://code.flexion.org/" target="_self">Code</a> section of my site for the download and more details.</li>
</ul>
<p>M2VRequantiser was released on April 23rd 2009 to help celebrate <a href="http://en.wikipedia.org/wiki/St_George%27s_Day" target="_blank">St. George&#8217;s Day</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/04/23/m2vrequantiser-64bit-tcrequant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IMDB Film Summary as a MPEG2 video</title>
		<link>http://blog.flexion.org/2009/04/22/imdb-film-summary-mpeg2-video/</link>
		<comments>http://blog.flexion.org/2009/04/22/imdb-film-summary-mpeg2-video/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 18:00:07 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Audio & Video]]></category>
		<category><![CDATA[IMDB]]></category>
		<category><![CDATA[Mediatomb]]></category>
		<category><![CDATA[MPEG]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://blog.flexion.org/?p=230</guid>
		<description><![CDATA[If you&#8217;ve read my blog before you&#8217;ll know I run Mediatomb DLNA server with my PS3 as the client, You&#8217;ll also know I am working towards importing my entire DVD collection into my Mediatomb server. However, my wife wants to know something about each film in the library without having to dig out the DVD [...]]]></description>
			<content:encoded><![CDATA[<div class="socialize-in-content" style="float:right;"><div class="socialize-in-button socialize-in-button-vertical"><g:plusone size="tall" href="http://blog.flexion.org/2009/04/22/imdb-film-summary-mpeg2-video/"></g:plusone></div><div class="socialize-in-button socialize-in-button-vertical"><iframe src="http://www.facebook.com/plugins/like.php?href=http://blog.flexion.org/2009/04/22/imdb-film-summary-mpeg2-video/&amp;layout=box_count&amp;show_faces=false&amp;width=&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=65" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px !important; height:65px;" allowTransparency="true"></iframe></div><div class="socialize-in-button socialize-in-button-vertical"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://blog.flexion.org/2009/04/22/imdb-film-summary-mpeg2-video/" data-text="IMDB Film Summary as a MPEG2 video" data-count="vertical" data-via="@flexiondotorg" data-related="@flexiondotorg"><!--Tweetter--></a></div><div class="socialize-in-button socialize-in-button-vertical"><script type="in/share" data-url="http://blog.flexion.org/2009/04/22/imdb-film-summary-mpeg2-video/" data-counter="top"></script></div></div><p>If you&#8217;ve read my blog before you&#8217;ll know I run Mediatomb DLNA server with my PS3 as the client, You&#8217;ll also know I am working towards importing my entire DVD collection into my Mediatomb server. However, my wife wants to know something about each film in the library without having to dig out the DVD case from storage. My solution is to include a MPEG-2 video displaying the film summary in the Mediatomb library for each DVD I have imported so it can be easily viewed from the PS3.</p>
<p>My script is called IMDB-to-MPEG and I&#8217;ve finally got round to uploading it. See the <a href="http://code.flexion.org/" target="_self">Code</a> section of my site for the download.</p>
<p>The scripts takes one parameter as input, a film title. The plotline, year of release, genres, cast list and running time for that film are gathered from IMDB and formatted as text. Here is an example.</p>
<pre>The Usual Suspects (1995)

A boat has been destroyed, criminals are dead, and
the key to this mystery lies with the only
survivor and his twisted, convoluted story
beginning with five career crooks in a seemingly
random police lineup. (106 mins)

Starring Stephen Baldwin as Michael McManus,
Gabriel Byrne as Dean Keaton, Benicio Del Toro as
Fred Fenster, Kevin Pollak as Todd Hockney, and
Kevin Spacey as Roger 'Verbal' Kint.

Genres: Crime, Mystery, Thriller.

Rated 8.7 out of 10 from 227,964 votes.</pre>
<p>The text is converted into an image and then encoded into a MPEG-2 video using the lowest possible bitrate/resolution that is acceptable to read when viewing on a 42&#8243; plasma from my sofa.</p>
<p>Directories for each matching genre are created and also one for the IMDB rating (rounded down). The MPEG-2 is stored in the &#8216;All&#8217; folder and then symlinked to the genres and rating for that film. I then copy my video into the appropriate directory in &#8216;All&#8217;. For example.</p>
<pre>.
|-- All
|   `-- The_Usual_Suspects
|       `-- About_The_Usual_Suspects.mpg
|-- Genres
|   |-- Crime
|   |   `-- The_Usual_Suspects -&gt; ../../All/The_Usual_Suspects
|   |-- Mystery
|   |   `-- The_Usual_Suspects -&gt; ../../All/The_Usual_Suspects
|   `-- Thriller
|       `-- The_Usual_Suspects -&gt; ../../All/The_Usual_Suspects
|-- Ratings
`-- 8
`-- The_Usual_Suspects -&gt; ../../All/The_Usual_Suspects</pre>
<p>This code was lashed up in a few hours, it ain&#8217;t pretty but it works for me on my Ubuntu Linux systems, maybe it&#8217;ll work for you too <img src='http://blog.flexion.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flexion.org/2009/04/22/imdb-film-summary-mpeg2-video/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

