     printf("%f seconds spent\n", time_spent);
 
     if (!system(NULL)) { exit (EXIT_FAILURE);}
-    sprintf(ffmpegString, "ffmpeg -framerate 24 -i ../outfiles/tmp%%03d.ppm -c:v libx264 -r 30 -pix_fmt yuv420p ../outfilter.mp4");
+    sprintf(ffmpegString, "ffmpeg -framerate 24 -i outfiles/tmp%%03d.ppm -c:v libx264 -r 30 -pix_fmt yuv420p outfilter.mp4");
     system (ffmpegString);
 }
            }
        }
        writeFrames(outputFrames, z, totalFrames);
    }

    free(inputData_h);

        int fileNum = i + z + 1 - FILTER_SIZE / 2;
        if (fileNum <= totalFrames && fileNum > 0)
        {
            sprintf(instr, "infiles/tmp%03d.ppm", fileNum);
            frames[i] = *readPPM(instr);
        }
    }
