Ticket #3064: mencoder-xvid.patch
File mencoder-xvid.patch, 2.2 KB (added by , 17 years ago) |
---|
-
mencoder/XviD.pm
old new 119 119 my $self = shift; 120 120 my $episode = shift; 121 121 # Build the mencoder string 122 my $params = " -ovc xvid -vop scale=$self->{'width'}:$self->{'height'}" 122 my $params = " -ovc xvid -vf scale=$self->{'width'}:$self->{'height'}" 123 123 124 #." -N 0x55" # make *sure* we're exporting mp3 audio 124 125 125 126 #." -oac mp3lame -lameopts vbr=3:br=$self->{'a_bitrate'}" … … 138 139 print "First pass...\n"; 139 140 $self->{'mencoder_xtra'} = " $params" 140 141 ." -passlogfile /tmp/xvid.$$.log" 141 ." - nosound"142 ." -xvidencopts bitrate=$self->{'v_bitrate'}:pass=1 ";142 ." -oac copy" 143 ." -xvidencopts bitrate=$self->{'v_bitrate'}:pass=1:quant_type=mpeg:threads=2:keyframe_boost=10:kfthreshold=1:kfreduction=20 "; 143 144 $self->SUPER::export($episode, '', 1); 144 145 # Restore the path 145 146 $self->{'path'} = $path_bak; 146 147 # Second pass 147 148 print "Final pass...\n"; 148 149 $self->{'mencoder_xtra'} = " $params" 149 ." -oac mp3lame -lameopts vbr=3:br=$self->{'a_bitrate'}"150 ." -oac mp3lame -lameopts cbr:br=$self->{'a_bitrate'}" 150 151 ." -passlogfile /tmp/xvid.$$.log" 151 ." -xvidencopts bitrate=$self->{'v_bitrate'}:pass=2 ";152 ." -xvidencopts bitrate=$self->{'v_bitrate'}:pass=2:quant_type=mpeg:threads=2:keyframe_boost=10:kfthreshold=1:kfreduction=20 "; 152 153 } 153 154 # Single pass 154 155 else { 155 156 $self->{'mencoder_xtra'} = " $params" 156 ." -oac mp3lame -lameopts vbr=3:br=$self->{'a_bitrate'}";157 ." -oac mp3lame -lameopts cbr:br=$self->{'a_bitrate'}"; 157 158 if ($self->{'quantisation'}) { 158 159 $self->{'mencoder_xtra'} .= " -xvidencopts fixed_quant=".$self->{'quantisation'}; 159 160 }