Skip to content

Commit 53a847b

Browse files
committed
try to work around transcode's new status-printing methods (not very good, unfortunately)
1 parent 8650132 commit 53a847b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

nuvexport/export/transcode.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ package export::transcode;
9191

9292
# Start the transcode command
9393
$transcode = "$NICE transcode"
94+
# No colored log messages (too much work to parse)
95+
.' --log_no_color'
9496
# Only print status every 16 frames -- prevents buffer-related slowdowns
9597
.' --progress_meter 2 --progress_rate 16'
9698
;
@@ -372,10 +374,10 @@ package export::transcode;
372374
$fps = $status{'fps'};
373375
}
374376
# Look for error messages
375-
elsif ($l =~ m/\[transcode\] warning/) {
377+
elsif ($l =~ m/\]\W+warning/i) {
376378
$warnings .= $l;
377379
}
378-
elsif ($l =~ m/\[transcode\] critical/ || $l =~ m/segmentation fault/i) {
380+
elsif ($l =~ m/\]\W+critical/i || $l =~ m/segmentation fault/i) {
379381
$warnings .= $l;
380382
die "\n\nTranscode had critical errors:\n\n$warnings";
381383
}

0 commit comments

Comments
 (0)