ENTAR
ENTAR copied to clipboard
Videos longer than a minute cause an error
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