Page 1 of 1

FileExistsError

Posted: Tue Aug 25, 2020 6:38 am
by mynameisermek
Hello! Thx for amazing soft.
My problem is when Faceswap finishes converting error poppes off
FileExistsError: [WinError 183] Невозможно создать файл, так как он уже существует: 'C:\\Users\\saipal\\Desktop\\deepfake\\putin\\__tmp_galkin_converted.mp4' -> 'C:\\Users\\saipal\\Desktop\\deepfake\\putin\\galkin_converted.mp4'

translation of russian words: can't create file because it already exist


Re: FileExistsError

Posted: Wed Aug 26, 2020 8:57 am
by torzdf
This happens sometimes on Windows systems, and we haven't managed to get to the bottom of it (it's some Windows process locking the file).

Assuming the file __tmp_galkin_converted.mp4 still exists, then you should be able to mux the audio with the Effmpeg tool.

Otherwise I suggest you use the opencv writer, and use the Effmpeg tool to turn the frames back into a video.

Re: FileExistsError

Posted: Wed Aug 26, 2020 10:43 pm
by djandg
When I've had this error I have also used FFMPEG to mux the audio using the tmp file generated and the video to convert. It seems to be a audio sequencing glitch in the file you are trying to convert that the encoder in Faceswap errors on.

You could also recode the video file you are converting which would get rid of any audio coding glitch in the original file that is causing the problem (that would then need re-extracting, sorting & alignments cleanup though on the newly recoded file) or change the encoder to use a different encoder in Faceswap (in system tab, - writer) from the default MP4 to another like AVI that has also worked for me in the past when I've been lazy.

Re: FileExistsError

Posted: Thu Aug 27, 2020 12:21 am
by abigflea
Ffmpeg is fussy in Linux too
Today it was reporting ' volume doesn't have enough space' on a drive with 750gb free while extracting a PNG sequence
It was a Chinese character in the filename.
Sometimes you just have to figure out why it's acting that way and work around it.