You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use version 1.0.3, the cross fadein and cross fadeout of ImageClip display normally after CompositeVideoClip , but when I use version 2.1.1, the vfx.CrossFadeIn and vfx CrossFadeOut is not displayed after CompositeVideoClip; But both v1.0.3 and v2.1.1 display normally only after concatenate_videoclips;
v1.0.3:
clips = []
for image_file in image_files:
clip = ImageClip(image_file,duration=image_duration)
clips.append(clip)
clips_with_transitions = []
for i in range(len(clips)):
clip = clips[i]
clip = clip.crossfadein(transition_duration).crossfadeout(transition_duration)
clips_with_transitions.append(clip)
v2.1.1:
clips = []
for image_file in image_files:
clip = ImageClip(image_file,duration=image_duration)
clips.append(clip)
clips_with_transitions = []
for i in range(len(clips)):
clip = clips[i]
clip = clip.with_effects([vfx.CrossFadeIn(transition_duration), vfx.CrossFadeOut(transition_duration)])
clips_with_transitions.append(clip)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When I use version 1.0.3, the cross fadein and cross fadeout of ImageClip display normally after CompositeVideoClip , but when I use version 2.1.1, the vfx.CrossFadeIn and vfx CrossFadeOut is not displayed after CompositeVideoClip; But both v1.0.3 and v2.1.1 display normally only after concatenate_videoclips;
v1.0.3:
clips = []
for image_file in image_files:
clip = ImageClip(image_file,duration=image_duration)
clips.append(clip)
clips_with_transitions = []
for i in range(len(clips)):
clip = clips[i]
clip = clip.crossfadein(transition_duration).crossfadeout(transition_duration)
clips_with_transitions.append(clip)
final_clip = concatenate_videoclips(clips_with_transitions, method="compose")
composite_clip = CompositeVideoClip([final_clip])
composite_clip.write_videofile("output_video.mp4",fps=24)
v2.1.1:
clips = []
for image_file in image_files:
clip = ImageClip(image_file,duration=image_duration)
clips.append(clip)
clips_with_transitions = []
for i in range(len(clips)):
clip = clips[i]
clip = clip.with_effects([vfx.CrossFadeIn(transition_duration), vfx.CrossFadeOut(transition_duration)])
clips_with_transitions.append(clip)
final_clip = concatenate_videoclips(clips_with_transitions, method="compose")
composite_clip = CompositeVideoClip([final_clip])
composite_clip.preview(fps=10)
composite_clip.write_videofile("output_video.mp4",fps=24)
Beta Was this translation helpful? Give feedback.
All reactions