the common way to display videos in google colab is like this:
from IPython.display import HTML
from base64 import b64encode
with open('video.mp4', 'rb') as f:
display(HTML('<video><source src="data:video/mp4;base64,%s" type="video/mp4"></video>'%b64encode(f.read()).decode()))
however for moderately large video files, say tens of MB, this will cause colab to disconnect (showing only "runtime disconnected") and the video will not be displayed. indeed it does not seem sensible to try to write such a long string into the HTML. what would be the easiest fix? note that the HTML does not have access to the local filesystem due to CORS.
