arsenal.video

Module Contents

arsenal.video.clip_to_html(clip: Union[VideoClip, np.ndarray], verbose=False, fps=24, **kwargs)str[source]

Convert a MoviePy clip to an HTML string.

from IPython.display import display
clip = ImageSequenceClip(list(np_video))
display(clip_to_html(clip))
Parameters
  • clip – MoviePy clip.

  • verbose – Whether to print out FFmpeg information during encoding

  • fps – FPS of clip

  • **kwargs – Any kwargs to pass down to html_embed()

Returns

String of HTML with a <video> tag and base64 encoded media. Useful for use with IPython.display.display to show videos.