Friday, 23 October 2009

Converting TS files to a DVD

A couple of years ago, we got a Humax PVR9200T (link is to current equivalent) - a Freeview, twin tuner hard disk recorder.  It's been - and still is - fantastic.  A hard disk recorder literally does change the way you view TV.  And I don't know why people pay a fortune every month for Sky+ when for one payment of £180 (now less), you can own a machine that does the same thing.

One of its features is a USB socket, from which you can copy recorded programmes onto a computer.  They come across as MPEG transmission stream files (*.ts).  They can be watched on your computer (good old VLC!) but if you want to put them on a playable DVD then a little work is required.

You need to demux the TS file into separate video and audio streams, correcting any errors from the transmission while you do so, edit the streams if you want (say, to remove ads), remux the streams into an MPEG file, create a DVD file structure with the MPEG file, create an ISO for the DVD and then burn the ISO onto a DVD.

I'm sure there are commercial programs out there to do all this for you, but I don't want to pay for this, so I did a little digging and, sure enough, on the UK Humax forum someone has very kindly told you what tools to use and put a batch file together to do the whole thing for you.

However, since I use Ubuntu rather than Windows, I decided to rewrite the batch file as a shell script, and change the tools since some of them were Windows only.  Linked below is the fruit of my labours.  There's a readme for more info, which I strongly recommend you read - you do need to install some software yourself.

Download the ZIP file

Hope it helps you and I'll be interested in any feedback.  Although of course you do use it at your own risk.  Don't blame me if it accidentally deletes your favourite film, wipes your hard disk, kicks your cat or insults your mother.

No comments:

Post a Comment