8000 problems with the VisBeat Tutorial.ipynb · Issue #9 · abedavis/visbeat · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
problems with the VisBeat Tutorial.ipynb #9
Open
@aryanna384

Description

@aryanna384

Hi,Thanks for your great work! I followed the VisBeat Tutorial.ipynb,and when I run to the line 'vb.PullVideo()', I met with:

Video source at ./VisBeatAssets/VideoSources\synth_ball\
Traceback (most recent call last):
  File "E:/TEST/testVisbeat/testvisbeat.py", line 39, in <module>
    vb.PullVideo(name=synth_ball.name, source_location=synth_ball.path);
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\__init__.py", line 58, in PullVideo
    vs = VideoSource.NewVideoSource(destination=GetVideoSourcesDir(), name=vname, source_location=source_location, max_height=max_height, **kwargs);
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\VideoSource.py", line 56, in NewVideoSource
    return VideoSource(path=vsdir, name=name, source_location=source_location, **kwargs);
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\VideoSource.py", line 45, in __init__
    self.setSource(source_location=source_location, assert_valid=None, **kwargs);
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\VideoSource.py", line 499, in setSource
    self.setSourceFile(path = source_location, **kwargs);
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\VideoSource.py", line 549, in setSourceFile
    self.addVersion(path=output_path, version_label='Full');
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\VideoSource.py", line 473, in addVersion
    v = self.RegisteredVideo(path=path, version_label=version_label);
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\VideoSource.py", line 442, in RegisteredVideo
    v = self.VideoClass(path=path, name=self.getName()+'_'+self._versionLabelString(version_label=version_label), num_frames_total=num_frames_total);
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\Video.py", line 38, in __init__
    self.loadFile(num_frames_total=num_frames_total);
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\Video.py", line 137, in loadFile
    self.num_frames_total = self.calcNumFramesTotal();
  File "F:\Anaconda\envs\py36\lib\site-packages\visbeat\Video.py", line 178, in calcNumFramesTotal
    for i in range(1, self.reader.get_length()):
TypeError: 'float' object cannot be interpreted as an integer
Calculating frames for synth_ball_Full...

How can I fix it....I can't use the youtube id to realize it as in TLDR.ipynb because of the network....
and I want to visualize the video kinematic beat, how can I realize that?
THANK YOU VERY MUCH!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0