Zulko / moviepy

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

Keyed args passed into write_videofile are being ignored #2030

Open dsj969 opened 10 months ago

dsj969 commented 10 months ago

Expected Behavior

Keyword args passed into write_videofile should set the values of those args

Actual Behavior

Keyword args passed into write_videofile are being set to their default values

Steps to Reproduce the Problem

clip = VideoFileClip(srcfile)
clip.write_videofile(srcfile, fps=1)

>> fps is being set as None

Specifications

Notes

I believe this issue is specifically tied to decorator v5. In decorator v5 all calls to decorator (eg. @use_clip_fps_by_default) are having their kw args converted to positional args. decorator v5 now includes an argument called 'kwsyntax' within the decorator function, which when set to True retains the keyed args.

bp72 commented 8 months ago

@dsj969 I'm trying to reproduce this using spec and the fps param is passed as it should be. It has been probably a long with other commit.

Can you please confirm that it's not an issue anymore?

keikoro commented 4 months ago

I'm assuming this is a duplicate of #1986? In which case this issue should be closed in favour of the other one.