Skip to content

[PROBLEM] #2276

@hiphapaid-dotcom

Description

@hiphapaid-dotcom

ОБЪЕДИНЁННЫЙ GITHUB BUG REPORT + КОД ИСПРАВЛЕНИЯ
Title:

Python User Visible environment instantly interrupts when using MoviePy/ffmpeg — unable to read or process any video files

Description

This issue is reported on behalf of user HipHapAid.

The Python User Visible environment inside ChatGPT cannot process any video file, even 2–3 seconds long.
MoviePy and ffmpeg fail instantly without logs.

This is a regression, because previously video editing tasks were possible.

The bug blocks all workflows related to video editing, including trimming, merging, and applying effects.

Environment

Platform: ChatGPT Python User Visible tool

Libraries:

moviepy

ffmpeg

opencv-python

numpy

Video files: tested many .mp4 clips (2–3 seconds each)

Steps to Reproduce (Minimal Reproducible Example)
from moviepy.editor import VideoFileClip

clip = VideoFileClip("input.mp4")
print("Loaded", clip.duration)

Observed Output:
WARNING: Automatic interrupt triggered after 1.0 seconds.

No traceback.
No ffmpeg logs.
No ability to continue execution.

Actual Behavior

The Python execution is killed automatically, even before the file is read.

This happens for:

VideoFileClip()

ffmpeg_extract_subclip()

concatenate_videoclips()

clip.write_videofile()

Even reading the video causes an interrupt.

Expected Behavior

MoviePy should successfully load small MP4 files.

ffmpeg should run normally.

Python execution should not terminate after 1 second.

If video processing is intentionally blocked, there should be a clear error message, not a silent interrupt.

Impact

This issue fully breaks all user workflows that rely on:

video cutting

merging segments

adding visual effects

creating clips for social media

frame-by-frame analysis

AI-assisted video production

The user reporting the issue intends to process sequential 3-second video fragments and merge them into one music-synced video (rap-style edits).
This workflow is now completely impossible.

User Context

Reported by: HipHapAid

User supplied multiple small clips (2–3 seconds each) that all failed.

The user is trying to produce a polished rap-style video edit and entrusted ChatGPT with processing.

Additional Evidence

Attempt to run different MoviePy operations always ends with the same result:

WARNING: Automatic interrupt triggered after 1.0 seconds.

Which strongly suggests:

ffmpeg is blocked

file I/O is restricted

or the environment kills long-running processes without logging

🧩 Proposed Fix (How It Should Work)

Below is the expected working code, which should run when the bug is fixed.

This code demonstrates:

✔ reading a video
✔ cutting it
✔ applying a rap-style effect (flash / contrast)
✔ exporting the result

from moviepy.editor import VideoFileClip, vfx

def process_video(input_path, output_path):
# Load video
clip = VideoFileClip(input_path)

# Apply rap-style contrast boost
styled = clip.fx(vfx.colorx, 1.4)

# Optional: fast flash effect on peaks
flash = styled.fx(vfx.lum_contrast, lum=20, contrast=40)

# Export
flash.write_videofile(
    output_path,
    codec="libx264",
    audio_codec="aac"
)

process_video("input.mp4", "output.mp4")

This script should work normally if the environment issue is resolved.

📌 Request to Developers

Please clarify:

Is this an intentional sandbox limitation?

If so — why is the execution silently interrupted instead of returning a clear error?

Can ffmpeg be allowed for simple video reading?

If not possible — can MoviePy be officially disabled so users don’t waste time debugging?

Can a clear diagnostic message be provided instead of abrupt termination?

📎 Attachments

More sample clips can be provided upon request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions