Bag of Spoons
Just off the A1(M)

Mon, 16 Apr 2007

Converting TV to Divx

I'm happily recording TV on my Freeview card, but the files are a little big at around 2GB/hour. I've done some playing around with converting to Divx and now have a little script that converts to a reasonable looking Divx of around a quarter of the original size. The only problem is that the resulting files always play back in full screen (4:3) rather than the original widescreen (16:9) as the big versions (in MPEG) do. I've been reading various sites, but the mencoder manual says that it is possible to get the right aspect ration as long as you play back in mplayer. I've tried the example options at the bottom of this page, but got a 'FATAL: Cannot initialize video driver' error.

For reference my script is:

mencoder "$1" -ovc lavc -lavcopts vpass=1 -oac copy -ffourcc DX50 turbo -o "$2"
mencoder "$1" -ovc lavc -lavcopts vpass=2 -oac copy -ffourcc DX50 -o "$2"

It uses two passes to improve the quality a little. So any ideas on what I should add to fix the aspect ratio? For now I am concentrating on generating files to play on the PC, but I will keep in mind that they may also get played on a Divz-capable DVD player through the TV.

I've had more contact with the author of ZapDVB. When we changed to summer time it started recording an hour later than I wanted it to. He pointed out that I had to run tzconfig to set my system's timezone. That fixed it.

Of course I also need a new TV one day. This one looks about right if someone wants to buy it for me. Apparently it burns about 1500W, so it will keep us warm too.

[22:21] | [] | comments (1) | G

Posted by Steve at Wed Apr 18 11:01:53 2007
Rumble suggested that I need not bother compressing the files as disk space is so cheap. That's a possibility. I still have the old mindset of wanting to save space all the time. I did have a thought of writing something that would start the player with the right aspect ratio, perhaps based on something in the filename. This could be an opportunity for a bit of Python.

Let's see if this comment works as Presh said his got rejected.

Name:


E-mail:


URL:


Comment:



About

Categories

Calendar
< April 2007 >
SuMoTuWeThFrSa
1 2 3 4 5 6 7
8 91011121314
15161718192021
22232425262728
2930     

Archives
2008-Nov
2008-Oct
2008-Sep
2008-Aug
2008-Jul
2008-Jun
2008-May
2008-Apr
2008-Mar
2008-Feb
2008-Jan
2007-Dec
2007-Nov
2007-Oct
2007-Sep
2007-Aug
2007-Jul
2007-Jun
2007-May
2007-Apr
2007-Mar
2007-Feb
2007-Jan
2006-Dec
2006-Nov
2006-Oct
2006-Sep
2006-Aug
2006-Jul
2006-Jun
2006-May
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Dec
2005-Nov
2005-Oct
2005-Sep
2005-Aug
2005-Jul
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Feb
2005-Jan
2004-Dec
2004-Nov
2004-Oct
2004-Sep
2004-Aug
2004-Jul
2004-Jun

Blogging
Subscribe if you like
XFN Friendly

Adverts
Linux.org
Get Firefox!
Flying Spaghetti Monster

Hosted at VeloceSystems

My reading
Anathem, by Neal Stephenson
Epic

The Bridge, by Iain Banks
Bargain

Colony, by Rob Grant
Bargain

That's Me In The Corner, by Andrew Collins
Xmas present

Global Village Idiot, by John O'Farrell
News humour

more...