![]() ![]() This is much faster than streaming in high-res and then resizing. target_resolution: Set to (desired_width, desired_height) to have ffmpeg resize the frames before returning them. audio: Set to `False` if the clip doesn't have any audio or if you do not wish to read the audio. (see also ``VideoClip.write_videofile`` for more details). For instance if you have a MoviePy VideoClip with a mask you can save it to a videofile with a mask. ![]() Video files rarely contain masks, but some video codecs enable that. has_mask: Set this to 'True' if there is a mask included in the videofile. It can have any extension supported by ffmpeg. Parameters - filename: The name of the video file, as a string or a path-like object. For instance: :: > clip = VideoFileClip("myHolidays.mp4") > clip.close() > with VideoFileClip("myMaskVideo.avi") as clip2: > pass # Implicit close called by context manager. Class VideoFileClip ( VideoClip ): """ A video clip originating from a movie file. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |