added extension .flv for tempfile to recognize output file by ffmpeg