Coder Social home page Coder Social logo

Stuck at 45/46 about mugen HOT 3 CLOSED

scherroman avatar scherroman commented on May 21, 2024
Stuck at 45/46

from mugen.

Comments (3)

scherroman avatar scherroman commented on May 21, 2024 1

Hey excenter sorry you had to go at this alone.

I didn't see any issues with -bm weak_beats, but I think you might be running into issues because you're mixing up arguments. The -v argument is shorthand for --video-sources and are the video sources that segments will be taken from to make the video. -vn is shorthand for --video-name which is the name mugen will give to the video file it outputs. In the first case above it looks like you're setting your video source -v to output.mkv instead of the movie LostInTranslation.mkv. In the second case you're setting -v twice, and the second is likely overriding your first.

The most common reason it would go on forever doing the same subtask is that your video source can't find any segments that pass the default filters not_is_repeat, not_has_cut, and not_has_low_contrast, and so it just keeps going on trying in vain. The not_is_repeat and not_has_cut filters would definitely cause this if your video source was especially short and/or with little to no time between scene changes. The first one throws out segments that have already been used, and the latter throws out segments where there are scene changes (to keep the music video synced to the beat). This would definitely happen if you tried to use a video that is shorter than your music or use a music video that was generated by mugen as a video source!

Your mugen command should rather look like this:

mugen create -a bright-lights.wav -v LostInTranslation.mkv -ss -es 1/8 -aem onsets -bm weak_beats -vn output.mkv

Note that the video filters can be overridden through the --video-filters, --exclude-video-filters, and --include-video-filters options found in the help menu.

from mugen.

excenter avatar excenter commented on May 21, 2024

UPDATE: I trimmed the audio file to see if it was too long for the video, and the numbers have changed, but the result is the same:

(mugen) bash-3.2$ mugen create -a bright-lights.wav -vn LostInTranslation.mkv -ss -es 1/8 -aem onsets -bm weak_beats -v output.mkv

Weights
------------
output: 100.00%

Analyzing audio...

Events:
[<EventList 0-43 (44), type: Onset, selected: False>]

Generating music video from video segments and audio...
 98%|███████████████████████████████████▏| 44/45 [01:21<00:02,  2.48s/it]
t:  97%|███████████████████▎| 337/348 [00:03<00:00, 117.14it/s, now=None]

from mugen.

excenter avatar excenter commented on May 21, 2024

trying it without options until something works. so far not resolving it changes are:

  • remove just -ss mugen create -a bright-lights.wav -vn LostInTranslation.mkv -es 1/8 -aem onsets -bm weak_beats -v output.mkv
  • replacing 1/8 with 1/4 mugen create -a bright-lights.wav -vn LostInTranslation.mkv -es 1/4 -aem onsets -bm weak_beats -v output.mkv

this worked

remove -bm weak_beats mugen create -a bright-lights.wav -v LostInTranslation.mkv -es 1/4 -aem onsets -v output.mkv

from mugen.

Related Issues (20)

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.