Idris Kadri
Front & Back End Developer & Animator

Automated Video Creator

Github

Languages & Tools: ffmpeg, Java, JavaFX

Ive created a few programs that automatically created video content from a spreadsheet file. These videos are then uploaded to youtube via API daily. The API automatically titles the video, adds descirptions, tags and other meta data found in the original spreadsheet. Youtube Channels: How To Electronics Review Medical Dictionary Yugioh Cards Pokedex  

 
 
   


Sample Code



	

void run() throws Exception{

boolean running = true;
boolean waiting = true;


while(running) {
if(runProgram) {
//consoleString();


checkComplete();
readVideoInfo.read("files/Dictionary.csv");
int i = 0;

while (i < list.length && runProgram) {


try {
initalize(i);
readActive.read("files/active.txt");

if (!filename.equals("delete")) {

System.out.println("TESTING2");

if (filename.equals(readActive.textLine.get(0))) {

System.out.println("Is active file...n");
statusString = "Is active file...n";

} else if (!completedList.contains(filename) && !filename.equals(readActive.textLine.get(0))) {
getCmd();
step1();
System.out.println("COMPLETEn");
mainString = ("STOPPED OR COMPLETEn");

if (i >= list.length) {
waiting = true;
}

} else {
System.out.println("Waiting...n");
statusString = "Waiting...n";
}
}

} catch (Exception e) {
System.out.println("Failed... Skipping..." + "n" + e.getMessage());
}
i++;

//getConsoleString();
}

if (waiting) {
System.out.println("Waiting...");
statusString = "Waiting...";
waiting = false;
}
}
}

}


//--------------------------------------------INITIALIZE------------------------------------------------------//

void checkComplete(){

new File("files/completed/").mkdirs();
new File("files/completed/uploaded").mkdirs();

list = new File("files/png").list();
completed = new File("files/completed/").listFiles();
uploaded = new File("files/completed/uploaded").listFiles();
completedList = new ArrayList<>();
pngList = new ArrayList<>();

for(int i = 0; i < completed.length; i++){
String tempCompleted = completed[i].getName().replace(".mp4","");
completedList.add(tempCompleted);
}

for(int i = 0; i < uploaded.length; i++){
String tempCompleted = uploaded[i].getName().replace(".mp4","");
completedList.add(tempCompleted);
}

for(int i = 0; i < completedList.size(); i++) {
//System.out.println("completed list : " + completedList.get(i));
}

for(int i = 0; i < list.length; i++){
pngList.add(list[i]);
}


for (int i = 0; i < pngList.size(); i++) {
for (int j = 0; j < completedList.size(); j++) {
if (completedList.get(j).equals(pngList.get(i))) {
pngList.remove(i);

if(pngList.get(i)==pngList.get(pngList.size()-1))
i = pngList.size();
}
}
}

completedList.clear();
}

Back