OSDN Git Service

ffmpegログ出力再考
[coroid/inqubus.git] / frontend / src / saccubus / worker / impl / convert / Convert.java
index d43d310..0b32eb7 100644 (file)
@@ -109,7 +109,7 @@ public class Convert extends Worker<ConvertResult, ConvertProgress> {
 
             final int code = convert(outputFile, transformedComment, transformedOwner);
             if (code != 0) {
-                throw new IOException("ffmpeg実行失敗: " + outputFile.getPath());
+                throw new IOException("ffmpeg実行失敗(code " + code + "): " + outputFile.getPath());
             }
             publish(new ConvertProgress(PROCESS, 100.0, "変換が正常に終了しました。"));
             return new ConvertResult(true, outputFile.getName());
@@ -224,11 +224,14 @@ public class Convert extends Worker<ConvertResult, ConvertProgress> {
                         per = 100.0 * time / duration;
                         if (logger.isTraceEnabled()) {
                             logger.trace("time:{}, duration:{}", time, duration);
+                            logger.trace(msg);
                         }
                     }
                     publish(new ConvertProgress(PROCESS, per, msg));
                 } else if (!msg.endsWith("No accelerated colorspace conversion found")) {
                     logger.warn(msg);
+                } else {
+                    logger.info(msg);
                 }
 
                 checkStop();