<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MPEG on Wimpy's World</title><link>https://blog.wimpys.world/tags/mpeg/</link><description>Recent content in MPEG on Wimpy's World</description><generator>Hugo -- gohugo.io</generator><language>en-gb</language><managingEditor>martin@wimpress.com (Martin Wimpress)</managingEditor><webMaster>martin@wimpress.com (Martin Wimpress)</webMaster><lastBuildDate>Wed, 22 Apr 2009 18:00:07 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/mpeg/rss.xml" rel="self" type="application/rss+xml"/><item><title>IMDB Film Summary as a MPEG-2 video</title><link>https://blog.wimpys.world/posts/imdb-film-summary-as-a-mpeg-2-video/</link><pubDate>Wed, 22 Apr 2009 18:00:07 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/imdb-film-summary-as-a-mpeg-2-video/</guid><description>&lt;p&gt;&lt;strong&gt;UPDATE! I no longer use or maintain the script below. I suggest the vastly
superior &lt;a href="http://www.bunyipawonga.org/sheetmaker/index.php"&gt;Sheet Maker for Linux&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;ve read my blog before you&amp;rsquo;ll know I run Mediatomb DLNA server with my
PlayStation 3 as the client, You&amp;rsquo;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.&lt;/p&gt;
&lt;p&gt;My script is called IMDB-to-MPEG and I&amp;rsquo;ve finally got round to uploading it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/flexiondotorg/IMDB-to-MPEG"&gt;IMDB-to-MPEG&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; The Usual Suspects (1995)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; A boat has been destroyed, criminals are dead, and
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; the key to this mystery lies with the only
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; survivor and his twisted, convoluted story
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; beginning with five career crooks in a seemingly
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; random police lineup. (106 mins)
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Starring Stephen Baldwin as Michael McManus,
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Gabriel Byrne as Dean Keaton, Benicio Del Toro as
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Fred Fenster, Kevin Pollak as Todd Hockney, and
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Kevin Spacey as Roger &amp;#39;Verbal&amp;#39; Kint.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Genres: Crime, Mystery, Thriller.
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; Rated 8.7 out of 10 from 227,964 votes.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;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&amp;quot; plasma from my sofa.&lt;/p&gt;
&lt;p&gt;Directories for each matching genre are created and also one for the IMDB
rating (rounded down). The MPEG-2 is stored in the &amp;lsquo;All&amp;rsquo; folder and then
symlinked to the genres and rating for that film. I then copy my video into
the appropriate directory in &amp;lsquo;All&amp;rsquo;. For example.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; .
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |-- All
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   `-- The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |       `-- About_The_Usual_Suspects.mpg
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |-- Genres
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   |-- Crime
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   |   `-- The_Usual_Suspects -&amp;gt; ../../All/The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   |-- Mystery
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   |   `-- The_Usual_Suspects -&amp;gt; ../../All/The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |   `-- Thriller
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |       `-- The_Usual_Suspects -&amp;gt; ../../All/The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; |-- Ratings
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; `-- 8
&lt;/span&gt;&lt;/span&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt; `-- The_Usual_Suspects -&amp;gt; ../../All/The_Usual_Suspects
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This code was lashed up in a few hours, it ain&amp;rsquo;t pretty but it works for me on
my Ubuntu systems, maybe it&amp;rsquo;ll work for you too.&lt;/p&gt;</description><summary>Create film preview information for your UPnP server</summary></item></channel></rss>