Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The position of subclip cutting is different from the parameters #2175

Closed
FlyDogDaDa opened this issue May 12, 2024 · 1 comment
Closed

The position of subclip cutting is different from the parameters #2175

FlyDogDaDa opened this issue May 12, 2024 · 1 comment
Labels
bug Issues that report (apparent) bugs.

Comments

@FlyDogDaDa
Copy link

Expected Behavior

No ValueError is raised during the process
and then get printed:

314.7 315.69
315.9 316.05

Actual Behavior

getting error: ValueError: t_start (314.70) should be smaller than the clip's duration (312.01).
and then get printed:

314.7 315.69

Steps to Reproduce the Problem

from moviepy.editor import VideoFileClip


original_video = VideoFileClip(video_path)
clips = []
for start, end in [(314.7, 315.69), (315.9, 316.05)]:
    print(start, end)
    clips.append(original_video.subclip(start, end))

Specifications

  • Python Version:3.12.3
  • MoviePy Version:1.0.3
  • Platform Name:Windows 11 Pro
  • Platform Version:23H2
@FlyDogDaDa FlyDogDaDa added the bug Issues that report (apparent) bugs. label May 12, 2024
@FlyDogDaDa
Copy link
Author

I've been confused for a long time why moviepy doesn't use integer milliseconds but float seconds.
I'm like: (*´・д・)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that report (apparent) bugs.
Projects
None yet
Development

No branches or pull requests

1 participant