Recently I wanted to figure out the best settings in regards to the go pro long exposure hack for my Go Pro 3 Black.
I eventually would like to figure out the best settings for: fireworks, night skies, and camp fires. To be used for timelapse videos
In order to test I created a lengthy ash script with most (not all) of the setting options laid out in the authors site.
* @author Owen Gerig / AA
private static String pathString = "C:\\Users\\dever\\Desktop\\picdir\\";
private static String folder1 = "C:\\Users\\dever\\Desktop\\picdir\\100,2,8,5\\";
private static String folder2 = "C:\\Users\\dever\\Desktop\\picdir\\300,2,8,5\\";
private static String folder3 = "C:\\Users\\dever\\Desktop\\picdir\\600,2,8,5\\";
private static String folder4 = "C:\\Users\\dever\\Desktop\\picdir\\800,2,8,5\\";
private static String folder5 = "C:\\Users\\dever\\Desktop\\picdir\\100,5,7,7\\";
private static String folder6 = "C:\\Users\\dever\\Desktop\\picdir\\300,5,7,7\\";
private static String folder7 = "C:\\Users\\dever\\Desktop\\picdir\\600,5,7,7\\";
private static String folder8 = "C:\\Users\\dever\\Desktop\\picdir\\800,5,7,7\\";
private static String folder9 = "C:\\Users\\dever\\Desktop\\picdir\\100,15,7,3\\";
private static String folder10 = "C:\\Users\\dever\\Desktop\\picdir\\300,15,7,3\\";
private static String folder11 = "C:\\Users\\dever\\Desktop\\picdir\\600,15,7,3\\";
private static String folder12 = "C:\\Users\\dever\\Desktop\\picdir\\800,15,7,3\\";
private static String folder13 = "C:\\Users\\dever\\Desktop\\picdir\\100,20,7,1\\";
private static String folder14 = "C:\\Users\\dever\\Desktop\\picdir\\300,20,7,1\\";
private static String folder15 = "C:\\Users\\dever\\Desktop\\picdir\\600,20,7,1\\";
private static String folder16 = "C:\\Users\\dever\\Desktop\\picdir\\800,20,7,1\\";
private static String folder17 = "C:\\Users\\dever\\Desktop\\picdir\\100,30,6,8\\";
private static String folder18 = "C:\\Users\\dever\\Desktop\\picdir\\300,30,6,8\\";
private static String folder19 = "C:\\Users\\dever\\Desktop\\picdir\\600,30,6,8\\";
private static String folder20 = "C:\\Users\\dever\\Desktop\\picdir\\800,30,6,8\\";
private static String folder21 = "C:\\Users\\dever\\Desktop\\picdir\\100,85,5\\";
private static String folder22 = "C:\\Users\\dever\\Desktop\\picdir\\300,85,5\\";
private static String folder23 = "C:\\Users\\dever\\Desktop\\picdir\\600,85,5\\";
private static String folder24 = "C:\\Users\\dever\\Desktop\\picdir\\800,85,5\\";
private static String folder25 = "C:\\Users\\dever\\Desktop\\picdir\\100,255,2\\";
private static String folder26 = "C:\\Users\\dever\\Desktop\\picdir\\300,255,2\\";
private static String folder27 = "C:\\Users\\dever\\Desktop\\picdir\\600,255,2\\";
private static String folder28 = "C:\\Users\\dever\\Desktop\\picdir\\800,255,2\\";
private static String folder29 = "C:\\Users\\dever\\Desktop\\picdir\\100,600,0,33333\\";
private static String folder30 = "C:\\Users\\dever\\Desktop\\picdir\\300,600,0,33333\\";
private static String folder31 = "C:\\Users\\dever\\Desktop\\picdir\\600,600,0,33333\\";
private static String folder32 = "C:\\Users\\dever\\Desktop\\picdir\\800,600,0,33333\\";
* moves the file via the renameTo method
* @param file to be moved
* @param newPath path that the file should be moved to
public static void renameFile(File file, String newPath) {
String fileName = file.getName();
if (file.renameTo(new File(newPath + fileName))) {
System.out.println(fileName + " was moved successful!");
System.out.println(fileName + " failed to move!");
* main, runs when the program starts, sorts photos into specific folders
* @param args no arguements taken!!!
public static void main(String[] args) {
File folder = new File(pathString);
File[] listOfFiles = folder.listFiles();
for (int i = 0; i < listOfFiles.length; i++) {
if (listOfFiles[i].isFile()) {
File file = listOfFiles[i];
renameFile(file, folder1);
renameFile(file, folder2);
renameFile(file, folder3);
renameFile(file, folder4);
renameFile(file, folder5);
renameFile(file, folder6);
renameFile(file, folder7);
renameFile(file, folder8);
renameFile(file, folder9);
renameFile(file, folder10);
renameFile(file, folder11);
renameFile(file, folder12);
renameFile(file, folder13);
renameFile(file, folder14);
renameFile(file, folder15);
renameFile(file, folder16);
renameFile(file, folder17);
renameFile(file, folder18);
renameFile(file, folder19);
renameFile(file, folder20);
renameFile(file, folder21);
renameFile(file, folder22);
renameFile(file, folder23);
renameFile(file, folder24);
renameFile(file, folder25);
renameFile(file, folder26);
renameFile(file, folder27);
renameFile(file, folder28);
renameFile(file, folder29);
renameFile(file, folder30);
renameFile(file, folder31);
renameFile(file, folder32);