Thursday 9 November 2006

Patch for mkmovie

The following patch removes aspect ratio options from mencoder which causes it to bomb out.


These were some modifications that were needed to get things running on my setup.



--- /usr/bin/mkmovie    2006-11-08 19:00:23.000000000 +0000
+++ mkmovie 2006-11-06 21:15:32.000000000 +0000
@@ -329,7 +329,7 @@
} while (($retval != 0) and not($stoprun));
$command = "mencoder -idx " . $files . " -ovc lavc " .
" -lavcopts vcodec=mpeg4:vhq:vbitrate=" . $vbr . ":keyint=" .
- $keyint . ":aspect=" . $aspect .
+ $keyint .
" -oac mp3lame -lameopts cbr:cbr=" . $abr .
":padding=0 -o " . $currfile .
" -noskip";
@@ -398,7 +398,7 @@
$currfile = "seg" . $segcounter . "-" . $$ . ".avi";
$command = "mencoder -idx " . $input . " -ovc lavc " .
" -lavcopts vcodec=mpeg4:vhq:vbitrate=" . $vbr . ":keyint=" .
- $keyint . ":aspect=" . $aspect .
+ $keyint .
" -oac mp3lame -lameopts cbr:cbr=" . $abr .
":padding=0 -o " . $currfile .
" -ss " . $startpos ." -endpos " . $endpos . " -noskip";
@@ -679,7 +679,7 @@

$command = "mencoder -mf w=" . $width . ":h=" . $height .
":fps=" . $fps . " -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=" . $vbr .
- ":keyint=" . $keyint . ":aspect=" . $aspect .
+ ":keyint=" . $keyint .
" -o " . $single . " mf://" . $png;
do {
unlink $single;

No comments:

Post a Comment