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

FileNotFoundError #9

Open
Asli-Jat opened this issue Oct 26, 2021 · 0 comments
Open

FileNotFoundError #9

Asli-Jat opened this issue Oct 26, 2021 · 0 comments

Comments

@Asli-Jat
Copy link

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'

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