deeplake icon indicating copy to clipboard operation
deeplake copied to clipboard

[bug] video player won't work

Open verbiiyo opened this issue 3 years ago • 4 comments

EDIT: the flask install part is the minor part of the bug, major part in next comment)

fresh pip install hub, tried to play from a video sample (cool API btw), says flask needs to be installed

image

verbiiyo avatar Jul 31 '22 10:07 verbiiyo

after pip installing, actually the video won't play (ubuntu 20.04, using a conda environment on python version 3.7.13, on a jupyter notebook in visual studio code)

all i did was create an mp4 sample compressed tensor, added one video using hub.read (~100MB video) and tried to use the in-notebook player:

image

verbiiyo avatar Jul 31 '22 10:07 verbiiyo

yoooo but using ds.visualize works! damn. that shits cool

verbiiyo avatar Jul 31 '22 10:07 verbiiyo

@FayazRahman this was on a local jupyter notebook instance

verbiiyo avatar Aug 01 '22 07:08 verbiiyo

@nollied Tried on jupyter notebook and it works. But there seems to be an issue with VScode. I tried playing a video directly from a link and it didnt work:

import IPython
html = f"""<video alt="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4" width=500 controls autoplay seek loop>
                    <source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4" type="video/mp4">
                </video>
            """
IPython.display.HTML(html)

FayazRahman avatar Aug 01 '22 07:08 FayazRahman

Closing since its an issue with VScode.

FayazRahman avatar Sep 01 '22 20:09 FayazRahman