<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Alex's Adventures on the Infobahn - mencoder</title><link href="https://www.bennee.com/~alex/" rel="alternate"></link><link href="https://www.bennee.com/~alex/blog/tag/mencoder/feed" rel="self"></link><id>https://www.bennee.com/~alex/</id><updated>2009-11-20T12:29:00+00:00</updated><subtitle>the wanderings of a supposed digital native</subtitle><entry><title>Ripping PS3 compatible MP4s</title><link href="https://www.bennee.com/~alex/blog/2009/11/20/ripping-ps3-compatible-mp4s/" rel="alternate"></link><published>2009-11-20T12:29:00+00:00</published><updated>2009-11-20T12:29:00+00:00</updated><author><name>alex</name></author><id>tag:www.bennee.com,2009-11-20:/~alex/blog/2009/11/20/ripping-ps3-compatible-mp4s/</id><summary type="html">&lt;p&gt;There are literally hundreds of scripts and tools for encoding stuff to various compressed video formats. However I was never able to find something that did exactly what I wanted and until recently just did everything from the command line with &lt;a class="reference external" href="http://www.mplayerhq.hu/design7/news.html"&gt;mencoder&lt;/a&gt;. Eventually I got tired of the copy and …&lt;/p&gt;</summary><content type="html">&lt;p&gt;There are literally hundreds of scripts and tools for encoding stuff to various compressed video formats. However I was never able to find something that did exactly what I wanted and until recently just did everything from the command line with &lt;a class="reference external" href="http://www.mplayerhq.hu/design7/news.html"&gt;mencoder&lt;/a&gt;. Eventually I got tired of the copy and paste and scripted stuff up which I've pushed &lt;a class="reference external" href="http://github.com/stsquad/ps3enc"&gt;onto github&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There are two scripts. The first is rip.py which is designed to automate the task of ripping box sets as much as possible. Originally it spawned the encoder step but that is a very quick way to overload your machine. Syntax is fairly simple:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
rip.py -v -m 45 -b 13 -l
&lt;/pre&gt;
&lt;p&gt;Which means rip tracks that are around 45 minutes in length and number them from 13. Create a log file with a list of ripped VOB files. Currently everything is hard-coded to ${HOME}/tmp&lt;/p&gt;
&lt;p&gt;The second script is even simpler:&lt;/p&gt;
&lt;pre class="literal-block"&gt;
ps3enc.pl /path/to/file
&lt;/pre&gt;
&lt;p&gt;By default it does a automatic guess at crop detection and then a 2 pass encoding of the file into a PS3 compatible .avi. That is then unpicked and re-packaged into an .mp4 file.&lt;/p&gt;
&lt;p&gt;By it's very nature it is tailored to my command line sensibilities but I push it to the outside world in case it's useful to someone else. Patches are of course always welcome but don't expect it to grow much beyond it's current scope. About the only thing I'd like to get working properly is handling subtitles for foreign films. It's currently a bit of a black art.&lt;/p&gt;
&lt;p&gt;The original &amp;quot;recipe&amp;quot; for the PS3 friendly encode options where gleaned from &lt;a class="reference external" href="http://subvida.com/2007/06/18/convert-divx-xvid-to-ps3-format-mpeg4-on-linux/"&gt;Carlos Rivero's blog post&lt;/a&gt;.&lt;/p&gt;
</content><category term="geek"></category><category term="encode"></category><category term="media"></category><category term="mencoder"></category><category term="mplayer"></category><category term="ps3"></category><category term="rip"></category></entry></feed>