[mythtv-users] Ticket #7668: ffmpeg errors with nuvexport onUbuntu 9.10

Brian J. Murrell brian at interlinx.bc.ca
Mon Jan 11 01:23:57 UTC 2010


On Sun, 2010-01-03 at 10:15 +0000, Malcolm Landon wrote: 
> 
> > I have nuvexport working here. I have a patch and advise on how to
> get it
> > working
> 
> 
> Brian - I'd be really grateful for details of your patch.

Sorry to take so long.  Just zero time here for much of anything.

Anyway, I have two patches to nuvexport-0.5-0.20090413 from SVN which
can be found at the nuvexport website.  The first patch makes nuvexport
work with the ffmpeg in Ubuntu:

--- export/ffmpeg.pm	2009-04-12 23:40:46.000000000 -0400
+++ /usr/share/nuvexport/export/ffmpeg.pm	2009-12-12 13:17:10.000000000 -0500
@@ -72,7 +72,7 @@
     # Check the ffmpeg version
         if (!defined $self->{'ffmpeg_vers'}) {
             $data = `$ffmpeg -version 2>&1`;
-            if ($data =~ m/ffmpeg\sversion\s0.5-/si) {
+            if ($data =~ m/ffmpeg\sversion\s(SVN-r\d+-4:)?0.5(-|\+svn)/si) {
                 $self->{'ffmpeg_vers'}  = '0.5';
             }
             # Disabled unti I need the formatting again to detect wacky ffmpeg

The second patch deals with some ffmpeg command line usage changes.  A
very strong caveat here, that I really have no idea about the various
switches for ffmeg and was just poking around in the dark until I found
something that worked and at least resembled what I was trying to fix:

--- export/ffmpeg/DivX.pm	2009-12-12 18:09:23.000000000 -0500
+++ /usr/share/nuvexport/export/ffmpeg/DivX.pm	2009-12-12 18:08:38.000000000 -0500
@@ -137,8 +137,7 @@
                                    . $self->param('bit_rate_tolerance', 32)
                                    . ' -bufsize 65535'
                                    . ' -lumi_mask 0.05 -dark_mask 0.02 -scplx_mask 0.5'
-                                   . ' -mv4'
-                                   . ' -part'
+                                   . ' -flags +4mv'
                                    . ' -vtag divx'
                                    . " -pass 1 -passlogfile '/tmp/divx.$$.log'"
                                    . ' -f avi';
@@ -154,8 +153,7 @@
                                    . $self->param('bit_rate_tolerance', 32)
                                    . ' -bufsize 65535'
                                    . ' -lumi_mask 0.05 -dark_mask 0.02 -scplx_mask 0.5'
-                                   . ' -mv4'
-                                   . ' -part'
+                                   . ' -flags +4mv'
                                    . ' -vtag divx'
                                    . ' -acodec '
                                    .($self->can_encode('libmp3lame') ? 'libmp3lame' : 'mp3')
@@ -176,8 +174,7 @@
                                         . ' -bufsize 65535'
                                        : '')
                                    . ' -lumi_mask 0.05 -dark_mask 0.02 -scplx_mask 0.5'
-                                   . ' -mv4'
-                                   . ' -part'
+                                   . ' -flags +4mv'
                                    . ' -vtag divx'
                                    . ' -acodec '
                                    .($self->can_encode('libmp3lame') ? 'libmp3lame' : 'mp3')

Cheers,
b.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20100110/0a4f66b1/attachment.pgp>


More information about the mythtv-users mailing list