Skip to content

Update loading.rst#2550

Draft
kylllian wants to merge 1 commit intoZulko:masterfrom
kylllian:patch-1
Draft

Update loading.rst#2550
kylllian wants to merge 1 commit intoZulko:masterfrom
kylllian:patch-1

Conversation

@kylllian
Copy link
Copy Markdown

@kylllian kylllian commented Jan 29, 2026

from moviepy.editor import VideoFileClip, ImageClip, concatenate_videoclips

video = VideoFileClip("video.mp4")
image = ImageClip("image.png").set_duration(2).resize(video.size)

final = concatenate_videoclips([image, video])
final.write_videofile(
"video_finale.mp4",
codec="libx264",
audio_codec="aac"
)

  • I have provided code that clearly demonstrates the bug and that only works correctly when applying this fix
  • I have added suitable tests demonstrating a fixed bug or new/changed feature to the test suite in tests/
  • I have properly documented new or changed features in the documentation or in the docstrings
  • I have properly explained unusual or unexpected code in the comments around it

from moviepy.editor import VideoFileClip, ImageClip, concatenate_videoclips

video = VideoFileClip("video.mp4")
image = ImageClip("image.png").set_duration(2).resize(video.size)

final = concatenate_videoclips([image, video])
final.write_videofile(
    "video_finale.mp4",
    codec="libx264",
    audio_codec="aac"
)
@kylllian kylllian marked this pull request as draft January 29, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant