Skip to content

Video editing with Python

fix to work with python3

Laurent Perrinet56cbe347b947
diff --git a/moviepy/video/io/html_tools.py b/moviepy/video/io/html_tools.py
index 00817a03..1c644c9d 100644
--- a/moviepy/video/io/html_tools.py
+++ b/moviepy/video/io/html_tools.py
@@ -143,7 +143,7 @@ def html_embed(clip, filetype=None, maxduration=60, rd_kwargs=None,
"but note that embedding large videos may take all the memory away !")
with open(filename, "rb") as f:
- data= b64encode(f.read())
+ data= b64encode(f.read()).decode("utf-8")
template = templates[filetype]