Fixed issues with ffmpeg and sorted some output to console
fixed file paths with spaces
working version, tested on linux