[mythtv-users] How much space should transcoding HDTV to mpeg4 save?

devsk funtoos at yahoo.com
Mon Jan 22 05:11:37 UTC 2007

> but you would have to do the encode manually with mencoder (x264).

I went ahead and wrote a module for mencoder x264 for nuvexport. Its pretty easy to extend nuvexport (hats off to its author for making it so easy to extend it).

Put the attached X264.pm file in /usr/share/nuvexport/export/mencoder/.
Apply this simple patch to /usr/bin/nuvexport by hand (just add the two lines marked with '+' in the right place):

# diff -u /usr/bin/nuvexport.orig /usr/bin/nuvexport
--- /usr/bin/nuvexport.orig     2007-01-19 18:10:06.000000000 -0800
+++ /usr/bin/nuvexport  2007-01-21 21:06:41.000000000 -0800
@@ -73,6 +73,7 @@
             or die "You need mencoder in order to use nuvexport in --mencoder mode\n";
     # ffmpeg - seems to work better and is the default
         require export::mencoder::XviD;
+        require export::mencoder::X264;

 # Load the other export modules
@@ -103,6 +104,7 @@
     elsif ($export_prog eq 'mencoder') {
         push @Exporters, export::mencoder::XviD->new;
+        push @Exporters, export::mencoder::X264->new;
     push @Exporters, export::NUV_SQL->new;

Add this to your .nuxexportrc:

    multipass = yes
    vbr       = yes
    a_bitrate = 128   # Audio bitrate of 128 kbps
    v_bitrate = 1800   # Remember, quantisation overrides video bitrate
    width     = 640   # Height adjusts automatically to width, according to aspect ratio
    height    = auto

adjust to taste. And off you go with the best looking video compression ever.


----- Original Message ----
From: Steven Adeff <adeffs.mythtv at gmail.com>
To: Discussion about mythtv <mythtv-users at mythtv.org>
Sent: Sunday, January 21, 2007 3:46:31 PM
Subject: Re: [mythtv-users] How much space should transcoding HDTV to mpeg4 save?

On 1/19/07, ryan patterson <ryan.goat at gmail.com> wrote:
> On 1/19/07, Phill Edwards <philledwards at gmail.com> wrote:
> > > So I'm
> > > not too interested in down sampling the resolution of my recordings.
> >
> > Then you're not really going to downsize the size of the files very much,
> > then.
> Transcoding to a more efficient codec should allow smaller file sizes at the
> same quality.  MPEG-4 is capable of achieving equal quality with a lower
> bitrate compared to mpeg-2.

Regular mpeg4(aka xvid)  for HDTV size doesn't have this advantage,
which is where h264 comes in, but you would have to do the encode
manually with mencoder (x264).

Before you ask, read the FAQ!
then search the Wiki, and this list,
Mailinglist etiquette -
mythtv-users mailing list
mythtv-users at mythtv.org

Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20070121/15bb0c45/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: X264.pm
Type: application/octet-stream
Size: 7036 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-users/attachments/20070121/15bb0c45/attachment.obj 

More information about the mythtv-users mailing list