FileExistsError

Converting source frames into swapped frames
Forum rules
Read the FAQs and search the forum before posting a new topic.

Please mark any answers that fixed your problems so others can find the solutions.
Post Reply
User avatar
mynameisermek
Posts: 1
Joined: Tue Aug 25, 2020 6:32 am

FileExistsError

Post 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


User avatar
torzdf
Posts: 918
Joined: Fri Jul 12, 2019 12:53 am
Answers: 125
Has thanked: 26 times
Been thanked: 181 times

Re: FileExistsError

Post 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.

My word is final


User avatar
djandg
Posts: 43
Joined: Mon Dec 09, 2019 7:00 pm
Has thanked: 4 times
Been thanked: 2 times

Re: FileExistsError

Post 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.
Last edited by djandg on Thu Aug 27, 2020 10:11 pm, edited 1 time in total.

User avatar
abigflea
Posts: 123
Joined: Sat Feb 22, 2020 10:59 pm
Answers: 1
Has thanked: 11 times
Been thanked: 32 times

Re: FileExistsError

Post 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.
:o I dunno what I'm doing :shock:
RTX 2070 x2 : GTX 1070 x2 : Ghetto 1060

Post Reply