I'm trying to create a program that concatenates clips into one compilation and rescales them all to fill the full height of the frame (1920x1080).
The concatenation part works fine, and the program has no trouble making a compilation when given clip links, however, the 'resize' function is not being recognised:
Unresolved attribute reference 'resize' for class 'VideoFileClip'
As far as I know, I'm following the docs, I have PIL installed. Why doesn't it recognise 'resize'?
# Video Compiler
cliplist = []
count = 1
for filename in os.listdir(location):
if filename.endswith(".mp4"):
cliplist.insert(0, VideoFileClip(f'{Path(location)}/{filename}'))
print(f'Clip {count} Processed')
count += 1
for clip in cliplist:
clip.resize(height=1080)
Note: this is just a snippet of the code, I see no reason why the resize function does not work here as 'clip' represents a VideoFileClip.