import org.apache.commons.lang.StringUtils;
import saccubus.ConvertStopFlag;
import saccubus.conv.ConvertToVideoHook;
-import yukihane.saccubus.converter.profile.NgSetting;
+import yukihane.saccubus.converter.profile.ConvertProfile;
import yukihane.saccubus.converter.profile.FfmpegProfile;
-import yukihane.saccubus.converter.profile.FfmpegOption;
import yukihane.saccubus.converter.profile.GeneralProfile;
import saccubus.net.TextProgressListener;
import yukihane.mediainfowrapper.Info;
import yukihane.mediainfowrapper.MediaInfo;
import yukihane.mediainfowrapper.Size;
+import yukihane.saccubus.converter.profile.ConvertProfile.HideCondition;
import yukihane.swf.Cws2Fws;
/**
private final File commentFile;
private final File videoFile;
private final File convertedVideoFile;
- private final FfmpegProfile ffmpeg;
+ private final ConvertProfile ffmpeg;
FfmpegCommand(TextProgressListener listener, ConvertStopFlag flag, File commentFile,
- File videoFile, File convertedVideoFile, FfmpegProfile ffmpeg, GeneralProfile general) throws IOException {
+ File videoFile, File convertedVideoFile, ConvertProfile ffmpeg, GeneralProfile general) throws IOException {
super(listener, flag);
this.commentFile = commentFile;
this.videoFile = videoFile;
}
private boolean exec() throws InterruptedException, IOException {
- final NgSetting ngSetting = getFfmpeg().getNgSetting();
+ final HideCondition ngSetting = getFfmpeg().getNgSetting();
if (commentFile != null) {
sendText("コメントの中間ファイルへの変換中");
boolean conv = ConvertToVideoHook.convert(commentFile, commentMiddleFile, ngSetting.getId(), ngSetting.
}
private int converting_video(File videoFile, File convertedVideoFile, boolean addComment, String commPath,
- boolean addTcomment, String tcommPath, FfmpegOption ov) throws InterruptedException, IOException {
+ boolean addTcomment, String tcommPath, FfmpegProfile ov) throws InterruptedException, IOException {
File fwsFile = Cws2Fws.createFws(videoFile, TMP_CWS);
List<String> cmdList = new ArrayList<String>();
sb.append("--enable-show-video");
sb.append("|");
}
- if (getFfmpeg().isSelfAdjustFontSize()) {
+ if (!getFfmpeg().isDisableFontSizeArrange()) {
sb.append("--enable-fix-font-size");
sb.append("|");
}
return sb.toString();
}
- private FfmpegProfile getFfmpeg() {
+ private ConvertProfile getFfmpeg() {
return ffmpeg;
}
}