Fix video encoding for filename problems and audio output