Beispiel #1
0
 public static boolean transcodingRequired(final String transcodedPath) {
   return Transcoder.transcodingRequired(transcodedPath, TARGET_ENCODING.getAttributes());
 }
Beispiel #2
0
 /**
  * Transcode the source file to target using the requested number of channels and sampling rate.
  *
  * @param source The path of the source file.
  * @param target The path of the target file. A stereo stream can be down mixed to a mono stream.
  *     Converting a mono stream to a stereo stream results in a file with two channels with the
  *     same data.
  * @throws EncoderException If FFMPEG fails to transcode the audio an
  *     UnsupportedAudioFileException is generated.
  * @throws IllegalArgumentException if the source file can not be read or the target file is not
  *     writable.
  */
 public static void transcode(final String source, final String target) throws EncoderException {
   transcode(source, target, TARGET_ENCODING.getAttributes());
 }