Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.util.Log;

public class Main {
    public static String getVideo2gifCommand(long start, long length, int frame, String sourcePath, String outPath,
            int width, int height) {
        StringBuilder command = new StringBuilder("-ss ");
        command.append(start);
        command.append(" -t ");
        command.append(length);
        command.append(" -i ");
        command.append(sourcePath);
        command.append(" -s ");
        command.append(width + "x" + height);
        command.append(" -f ");
        command.append("gif");
        command.append(" -r ");
        command.append(frame);
        command.append(" ");
        command.append(outPath);
        Log.i("broncho", "command = " + command.toString());
        return command.toString();
    }
}