All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ws.schild.jave.encode.EncodingArgument Maven / Gradle / Ivy

Go to download

The JAVE (Java Audio Video Encoder) library is Java wrapper on the ffmpeg project. Developers can take take advantage of JAVE2 to transcode audio and video files from a format to another. In example you can transcode an AVI file to a MPEG one, you can change a DivX video stream into a (youtube like) Flash FLV one, you can convert a WAV audio file to a MP3 or a Ogg Vorbis one, you can separate and transcode audio and video tracks, you can resize videos, changing their sizes and proportions and so on. Many other formats, containers and operations are supported by JAVE2.

There is a newer version: 3.5.0
Show newest version
package ws.schild.jave.encode;

import java.util.stream.Stream;

/**
 * An EncodingArgument is a placeholder for a future argument to FFMPEG. It uses the
 * EncodingAttributes object to determine context and provides a Stream<String> of arguments
 * back to the caller to be used as arguments.
 *
 * @author mressler
 */
public interface EncodingArgument {

  /**
   * Gets the Stream of arguments given the EncodingAttributes as context. Implementers must take
   * care to return a new Stream on each successive call as doing otherwise will result in the
   * stream already being operated on exceptions.
   *
   * @param context The EncodingAttributes specified by the user. Use this in your closure to
   *     generate the arguments you'd like to pass to ffmpeg.
   * @return A stream of arguments to pass to ffmpeg.
   */
  public Stream getArguments(EncodingAttributes context);

  public ArgType getArgType();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy