<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MythTV on Wimpy's World</title><link>https://blog.wimpys.world/tags/mythtv/</link><description>Recent content in MythTV 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>Thu, 22 Jan 2009 23:46:26 +0000</lastBuildDate><atom:link href="https://blog.wimpys.world/tags/mythtv/rss.xml" rel="self" type="application/rss+xml"/><item><title>Converting DVB-T to DVD Compliant MPEG-2</title><link>https://blog.wimpys.world/posts/converting-dvb-t-to-dvd-compliant-mpeg-2/</link><pubDate>Thu, 22 Jan 2009 23:46:26 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/converting-dvb-t-to-dvd-compliant-mpeg-2/</guid><description>&lt;p&gt;I am just about to clean up and convert another batch of programmes I have
recorded from Freeview (DVB-T in the UK) so that I can add them to my
DLNA Server. I thought I&amp;rsquo;d share the method I use on Ubuntu.&lt;/p&gt;
&lt;p&gt;By clean up, I mean edit out any adverts and trim crap from the start and the
end of the recordings. It just so happens that the result of this process is
a DVD compliant MPEG-2 which is suitable for DVD authoring, or in my case,
streaming around the house. This method of conversion should work for any DVB
PVR which allows you to export recordings via USB and, of course,
&lt;a href="http://www.mythtv.org/"&gt;MythTV&lt;/a&gt; or similar.&lt;/p&gt;
&lt;h2 id="dvb-ripping"&gt;DVB Ripping&lt;/h2&gt;
&lt;p&gt;I have a PlayTV add-on for the PlayStation 3 which enables me to record Freeview
(DVB-T) broadcasts to the PS3 internal hard disk. I mostly use PlayTV to record
films. To prevent the PlayStation 3 hard disk filling up with films I wanted to
export, edit out any adverts and then serve the edited file from my DLNA server
or author it to DVD.&lt;/p&gt;
&lt;p&gt;This process does not re-encode the audio or video therefore it is fairly quick
and the output is the same quality as the input.&lt;/p&gt;
&lt;p&gt;Although I am using a PlayStation 3 as PVR and MPEG-2 TS (Transport Stream) file
can be converted to a MPEG-2 PS (Program Stream) file using this process.&lt;/p&gt;
&lt;h2 id="export-from-playstation-3"&gt;Export from PlayStation 3&lt;/h2&gt;
&lt;h3 id="playtv-to-home-menu"&gt;PlayTV to Home Menu&lt;/h3&gt;
&lt;p&gt;First we need to move the recording from the PlayTV Library to the PS3 Home Menu.
Start PlayTV, open the Library, select the recording and choose the Move to Home
Menu option.&lt;/p&gt;
&lt;h3 id="copy-from-home-menu-to-external-usb"&gt;Copy from Home Menu to External USB&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Quit PlayTV&lt;/li&gt;
&lt;li&gt;Plug in an external (FAT32 formatted) USB drive to the PS3.&lt;/li&gt;
&lt;li&gt;Go to Video on the PS3 Home Menu and select the recording you moved there earlier.&lt;/li&gt;
&lt;li&gt;Select Copy from the Options screen and choose the external USB drive as the target.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="clean-mpeg-2-ts-and-convert-to-mpeg-2-ps"&gt;Clean MPEG-2 TS and convert to MPEG-2 PS&lt;/h2&gt;
&lt;p&gt;Plug the USB drive into your Ubuntu workstation and copy the &lt;code&gt;.m2ts&lt;/code&gt; file to your
hard disk.&lt;/p&gt;
&lt;p&gt;You will need to &lt;a href="http://project-x.sourceforge.net/"&gt;Project X&lt;/a&gt; to clean the
MPEG-2 TS and convert it to MPEG-2 PS.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install project-x
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="edit-out-the-adverts"&gt;Edit out the adverts&lt;/h2&gt;
&lt;p&gt;Start the Project X GUI and load your &lt;code&gt;.m2ts&lt;/code&gt; file.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;File -&amp;gt; Add&lt;/code&gt; and select your .m2ts file.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Now use Project X to add cut points to edit out any adverts.&lt;/p&gt;
&lt;h2 id="de-multiplex-the-audio-and-video"&gt;De-multiplex the audio and video&lt;/h2&gt;
&lt;p&gt;When you have completed your edits you need to &amp;lsquo;demux&amp;rsquo; the &lt;code&gt;.m2ts&lt;/code&gt; file into two
streams, one holding the audio (.mp2) and one holding the video (.m2v).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Click the &lt;code&gt;Prepare &amp;gt;&amp;gt;&lt;/code&gt; button.&lt;/li&gt;
&lt;li&gt;From the &lt;code&gt;Process Window&lt;/code&gt; select the &lt;code&gt;Action&lt;/code&gt; type &lt;code&gt;to M2P&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Click the start button and wait for the processing to finish.&lt;/li&gt;
&lt;li&gt;Clock the &amp;lsquo;&amp;lsquo;Process Windows&amp;rsquo;&amp;rsquo; and quit Project X.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="re-multiplex-the-audio-and-video"&gt;Re-multiplex the audio and video&lt;/h2&gt;
&lt;p&gt;The reason for the de-mux and then re-musing it to ensure the timecodes are
correct, other the video will not playback correctly.&lt;/p&gt;
&lt;p&gt;Install MJPEG tools.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;apt-get install mjpegtools
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now we need to re-multiplex the audio and video to create a DVD compliant MPEG-2 PS file.&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;mplex -f &lt;span class="m"&gt;8&lt;/span&gt; -o muxed-%d.mpg audio.mp2 video.m2v
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The &lt;code&gt;-f 8&lt;/code&gt; option specifies a dvd-compliant stream that is compatible with dvdauthor.
The &lt;code&gt;-o&lt;/code&gt; option specifies the outfile, you can substitute &lt;code&gt;muxed-%d.mpg&lt;/code&gt; with a
more descriptive name if you like. &lt;code&gt;%d&lt;/code&gt; is expanded to a number if &lt;code&gt;mplex&lt;/code&gt; decides
to split the output to several files, this usually happens when the recording
contains commercials and is nothing to worry about.&lt;/p&gt;
&lt;h2 id="author-dvd"&gt;Author DVD&lt;/h2&gt;
&lt;p&gt;The MPEG-2 PS file that has been created should be suitable for DVD authoring
using DeVeDe. When adding MPEG-2 PS files created using the method above open
the DeVeDe &lt;code&gt;Advanced options&lt;/code&gt; and select &lt;em&gt;This file is already a DVD/xCD-suitable
MPEG-PS file&lt;/em&gt; in the &lt;code&gt;Misc&lt;/code&gt; menu.&lt;/p&gt;
&lt;h4 id="references"&gt;References&lt;/h4&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://project-x.sourceforge.net/"&gt;http://project-x.sourceforge.net/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://ttcut.tritime.de/index.2.html"&gt;http://ttcut.tritime.de/index.2.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gopchop.org/index.php"&gt;http://gopchop.org/index.php&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://gopchop.sourceforge.net/"&gt;http://gopchop.sourceforge.net/&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.rastersoft.com/programas/devede.html"&gt;http://www.rastersoft.com/programas/devede.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><summary>Export PlayTV recorded video from PlayStation 3</summary></item><item><title>First Prototype of my Linux PVR</title><link>https://blog.wimpys.world/posts/first-prototype-of-my-linux-pvr/</link><pubDate>Tue, 11 Oct 2005 11:05:06 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/first-prototype-of-my-linux-pvr/</guid><description>&lt;p&gt;I have built an initial prototype of a Linux based PVR using some (very) old
hardware I had available. I simply plugged in a new &lt;a href="http://www.hauppauge.co.uk/pages/products/data_novatpci.html"&gt;Hauppauge Nova-T
PCI&lt;/a&gt; card and
hoped for the best. I got everything working but had to fudge things so that
over the air electronic program guide (EPG) can be imported into the MythTV
program guide database.&lt;/p&gt;
&lt;p&gt;This initial prototype uses &lt;a href="http://mysettopbox.tv/"&gt;KnoppMyth&lt;/a&gt; Release 5A16 so
that I could get up to speed as quickly as possible but I plan on using Debian
or Ubuntu in the future.&lt;/p&gt;</description><summary>Building a prototype Linux PVR with KnoppMyth</summary></item><item><title>When Linux meets Home Cinema</title><link>https://blog.wimpys.world/posts/when-linux-meets-home-cinema/</link><pubDate>Wed, 05 Oct 2005 11:02:43 +0000</pubDate><author>martin@wimpress.com (Martin Wimpress)</author><guid>https://wimpysworld.com/posts/when-linux-meets-home-cinema/</guid><description>&lt;p&gt;I have started working on a new project at home, it is one I know I am going
to enjoy because it satisfies two of my hobbies. I am going to build a
prototype PVR based on &lt;a href="http://www.mythtv.org/"&gt;MythTV&lt;/a&gt;.&lt;/p&gt;</description><summary>Combining my interests in Home Cinema &amp;amp; Linux</summary></item></channel></rss>