}
validSetting();
- final FfmpegProfile ov = profile.getFfmpeg().getFfmpegOption();
// TODO ログインしないで良い場合もある.
publish(new DownloadProgress("ログイン中"));
@Override
public void progress(long fileSize, long downloadSize) {
- throw new UnsupportedOperationException("Not supported yet.");
- }
-
- @Override
- public boolean getCancel() {
- throw new UnsupportedOperationException("Not supported yet.");
+ final double vol = (double) downloadSize / (double) fileSize * 100.0;
+ publish(new DownloadProgress(String.format("ダウンロード%.2f%%", vol)));
}
});
import yukihane.mediainfowrapper.MediaInfo;
import yukihane.mediainfowrapper.Size;
import saccubus.converter.profile.ConvertProfile.HideCondition;
+import saccubus.converter.profile.Profile;
import yukihane.swf.Cws2Fws;
/**
private final File videoFile;
private final File convertedVideoFile;
private final ConvertProfile ffmpeg;
+ private final Profile profile;
Ffmpeg(File commentFile, File videoFile, File convertedVideoFile, ConvertProfile ffmpeg,
- GeneralProfile general) throws IOException {
+ GeneralProfile general, Profile profile) throws IOException {
this.commentFile = commentFile;
this.videoFile = videoFile;
this.convertedVideoFile = convertedVideoFile;
this.ffmpeg = ffmpeg;
+ this.profile = profile;
File tmpDir = general.getTempDir();
commentMiddleFile = File.createTempFile("vhk", ".tmp", tmpDir);
}
private FfmpegResult exec() throws InterruptedException, IOException {
+ final FfmpegProfile ov = profile.getFfmpeg().getFfmpegOption();
final HideCondition ngSetting = getFfmpeg().getNgSetting();
if (commentFile != null) {
publish(new FfmpegProgress("コメントの中間ファイルへの変換中"));