Package it.sauronsoftware.jave

Examples of it.sauronsoftware.jave.Encoder.encode()


    EncodingAttributes attrs = new EncodingAttributes();
    attrs.setFormat("mp3");
    attrs.setAudioAttributes(audio);
   
    Encoder encoder = new Encoder(new Myffmpeg());
    encoder.encode(source, target, attrs);
  }
 
  static void copyFileToOgg(File source) throws IllegalArgumentException, InputFormatException, EncoderException{
    File target = new File(getDirByExtension("ogg"), changeExtension(getRelativePath(source), ".ogg"));
    if (target.exists()) return;
View Full Code Here


    EncodingAttributes attrs = new EncodingAttributes();
    attrs.setFormat("ogg");
    attrs.setAudioAttributes(audio);
   
    Encoder encoder = new Encoder(new Myffmpeg());
    encoder.encode(source, target, attrs);
  }
 
  static void copyFileToWav(File source) throws IllegalArgumentException, InputFormatException, EncoderException{
    File target = new File(getDirByExtension("wav"), changeExtension(getRelativePath(source), ".wav"));
    if (target.exists()) return;
View Full Code Here

    audio.setSamplingRate(new Integer(44100));
    EncodingAttributes attrs = new EncodingAttributes();
    attrs.setFormat("wav");
    attrs.setAudioAttributes(audio);
    Encoder encoder = new Encoder(new Myffmpeg());
    encoder.encode(source, target, attrs);
  }
 
  static File getDirByExtension(String ext){
    for (int i = 0; i < soundDirs.size(); i++){
      String dirPath = soundDirs.get(i).getAbsolutePath();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.