User Manual Page
Archiving and Exporting Recordings
As your number of recorded programs grows, you may find yourself wanting to archive programs in order to free up disc space. It is possible to export programs to DVD's, or even create files compatible with portable devices such as PSP, iPhones, iPods.
Detailed information about this process can be found in the Archiving and Exporting Recordings sub chapter of this manual.
Archiving and Exporting Recordings Page
This page was originally taken from the User Guide:Daily Use Chapter. Credit goes to the original authors of this text.
At some point you will want to archive your TV recordings for safe keeping. There are however some complications with this, due to the way Digital TV content is held on your hard drive. MythTV stores its recordings in the "/mnt/video" directory by default. You will find files in here with a .nuv or .mpg file extension and a long complicated name based on the recording schedule. These files are either in NuppelVideo format or MPEG-2 (Program or Transport Stream) format. To archive these files to DVD they will need to be either be transcoded if NuppelVideo format, or remultiplexed to specially formatted MPEG-2 files suitable for burning to DVD.
MythTV 0.20 plug-ins now includes MythArchive for archiving your recordings. What follows is for users of MythTV 0.19 or earlier. A separate detailed guide exists for SUSE users at http://acaciaclose.co.uk/28654/124502.html. There are also prebuilt scripts to do all of the steps below automagically called MythBurn.
The process to archive recordings to DVD before version 0.20 involves the use of several external tools in the following steps:
Split DVB File with ProjectX
Project X takes a collection of DVB stream files and concatenates them into one big project. You can trim the files here also. It will then create synchronization marks between the audio and video. You can use the default settings.
Create DVD MPEG-2 stream
We now can convert the above output video (m2v) and audio stream (mp2) generated by projectX to a DVD compatible stream. We use the mplex command, which is part of mjpegtools. You will then have a .mpg file with combined audio and video all nicely synchronized.
> mplex -f 8 -o 1.mpg 1.m2v 1.mp2
Create a DVD Image with KDE_DVDAuthor
KDE DVD Author will allow you to create very nice DVD's complete with animated menus. You do not need to compile it. Just download and click on the installer.kmdr icon and KDE will install it. KDE DVDAuthor is a KDE Kommander application.
- DVD Author
Just follow the steps in the wizard, adding in the video , audio and images files that it asks for. It wil then generate a DVD ISO image once it completes.
Burn DVD image using K3b
K3b includes a wizard to burn DVD ISO images. You will find it under the Tools pull down. Tools -> Burn DVD ISO image. Just load up the ISO image from step 3, and you are done.
MythTV recordings can be exported into multiple different formats such as iPod or PSP compatible MPEG-4 files, DivX and Xvid files, or files to burn to VCD, SVCD or DVD with the use of Nuvexport, which as of 0.21 is included in MythTV. It can also be downloaded from https://svn.forevermore.net/nuvexport/.
Nuvexport is a command line program that can be used to create a copy of your recording in the following formats: Xvid, SVCD, VCD, DVCD, DVD, DivX, ASF, MP3, PSP, iPod, and MPEG-2 (though the iPod and PSP export options are currently unavailable). It does not alter the original file in any way, just gives you a new one in a folder of your choosing.
When run, it will use information from the MythTV database to give you a list of all your recordings to choose from, and allow various options such as resizing the video, cutting out sections marked with MythTV's edit cut list, altering the bitrate, and various other things. A work in progress manual for nuvexport can be found at http://www.inaudible.co.uk/nuvexport.
There is also a specialized script that allows you to transcode your files and subscribe to them on your iPod available at http://myth2ipod.com/. This utility uses nuvexport, and then does special post-processing with MP4Box to create an iPod-ready video. It will even generate an RSS feed for your shows, which you can subscribe to in iTunes. Currently (6/22/06) transcoding HD shows doesn't appear to work - you get rolling colors and disjointed sound. This is apparently a bug in nuvexport. SD shows work fine though.
http://www.gentoo-wiki.com/TIP_MythTV_to_iPod is an alternative to http://myth2ipod.com/. While this how to is aimed at Gentoo users, it can be applied to any distro. Features include tagging files correctly (so they show up in TV shows instead of movies by default) and user job integration instructions.
Exporting to Flash
You may find it useful to read the section on exporting to your recordings to flash file format. This will allow you to easily watch recordings using a web browser. As of version 0.21 mythweb is being rewritten to allow this support this natively. As of 31st August '09, this is experimentally built into mythweb, although it is not enabled by default.