<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/"/>

<title>Jeff Epler's blog</title>
<modified>2011-05-19T20:49:30Z</modified>
<tagline>Photos, electronics, cnc, and more</tagline>
<author><name>Jeff Epler</name><email>jepler@unpythonic.net</email></author>
<entry>
<title>srtrename: rename subtitle files to match video files</title>
<issued>2011-05-19T20:49:30Z</issued>
<modified>2011-05-19T20:49:30Z</modified>
<id>https://gamma.unpythonic.net/01305838170</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01305838170"/>
<content type="text/html" mode="escaped">

I've recently been watching some videos in a tv series.  Having obtained the
video files and subtitles from different sources, they had different naming
conventions.  Mplayer requires that the files have the same name (except for
the extension, naturally) Renaming them by hand was a bit of an annoyance, so I
wrote &amp;quot;srtrename&amp;quot;.

&lt;p&gt;&amp;quot;srtrename&amp;quot; operates under the assumption that it is invoked in a folder
with only video files and subtitle files, and that the names of both have a 
&amp;quot;SSxEE&amp;quot; or &amp;quot;SxE&amp;quot; (season / episode) naming convention, plus an arbitrary amount of
noise (such as the name of the show itself).  It matches up the subtitle and video
files, then prints a series of 'mv -i' commands that would perform the renaming to
make the subtitle and video files match.  I run it once to look at what it would
do, then run it a second time piped to sh to actually do the deed.

&lt;p&gt;I've only used this lightly, but it seems to do the trick.

&lt;p&gt;Note: some extensions for video files are hardcoded; if you have files with a
different extension, just add them to the video = glob… line in the obvious
(I hope!) way.

&lt;p&gt;&lt;p&gt;&lt;b&gt;Files currently attached to this page:&lt;/b&gt;
&lt;table cellpadding=5 style=&quot;width:auto!important; clear:none!important&quot;&gt;&lt;col&gt;&lt;col style=&quot;text-align: right&quot;&gt;&lt;tr bgcolor=#eeeeee&gt;&lt;td&gt;&lt;a href=&quot;https://media.unpythonic.net/emergent-files/01305838170/srtrename&quot;&gt;srtrename&lt;/a&gt;&lt;/td&gt;&lt;td&gt;514 bytes&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;
</content>
</entry>
<entry>
<title>Fractal animation</title>
<issued>2011-04-18T15:42:58Z</issued>
<modified>2011-04-18T15:42:58Z</modified>
<id>https://gamma.unpythonic.net/01303141378</id>
<link rel="alternate" type="text/html" href="https://gamma.unpythonic.net/01303141378"/>
<content type="text/html" mode="escaped">
I've been playing with &lt;a href=&quot;http://sites.google.com/site/mandelbulber/&quot;&gt;mandelbulber&lt;/a&gt;, a GPL 3D fractal renderer that runs on Linux and Windows.  Among
other things, it can make animations.  I haven't had this much fun since I
first discovered fractint in the early 1990s.

&lt;p&gt;The animation is an IFS-type fractal modified by the spherical folding mode.
It explores the &amp;quot;alpha&amp;quot;, &amp;quot;beta&amp;quot; and &amp;quot;gamma&amp;quot; rotations under General IFS
Parameters, ultimately returning to the initial configuration. (too bad
I can't figure out how to make the player loop the clip!)

&lt;p&gt;Check it out:</content>
</entry>
</feed>
