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

Videos longer than a minute cause an error #6

Open
AlexRMU opened this issue Aug 18, 2020 · 0 comments
Open

Videos longer than a minute cause an error #6

AlexRMU opened this issue Aug 18, 2020 · 0 comments

Comments

@AlexRMU
Copy link

AlexRMU commented Aug 18, 2020

Videos longer than a minute cause an error:
Crop video (Optional block)

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-6-11014c407c1f> in <module>()
     21 show_video = True #@param {type:"boolean"}
     22 if show_video == True:
---> 23   display(mpy.ipython_display("video.mp4", height=400))

1 frames
/usr/local/lib/python3.6/dist-packages/moviepy/video/io/html_tools.py in html_embed(clip, filetype, maxduration, rd_kwargs, center, **html_kwargs)
    140         if duration > maxduration:
    141             raise ValueError("The duration of video %s (%.1f) exceeds the 'max_duration' "%(filename, duration)+
--> 142                              "attribute. You can increase 'max_duration', "
    143                              "but note that embedding large videos may take all the memory away !")
    144 

ValueError: The duration of video video.mp4 (61.0) exceeds the 'max_duration' attribute. You can increase 'max_duration', but note that embedding large videos may take all the memory away !

However, the video is cropped and can be processed further, so the error does not affect anything

@AlexRMU AlexRMU changed the title Videos longer than a minute cause an error Videos longer than a minute cause an error label:"type: bug" Aug 18, 2020
@AlexRMU AlexRMU changed the title Videos longer than a minute cause an error label:"type: bug" Videos longer than a minute cause an error "type: bug" Aug 18, 2020
@AlexRMU AlexRMU changed the title Videos longer than a minute cause an error "type: bug" Videos longer than a minute cause an error Aug 18, 2020
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

No branches or pull requests

1 participant