Git Product home page Git Product logo

visbeat's People

Contributors

abedavis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

visbeat's Issues

can't load docker

i don't know why does it happened?
in step5:
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libx/libxau/libxau6_1.0.8-1_amd64.deb Hash Sum mismatch
Hashes of expected file:
- SHA256:881544ee71d85e89ebf224e45acc94930f6a309da2fb33dbf850bd1434e70597
- SHA1:07f54fc6d707f7744411275cce141899c7b53e8e [weak]
- MD5Sum:af209429d197827db35c09cd232037c1 [weak]
- Filesize:8376 [weak]
Hashes of received file:
- SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- SHA1:da39a3ee5e6b4b0d3255bfef95601890afd80709 [weak]
- MD5Sum:d41d8cd98f00b204e9800998ecf8427e [weak]
- Filesize:0 [weak]
Last modification reported: Tue, 19 Mar 2019 12:40:13 +0000
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/universe/libs/libsdl2/libsdl2-2.0-0_2.0.8+dfsg1-1ubuntu1.18.04.1_amd64.deb 404 Not Found [IP: 91.189.88.152 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
i use the following command did no work.

'weight' in VisualBeat

Excuse me, could you please tell what is the meaning of 'weight' in VisualBeat class? Is it represents the intensity of the visual beat?
Xnip2021-10-04_10-48-33

Question about function getVBSegments

Hello. Thanks for the amazing work first!

I have a question about your code. The function getVBSegments at

def getVBSegments(self,source_video,
seems not to be used in any case. Is my understanding right?

What does this function do and when it should be used?

Thanks a lot in advance!

ModuleNotFoundError: No module named 'VisBeatImports'

Hello! I cannot load the package. Here is the bug information:

(visbeat) zhongyi@zhongyi-XPS-15-9560:~$ python
Python 3.6.0 |Continuum Analytics, Inc.| (default, Dec 23 2016, 12:22:00) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import visbeat as vb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zhongyi/anaconda3/envs/visbeat/lib/python3.6/site-packages/visbeat/__init__.py", line 2, in <module>
    from VisBeatImports import *
ModuleNotFoundError: No module named 'VisBeatImports'

ImportError: No module named functools_lru_cache

I run into this issue when running the Dockerfile. I tried fixing it by pip install backports.functools_lru_cache but still get the same error ...

Stack trace:

Step 6/13 : RUN $CONDA_DIR/envs/python2/bin/python -m ipykernel install &&     $CONDA_DIR/envs/python2/bin/kernda -o -y /usr/local/share/jupyter/kernels/python2/kernel.json &&     . activate python2 &&     $CONDA_DIR/envs/python2/bin/pip install numpy     scipy     librosa     imageio     moviepy     youtube-dl     requests     bs4     matplotlib     visbeat
 ---> Running in e32da285e42b
Traceback (most recent call last):
  File "/opt/conda/envs/python2/lib/python2.7/runpy.py", line 163, in _run_module_as_main
    mod_name, _Error)
  File "/opt/conda/envs/python2/lib/python2.7/runpy.py", line 111, in _get_module_details
    __import__(mod_name)  # Do not catch exceptions initializing package
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/ipykernel/__init__.py", line 2, in <module>
    from .connect import *
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/ipykernel/connect.py", line 13, in <module>
    from IPython.core.profiledir import ProfileDir
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/IPython/__init__.py", line 49, in <module>
    from .terminal.embed import embed
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/IPython/terminal/embed.py", line 18, in <module>
    from IPython.terminal.interactiveshell import TerminalInteractiveShell
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/IPython/terminal/interactiveshell.py", line 16, in <module>
    from prompt_toolkit.document import Document
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/prompt_toolkit/__init__.py", line 16, in <module>
    from .interface import CommandLineInterface
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/prompt_toolkit/interface.py", line 19, in <module>
    from .application import Application, AbortAction
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/prompt_toolkit/application.py", line 3, in <module>
    from .buffer import Buffer, AcceptAction
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/prompt_toolkit/buffer.py", line 7, in <module>
    from .auto_suggest import AutoSuggest
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/prompt_toolkit/auto_suggest.py", line 13, in <module>
    from .filters import to_cli_filter
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/prompt_toolkit/filters/__init__.py", line 33, in <module>
    from .base import *
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/prompt_toolkit/filters/base.py", line 5, in <module>
    from prompt_toolkit.utils import test_callable_args
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/prompt_toolkit/utils.py", line 9, in <module>
    from wcwidth import wcwidth
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/wcwidth/__init__.py", line 12, in <module>
    from .wcwidth import ZERO_WIDTH  # noqa
  File "/opt/conda/envs/python2/lib/python2.7/site-packages/wcwidth/wcwidth.py", line 82, in <module>
    from backports.functools_lru_cache import lru_cache
ImportError: No module named functools_lru_cache

Wonder anyone knows how to fix this?

problems with the VisBeat Tutorial.ipynb

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!!!

IOError: Could not load meta information

I need help...I don't know how to solve this problem.
Source: /home/gx/GX/code/visbeat-master/examples/test_files/dance1.mp4
Target: /home/gx/GX/code/visbeat-master/examples/test_files/music1.mp4
Video source at ./VisBeatAssets/VideoSources/dance1/
Calculating frames for dance1_Full...
Done.
Video source at ./VisBeatAssets/VideoSources/music1/
Calculating frames for music1_Full...
Done.
Warping dance1_240 to music1_240
Rendering 16 beats of result
16
16
target start: 0.371519274376
target end: 7.00081632653
target duration: 6.62929705215
[swscaler @ 0x5643f99be840] Warning: data is not aligned! This can lead to a speed loss
Calculating frames for None...
Done.
Issue loading audio for ./TEMP_dance1_240_TO_music1_240quad_sab_0_svb_0.mp4
Using bitrate of 20000k
stereo is False
Moviepy - Building video ./VisBeatAssets/VideoSources/dance1/Versions/Warps/maxheight_240//dance1_240_TO_music1_240quad_sab_0_svb_0.mp4.
MoviePy - Writing audio in %s
MoviePy - Done.
Moviepy - Writing video ./VisBeatAssets/VideoSources/dance1/Versions/Warps/maxheight_240//dance1_240_TO_music1_240quad_sab_0_svb_0.mp4

Moviepy - Done !
Moviepy - video ready ./VisBeatAssets/VideoSources/dance1/Versions/Warps/maxheight_240//dance1_240_TO_music1_240quad_sab_0_svb_0.mp4
Calculating frames for None...
Done.
Traceback (most recent call last):
File "dancefer.py", line 43, in
main(args);
File "dancefer.py", line 31, in main
nbeats=nbeats, output_path = output_path)
File "/home/gx/anaconda3/envs/visbeat/lib/python2.7/site-packages/visbeat/init.py", line 244, in Dancefer
warped_result_final = Video(path = final_output_path, num_frames_total=n_frames_total);
File "/home/gx/anaconda3/envs/visbeat/lib/python2.7/site-packages/visbeat/Video.py", line 38, in init
self.loadFile(num_frames_total=num_frames_total);
File "/home/gx/anaconda3/envs/visbeat/lib/python2.7/site-packages/visbeat/Video.py", line 131, in loadFile
self.reader = imageio.get_reader(self.a_info['file_path'], 'ffmpeg');
File "/home/gx/anaconda3/envs/visbeat/lib/python2.7/site-packages/imageio/core/functions.py", line 129, in get_reader
return format.get_reader(request)
File "/home/gx/anaconda3/envs/visbeat/lib/python2.7/site-packages/imageio/core/format.py", line 169, in get_reader
return self.Reader(self, request)
File "/home/gx/anaconda3/envs/visbeat/lib/python2.7/site-packages/imageio/core/format.py", line 218, in init
self._open(**self.request.kwargs.copy())
File "/home/gx/anaconda3/envs/visbeat/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 327, in _open
self._load_infos()
File "/home/gx/anaconda3/envs/visbeat/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 479, in _load_infos
raise IOError(fmt % err2)
IOError: Could not load meta information
=== stderr ===

Thanks....

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.