You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have copied your code to a Google Drive & using Colab Notebooks, ran each cell in sequence. All of them ran ok, except the final one & so i was not able to see the created mp4 file.
I'd love to see how to resolve this issue since i am particularly interested in tweaking the parameters for autozoom etc. & get different results.
Thanks
Show the generated video in this cell
To download instead, right click the .mp4 file in the file manager on the left (the folder icon) and find the file, right click, download
from IPython.display import HTML
from base64 import b64encode
I have copied your code to a Google Drive & using Colab Notebooks, ran each cell in sequence. All of them ran ok, except the final one & so i was not able to see the created mp4 file.
I'd love to see how to resolve this issue since i am particularly interested in tweaking the parameters for autozoom etc. & get different results.
Thanks
Show the generated video in this cell
To download instead, right click the .mp4 file in the file manager on the left (the folder icon) and find the file, right click, download
from IPython.display import HTML
from base64 import b64encode
def video(path):
mp4 = open(path,'rb').read()
data_url = "data:video/mp4;base64," + b64encode(mp4).decode()
return HTML('' % data_url)
video('./videos/TokyoHighRez.mp4')
FileNotFoundError Traceback (most recent call last)
in ()
9 return HTML('' % data_url)
10
---> 11 video('./videos/TokyoHighRez.mp4')
in video(path)
5
6 def video(path):
----> 7 mp4 = open(path,'rb').read()
8 data_url = "data:video/mp4;base64," + b64encode(mp4).decode()
9 return HTML('' % data_url)
FileNotFoundError: [Errno 2] No such file or directory: './videos/TokyoHighRez.mp4'
The text was updated successfully, but these errors were encountered: