write_videofile() appears fundamentally broken

Moviepy function write_videofile() works with static filename parameters, (i.e. "this_is_my_file.mp4") but does not work as intended when variables are passed into the filename parameter (i.e. my_variable = "a dynamic filename"). The resulting video possess audio, but is always frozen on the first frame.

Expected Behavior

production of video files with dynamic file names.

Actual Behavior

produces a video with the audio and the correct filename, but video is frozen on the first frame.

Steps to Reproduce the Problem

my_clip.write_videofile("meaty_chungus.mp4") #works

meaty_chungus = "meaty_chungus"
my_clip.write_videofile(meaty_chungus + ".mp4") #produces a video with the audio and the correct filename, but video is frozen on the first frame. 

Specifications

  • Python Version: 3.x
  • Moviepy Version: most recent
  • Platform Name: Windows
  • Platform Version: 10

1 possible answer(s) on “write_videofile() appears fundamentally broken