Fix multimedia.ffmpeg.FFmpeg.encode: Create output directory before the subprocess