Closed PetrusVermaak closed 4 years ago
C:\Portable\cleanvid>cleanvid.py -s tls.srt -i tls.mp4 -o tlsc.mkv -w swears.txt
Traceback (most recent call last):
File "C:\Portable\cleanvid\cleanvid.py", line 150, in
Has to do with the file encoding and/or line endings. I need to make a procdure normalize the sub files before we use them.
Try that fix, I think that should take care of it.
What should i do
PS C:\Users\Kodi\PycharmProjects\cleanvid> cleanvid -s E:\Arcane\WHIPLASH\Whiplas.srt -i E:\Arcane\WHIPLASH\Whiplash.mkv -o E:\Arcane\WHIPLASH\Whiplaskh.mkv -w swears.txt
Traceback (most recent call last):
File "C:\Users\Kodi\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Kodi\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\Kodi\AppData\Local\Programs\Python\Python310\Scripts\cleanvid.exe__main.py", line 7, in
I get this error when running the cmd: File "C:\Program Files\Python38\lib\codecs.py", line 504, in read newchars, decodedbytes = self.decode(data, self.errors) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa9 in position 0: invalid start byte
my cmd: cleanvid.py -s tls.srt -i tls.mp4 -o tlsc.mp4 -w swears.txt
I have Python 3.8 64bit installed.