Error during convert: UnicodeDecodeError: 'cp950' codec can't decode byte 0x89 in position 297: illegal multibyte sequen

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
asdw513962
Posts: 3
Joined: Wed Aug 19, 2020 7:36 pm
Has thanked: 1 time

Error during convert: UnicodeDecodeError: 'cp950' codec can't decode byte 0x89 in position 297: illegal multibyte sequen

Post by asdw513962 »

Loading...
Setting Faceswap backend to NVIDIA
08/22/2020 19:43:51 INFO Log level set to: INFO
08/22/2020 19:44:07 ERROR Got Exception on main handler:
Traceback (most recent call last):
File "C:\Users\dickson\faceswap\lib\cli\launcher.py", line 155, in execute_script
process = script(arguments)
File "C:\Users\dickson\faceswap\scripts\convert.py", line 53, in __init__
self._images = ImagesLoader(self._args.input_dir, fast_count=True)
File "C:\Users\dickson\faceswap\lib\image.py", line 754, in __init__
self._get_count_and_filelist(fast_count, count)
File "C:\Users\dickson\faceswap\lib\image.py", line 858, in _get_count_and_filelist
self._count = int(count_frames(self.location,
File "C:\Users\dickson\faceswap\lib\image.py", line 584, in count_frames
output = process.stdout.readline().strip()
UnicodeDecodeError: 'cp950' codec can't decode byte 0x89 in position 297: illegal multibyte sequence
08/22/2020 19:44:07 CRITICAL An unexpected crash has occurred. Crash report written to 'C:\Users\dickson\faceswap\crash_report.2020.08.22.194354623189.log'. You MUST provide this file if seeking assistance. Please verify you are running the latest version of faceswap before reporting
Process exite
Attachments
crash_report.2020.08.22.194354623189.log
(19.35 KiB) Downloaded 11 times

User avatar
torzdf
Posts: 849
Joined: Fri Jul 12, 2019 12:53 am
Answers: 122
Has thanked: 23 times
Been thanked: 170 times

Re: Error during convert: UnicodeDecodeError: 'cp950' codec can't decode byte 0x89 in position 297: illegal multibyte se

Post by torzdf »

This is usually because of special characters in the metadata of the video file.

Find a video editing tool that you can use to strip the metadata. (Something like mp3tag should work ok for mp4 files).

Alternatively, if you can provide the video file, I can *try* to put something in which will work around these kind of errors, but I can make no promises.
My word is final

Post Reply