Zulko / moviepy

Video editing with Python
https://zulko.github.io/moviepy/
MIT License
12.07k stars 1.51k forks source link

No longer encoding subtitles #2180

Closed cslop3r closed 4 weeks ago

cslop3r commented 1 month ago

I used to have the ability to encode subtitles but now it doesn't work anymore.

subs = SubtitlesClip("subs.srt", gensubs, encoding='utf-8')

Traceback (most recent call last): File "/Users/nathan/Documents/RSL/index.py", line 210, in <module> subs = SubtitlesClip("subs.srt", gensubs, encoding='utf-8') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: SubtitlesClip.__init__() got an unexpected keyword argument 'encoding'

antonpetrov145 commented 4 weeks ago

If you are on version 1.0.3 this parameter is not there, the feature is introduced in v2.0.0.dev1 see here https://github.com/Zulko/moviepy/releases/tag/v2.0.0.dev1

so try to update to pre-release version

cslop3r commented 4 weeks ago

If you are on version 1.0.3 this parameter is not there, the feature is introduced in v2.0.0.dev1 see here https://github.com/Zulko/moviepy/releases/tag/v2.0.0.dev1

so try to update to pre-release version

Thanks!!