makeAvis vs VFapi discussion
- taifunbrowser
- Joined: Sat Sep 11, 2004 7:39 pm
- Location: DDR ARCADES
- Contact:
makeAvis vs VFapi discussion
k, after using Vfapi for the past year or so, I tried makeavis today and its 1000000x faster(yes, I'm exited)
...
How come noone warned me before?
oh well, does anyone have any factors to add to my argument for switching most of my footage to makeavis fakes?
Oh, and I'm trying to use makeavis on the commandline... anyone know how? I have a huge directory of matroskas I'm trying to frameserve to vegas (previously in vfapi, but my production is slowing to halt from speed)
...
How come noone warned me before?
oh well, does anyone have any factors to add to my argument for switching most of my footage to makeavis fakes?
Oh, and I'm trying to use makeavis on the commandline... anyone know how? I have a huge directory of matroskas I'm trying to frameserve to vegas (previously in vfapi, but my production is slowing to halt from speed)
- taifunbrowser
- Joined: Sat Sep 11, 2004 7:39 pm
- Location: DDR ARCADES
- Contact:
asdf
:heh: after researching this topic since last night, after posting the above post, I stumbled upon this:
http://hmd.c58.ru/files/avs2avi-0.3.zip
it works just as fast as makeavis, and its obviously command-line able.
brb making a java batch script to test
http://hmd.c58.ru/files/avs2avi-0.3.zip
it works just as fast as makeavis, and its obviously command-line able.
brb making a java batch script to test
- Scintilla
- (for EXTREME)
- Joined: Mon Mar 31, 2003 8:47 pm
- Status: Quo
- Location: New Jersey
- Contact:
- WC Annihilus
- Joined: Wed Jan 17, 2007 10:49 pm
- Zarxrax
- Joined: Sun Apr 01, 2001 6:37 pm
- Contact:
Almost no editing software supports AVS. Well, actually, I dont know of a SINGLE commercial editing application that supports it :\Tab. wrote:I'm profoundly curious -- what's the use for VFAPI nowadays? Just about any program you'd be using accepts AVS input (some -- MeGUI and WMNicEnc, to name a few, only support avs input.)
- Tab.
- Joined: Tue May 13, 2003 10:36 pm
- Status: SLP
- Location: gayville
- taifunbrowser
- Joined: Sat Sep 11, 2004 7:39 pm
- Location: DDR ARCADES
- Contact:
Hmm ya I guess I was using old regular vfapi :OScintilla wrote:Wait, you're talking about DGVFAPI, the one that was supposed to have fixed the big problems of old regular VFAPI?
Well, nevertheless, I made a batch script in java that converts a directory of mkv, ogm, divx avi, or whatever the hell other formats that vegas isnt liking first to avs and then to avi through avi2avs (NOT the moirin one, see my second post up for a link)
The syntax of the avs2avi I use is just avs2avi.exe <avs> <target>
Code: Select all
import java.io.File;
import java.io.FileWriter;
import java.io.FilenameFilter;
import java.io.IOException;
/**
* A class that allows you to convert all DirectShow'able videos in a directory to vegas-importable avis.
* @author Ben Braun
*/
public class batchANYtoAVI {
public static void main(String[] args){
String absPath = "C:/Users/Ben Braun/Videos/AMVable Footage/Haruhi";
File in = new File(absPath);
if (!in.exists())
System.out.println("absPath invalid!");
Prepare(in);
for (File a : in.listFiles(new FilenameFilter(){
public boolean accept(File dir, String Filename){
String[] temp = Filename.split("\\.");
if (temp.length == 0)
System.out.println("In trying to test for directshowability, "+Filename+" had no extension." + temp.length);
String extension = temp[temp.length-1].toLowerCase(); //Note lower case
if (Filename.toUpperCase().contains("-FAKE"))
return false;
if (extension.equals("avi"))
return true;
if (extension.equals("mpg"))
return true;
if (extension.equals("mkv"))
return true;
if (extension.equals("ogm"))
return true;
return false;
}
})){
String namewext = a.getName();
String name = stripExtention(namewext);
String avsName = name + "-GENERATED.avs";
String aviName = name + "-FAKE.avi";
try {
File dir = new File("C:/Program Files/Avs2Avi");
File exe = new File(dir.getAbsolutePath()+File.separator+"avs2avi.exe");
if(!exe.exists())
System.err.println("Couldn't find avs2avi.exe" + exe.getAbsolutePath());
String targetAvs = absPath+"/"+avsName;
makeAvs(targetAvs, absPath+"/"+namewext);
if (!new File(targetAvs).exists())
System.err.println("Avs does not exist.");
String targetAvi = absPath+"/"+aviName;
File output = new File(targetAvi);
if (!output.exists()){
String Command = ""C:/Program Files/AVS2AVI/avs2avi.exe" ""+targetAvs+"" ""+targetAvi+""";
System.out.println(Command);
Process p = Runtime.getRuntime().exec(Command);
Thread.sleep(1000);
}
} catch (IOException e){
e.printStackTrace();
} catch (InterruptedException e){
e.printStackTrace();
}
}
}
public static String stripExtention(String FileNamewExtension){
char[] name = FileNamewExtension.toCharArray();
int lastLoc = -1;
for (int i = 0; i < name.length; i++)
if (name[i]=='.')
lastLoc = i;
if (lastLoc == -1)
return "";
else
return FileNamewExtension.substring(0,lastLoc);
}
public static void makeAvs(String avsFile, String srcFile){
try {
File target = new File(avsFile);
target.delete();
target.createNewFile();
FileWriter fw = new FileWriter(target);
fw.append("DirectShowSource(""+srcFile+"", audio=false, fps=29.970, convertfps=true)"+System.getProperty("line.separator"));
fw.append("Lanczos4Resize(720,480)"+System.getProperty("line.separator"));
fw.close();
} catch (IOException e){
e.printStackTrace();
}
}
public static void Prepare(File directory){
for (File a : directory.listFiles()){
String name = a.getName();
int lastLoc = -1;
char[] chars = name.toCharArray();
for (int i = 0; i < chars.length; i++){
if (i=='.')
lastLoc = i;
}
if (lastLoc == -1)
continue; //No periods in file, thats ok... I guess...
name = name.substring(0,lastLoc).replace('.', '_') + name.substring(lastLoc);
//System.out.println(name);
a.renameTo(new File(directory.getAbsolutePath()+"/"+name));
}
}
}
- taifunbrowser
- Joined: Sat Sep 11, 2004 7:39 pm
- Location: DDR ARCADES
- Contact:
asdf
if you want to run the above code, just download eclipse, make a new java project, make a new class, and hit ALT+SHIFT+X to run.
My case is that avs2avi is better than makeavis because makeavis sometimes gives me "frame jiggle" on this computer, whereas I havent had this problem (yet) with avs2avi...
and, mainly that avs2avi is commandline usable, so batchscripts like the one I posted are easy.
I.E., someone add avs2avi to the guides because it works
OH and it has this cool feature where after installing the plugin, if you right click on any .avs file, it says "Wrap to avi" as a right-click option that makes it worthwhile right there (of course, as posted above, batching whole folders of all the eyeshield 21 ever existant in full HD format is much more fun )
My case is that avs2avi is better than makeavis because makeavis sometimes gives me "frame jiggle" on this computer, whereas I havent had this problem (yet) with avs2avi...
and, mainly that avs2avi is commandline usable, so batchscripts like the one I posted are easy.
I.E., someone add avs2avi to the guides because it works
OH and it has this cool feature where after installing the plugin, if you right click on any .avs file, it says "Wrap to avi" as a right-click option that makes it worthwhile right there (of course, as posted above, batching whole folders of all the eyeshield 21 ever existant in full HD format is much more fun )
- Zarxrax
- Joined: Sun Apr 01, 2001 6:37 pm
- Contact: