Search in sources :

Example 1 with ProgressReadLine

use of org.fagu.fmv.ffmpeg.operation.ProgressReadLine in project fmv by f-agu.

the class FFExecutor method getErrReadLine.

/**
 * @return
 */
protected ReadLine getErrReadLine() {
    List<ReadLine> lines = new ArrayList<>();
    if (progressReadLine != null) {
        lines.add(progressReadLine);
    }
    ReadLine readLine = operation.getErrReadLine();
    if (readLine != null) {
        lines.add(readLine);
    }
    if (debug) {
        lines.add(errDebugConsumer::accept);
    }
    if (!libLogReadLine.isEmpty()) {
        lines.add(libLogReadLine);
    }
    if (!errReadLines.isEmpty()) {
        lines.addAll(errReadLines);
    }
    if (!readLines.isEmpty()) {
        lines.addAll(readLines);
    }
    return MultiReadLine.createWith(lines);
}
Also used : ArrayList(java.util.ArrayList) FFMPEGProgressReadLine(org.fagu.fmv.ffmpeg.operation.FFMPEGProgressReadLine) LibLogReadLine(org.fagu.fmv.ffmpeg.operation.LibLogReadLine) MultiReadLine(org.fagu.fmv.soft.exec.MultiReadLine) ProgressReadLine(org.fagu.fmv.ffmpeg.operation.ProgressReadLine) ReadLine(org.fagu.fmv.soft.exec.ReadLine) BufferedReadLine(org.fagu.fmv.soft.exec.BufferedReadLine)

Aggregations

ArrayList (java.util.ArrayList)1 FFMPEGProgressReadLine (org.fagu.fmv.ffmpeg.operation.FFMPEGProgressReadLine)1 LibLogReadLine (org.fagu.fmv.ffmpeg.operation.LibLogReadLine)1 ProgressReadLine (org.fagu.fmv.ffmpeg.operation.ProgressReadLine)1 BufferedReadLine (org.fagu.fmv.soft.exec.BufferedReadLine)1 MultiReadLine (org.fagu.fmv.soft.exec.MultiReadLine)1 ReadLine (org.fagu.fmv.soft.exec.ReadLine)1