question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError using `progress_bar` arg in VideoFileClip.write_videofile()

See original GitHub issue

Expected Behavior

from moviepy.editor import VideoFileClip

VideoFileClip('video.mp4').write_videofile(
        output_video_path,
        verbose=True,
        progress_bar=True,
        ffmpeg_params=ffmpeg_params)

This worked fine using version 0.2.5.3 After the recent 1.0.0 upgrade, the same code now throws an error. I don’t see a reference to the progress_bar in the current source code except for in comments. Reverting to 0.2.5.3 seems to fix the issue.

Actual Behavior

TypeError("write_videofile() got an unexpected keyword argument 'progress_bar'",)

Steps to Reproduce the Problem

from moviepy.editor import VideoFileClip

VideoFileClip('video.mp4').write_videofile(
        output_video_path,
        verbose=True,
        progress_bar=True,
        ffmpeg_params=ffmpeg_params)

Specifications

  • Python Version: 3.6
  • Moviepy Version: 1.0.0
  • Platform Name: Ubuntu
  • Platform Version: 16.04

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
Zulkocommented, Mar 18, 2019

Try “logger=None”

0reactions
nabinbhusal80commented, Feb 9, 2022

For moviepy==1.0.3

use

logger=None

Read more comments on GitHub >

github_iconTop Results From Across the Web

Moviepy still prints a progress bar even after setting `verbose ...
Now in 2019 you have to use clip.write_videofile("output.mp4", ... like: TypeError: write_audiofile() got an unexpected keyword argument ...
Read more >
Getting an unexpected keyword argument for VideoFileClip
TypeError : init() got an unexpected keyword argument 'fps_source'. I believe I'm using it correctly given the documentation.
Read more >
Source code for moviepy.video.VideoClip
This module implements VideoClip (base class for video clips) and its main subclasses: - Animated clips: VideofileClip, ImageSequenceClip - Static image ...
Read more >
Python moviepy.editor.ImageSequenceClip() Examples
This page shows Python examples of moviepy.editor.ImageSequenceClip.
Read more >
python moviepy出现以下问题? - CSDN博客
File "C:\Python27\lib\site-packages\moviepy\video\VideoClip.py", line 349, in write_videofile progress_bar=progress_bar)
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found