Zulko / moviepy

Video editing with Python
https://zulko.github.io/moviepy/
MIT License
12.07k stars 1.51k forks source link

After do 'concatenate_videoclips', most of added movie does not displayed that seems no keyframe for added clips. #2101

Open mic-user opened 5 months ago

mic-user commented 5 months ago

Expected Behavior

After every call of 'concatenate_videoclips > write_videofile('png')' and displayed every added clips.

Actual Behavior

Only 2~3(sometime 1~2) of clip display the contents while playing. And it keeps playing as much as added rest of clips duration, but display never changed to new one. Keep displaying previous/begining ones.

Steps to Reproduce the Problem

` _image_clip_list : list = [] _image_clip_list.append(_single_png_path) #with alpha channel

_image_duration_in_seconds : list = [] _image_duration_in_seconds.append(random 5~60) # _new_part_videoClip : editor.ImageClip = editor.ImageSequenceClip(_image_clip_list, durations=_image_duration_in_seconds, with_mask=True)

_base_outputFile : editor.VideoFileClip = editor.VideoFileClip(_output_file_name) _combined_video_clip : editor.VideoClip = editor.concatenate_videoclips([_base_outputFile, _new_part_videoClip], method='chain') _combined_video_clip.write_videofile(_output_file_name, fps=1, #doesn't matter codec='png' ) `

Specifications

mic-user commented 5 months ago

It seems missing keyframe for each of concatenation. Any quick workaround?

keikoro commented 4 months ago

Code blocks require 3 backticks at the start of the block and 3 at the end, just FYI.