Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFmpeg errors are not being caught when using BitmapClip #1219

Open
tburrows13 opened this issue Jun 6, 2020 · 0 comments
Open

FFmpeg errors are not being caught when using BitmapClip #1219

tburrows13 opened this issue Jun 6, 2020 · 0 comments
Labels
bug Issues that report (apparent) bugs. lib-FFmpeg Issues pertaining to dependency FFmpeg. video Related to VideoClip and related classes, or handling of video in general.

Comments

@tburrows13
Copy link
Collaborator

This is a strange one, because test_VideoFileClip.test_write_frame_errors() (from #1164) still behaves as expected, but BitmapClip acts differently. I'll get round to investigating it myself at some point if no one else does.

Expected Behavior

.write_videofile() fails when given an incorrect codec.

Actual Behavior

It says that it has succeeded, but no file is actually created:

Moviepy - Building video bitmap.avi.
Moviepy - Writing video bitmap.avi
Moviepy - Done !
Moviepy - video ready bitmap.avi

Steps to Reproduce the Problem

from moviepy.editor import *
c = BitmapClip([["R"], ["G"], ["B"], ["O"], ["W"]]).set_fps(1)
c.write_videofile("bitmap.avi", codec="avrn")

When I manually inspect proc.stderr, it says Unknown encoder 'avrn', but this is not raising an IOError so the error is never raised:

except IOError as err:

Specifications

  • Python Version: 3.7
  • Moviepy Version: Latest 2.0.0 branch
  • Platform Name: macOS
  • Platform Version: 10.15.5 Catalina
@tburrows13 tburrows13 added the bug Issues that report (apparent) bugs. label Jun 6, 2020
@keikoro keikoro added lib-FFmpeg Issues pertaining to dependency FFmpeg. video Related to VideoClip and related classes, or handling of video in general. labels Oct 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that report (apparent) bugs. lib-FFmpeg Issues pertaining to dependency FFmpeg. video Related to VideoClip and related classes, or handling of video in general.
Projects
None yet
Development

No branches or pull requests

2 participants