Skip to content

Commit 9d8e117

Browse files
committed
take advantage of multiple cpu's -- it does seem to help now.
1 parent 671c46e commit 9d8e117

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

trunk/export/transcode.pm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,12 @@ package export::transcode;
9797
$transcode = "nice -n $Args{'nice'} transcode"
9898
# -V is now the default, but need to keep using it because people are still using an older version of transcode
9999
.' -V' # use YV12/I420 instead of RGB, for faster processing
100-
#.' -u 100,'.($num_cpus); # Take advantage of multiple CPU's? currently disabled because it actually seems to slow things down
101100
.' --print_status 16' # Only print status every 16 frames -- prevents buffer-related slowdowns
102101
;
102+
# Take advantage of multiple CPU's?
103+
if ($num_cpus > 1) {
104+
$transcode .= ' -u 100,'.($num_cpus);
105+
}
103106
# Not an mpeg
104107
unless ($episode->{'finfo'}{'is_mpeg'}) {
105108
# swap red/blue -- used with svcd, need to see if it's needed everywhere

0 commit comments

Comments
 (0)