GithubHelp home page GithubHelp logo

osb2mp4's Introduction

osb2mp4

An osu! storyboard to video converter. Will be maintained until an alternative exists in lazer.

This project has been in progress on and off since the middle of September 2020. Actual time spent working so far has probably been about 6 weeks.

I'll expand this readme eventually. Here are some benchmarks on my computer:

CPU: AMD Ryzen 5 2400G @ 3.70 GHz
Render: 1920x1080 @ 30fps
CPU usage: ~90-95%
Storyboard time (mm:ss)
Alexithymia 40:00
Double Pendulum 17:00
world.execute(me) 11:00
Asymmetry 5:12
new beginnings 2:36

TODO

  • handle errors
  • fix all edge-cases
  • clean up dumb code
  • optimise for performance a bit
  • rewrite whole thing in opengl or something

Running

Usage: osb2mp4.exe song_folder [options]

options:
 -s, --start-time time          start time in ms (default: automatic)
 -e, --end-time time            end time in ms (default: automatic)
 -d, --duration time            duration in ms (default: automatic)
 -o, --output time              output video name (default: video.mp4)
 -diff, --difficulty filename   difficulty file name (default: first found)
 -w, --width pixels             video width (default: 1920)
 -h, --height pixels            video height (default: 1080)
 -f, --frame-rate fps           video frame rate (default: 30)
 -v, --volume volume            overall volume from 0 to 100 (default: 100)
 -mv, --music-volume volume     music volume from 0 to 100 (default: 100)
 -ev, --effect-volume volume    effect volume from 0 to 100, i.e. samples (default:
                                100)
 -dim, --background-dim dim     background dim value from 0 to 100 (default: 0)
 -ar, --respect-aspect-ratio    change to 4:3 aspect ratio if WidescreenStoryboard
                                is disabled in the difficulty file
 -fail, --show-fail-layer       show the fail layer instead of the pass layer
 -keep, --keep-temp-files       don't delete temporary files (temp.mp3 & temp.avi)
 -z, --zoom factor              zoom factor to use when rendering, useful for checking
                                out-of-bounds sprites (default: 1)

Dependencies

  • OpenCV - download and extract somewhere accessible
  • A global FFmpeg installation

Compilation

On Windows, you can compile with clang (you can get it by installing LLVM) by running the included make.ps1 script. Be sure to fill in the templated variables at the top of the file.

When running, make sure to have opencv_videoio_ffmpeg451_64.dll and opencv_world451.dll in the same folder as osb2mp4.exe.

osb2mp4's People

Contributors

walavouchey avatar

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.