Page 1 of 1

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

Posted: Sat Aug 22, 2020 11:48 am
by asdw513962

Code: Select all

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

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

Posted: Sat Aug 22, 2020 3:11 pm
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.