public void printProcess(String line) { // Akj_betasPlugin.getDefault(). Akj_betasPlugin.getDefault().getProcessPrinter().printError(line); if (FFMpegUtils.isProgressString(line)) { progressBytes(FFMpegUtils.getProgressSize(line)); } }
public void exec(File input, File output) { String exe = Akj_betasPlugin.getDefault() .getPluginPreferences() .getString(VideoToolsSettingPage.PATH_ATOMIC_PARSLEY); if (!exe.equals("")) { String command[] = { exe, output.getAbsolutePath(), "--DeepScan", "--iPod-uuid", "1200", "--overWrite" }; Akj_betasPlugin.getDefault().logPrintln(FFMpegUtils.toPrintCommand(command)); SimpleCommandExecuter executer = new SimpleCommandExecuter(command); executer.setPrinter(Akj_betasPlugin.getDefault().getProcessPrinter()); executer.execute(); } else { Akj_betasPlugin.getDefault().logPrintln("AtomicParsley.exe is not setted"); } }
public void faildConvert(File file, String message) { if (FFMpegUtils.isMP4FileName(file.getName())) { // MP4 not support pure_ffmpeg.exe StatusBarUtils.showStatusBar(Messages.getString("ffmpeg_statusbar.no_ffmpeg")); try { getProcessPrinter().printError(Messages.getString("ffmpeg_error.no_ffmpeg_mp4")); } catch (IOException e) { e.printStackTrace(); } perfomeCancel(); return; } else { StatusBarUtils.showStatusBar(Messages.getString("ffmpeg_statusbar.faild")); Akj_betasPlugin.getDefault() .getProcessPrinter() .printOutput("[faild:mp3]" + message + "," + file.getAbsolutePath() + "\n\n"); } }
public void endConvert(File file) { Akj_betasPlugin.getDefault() .getProcessPrinter() .printOutput("[complete:mp3]" + file.getAbsolutePath() + "\n\n"); setProgress(100); }
public IPreferenceStore getPreferenceStore() { return Akj_betasPlugin.getDefault().getPreferenceStore(); }