This release is a pre-release and may not be stable for production use.
Getting started
from osr2mp4.osr2mp4 import Osr2mp4
data = {
"osu! path": "/Users/yuitora./osu!/",
"Skin path": "/Users/yuitora./osu!/Skins/-#Whitecat#-",
"Beatmap path": "/Users/yuitora./osu!/Songs/123456 Hachigatsu, Bou/",
".osr path": "/Users/yuitora./osu!/Replays/yuitora_12317423.osr",
"Default skin path": "/Users/yuitora./Downloads/Default Skin/",
"Output path": "output.avi",
"Width": 1920,
"Height": 1080,
"FPS": 60,
"Start time": 0,
"End time": -1,
"Video codec": "XVID",
"Process": 2,
"ffmpeg path": "Users/yuitora./ffmpeg/bin/ffmpeg.exe"
}
settings = {
"Cursor size": 1,
"In-game interface": True,
"Show scoreboard": True,
"Background dim": 90,
"Always show key overlay": True,
"Automatic cursor size": False,
"Rotate sliderball": False,
"Score meter size": 1.25,
"Song volume": 50,
"Effect volume": 100,
"Ignore beatmap hitsounds": True,
"Use skin's sound samples": True,
"Global leaderboard": False,
"Mods leaderboard": "(HD)HR",
"api key": "lol"
}
converter = Osr2mp4(data, settings)
converter.startall()
converter.joinall()
Or you can save data and settings in a json file.
config.json:
{
"osu! path": "/Users/yuitora./osu!/",
"Skin path": "/Users/yuitora./osu!/Skins/-#Whitecat#-",
"Beatmap path": "/Users/yuitora./osu!/Songs/123456 Hachigatsu, Bou/",
".osr path": "/Users/yuitora./osu!/Replays/yuitora_12317423.osr",
"Default skin path": "/Users/yuitora./Downloads/Default Skin/",
"Output path": "output.avi",
"Width": 1920,
"Height": 1080,
"FPS": 60,
"Start time": 0,
"End time": -1,
"Video codec": "XVID",
"Process": 2,
"ffmpeg path": "Users/yuitora./ffmpeg/bin/ffmpeg.exe"
}
settings.json:
{
"Cursor size": 1,
"In-game interface": true,
"Show scoreboard": true,
"Background dim": 90,
"Always show key overlay": true,
"Automatic cursor size": true,
"Rotate sliderball": false,
"Score meter size": 1.25,
"Song volume": 50,
"Effect volume": 100,
"Ignore beatmap hitsounds": true,
"Use skin's sound samples": true,
"Global leaderboard": false,
"Mods leaderboard": "(HD)HR",
"api key": "lol"
}
And to load it in code
from osr2mp4.osr2mp4 import Osr2mp4
converter = Osr2mp4(filedata="config.json", filesettings="settings.json")
converter.startall()
converter.joinall()
Documentation
Osr2mp4.startvideo()
Start video without audio.
Osr2mp4.joinvideo()
Wait for video to finish.
Osr2mp4.startaudio()
Start audio.
Osr2mp4.joinaudio()
Wait for audio to finish.
Osr2mp4.startall()
Start video and audio.
Osr2mp4.joinall()
Wait for all to finish.
Osr2mp4.getprogress()
Return a value from 0 to 100 corresponding to the estimated progress of the conversion.
Metadata
Release files for osr2mp4 0.0.6a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| osr2mp4-0.0.6a1.tar.gz | 12.5 MB | Without provenance | Details for osr2mp4-0.0.6a1.tar.gz |
Release files / osr2mp4-0.0.6a1.tar.gz
| Download URL | osr2mp4-0.0.6a1.tar.gz |
|---|---|
| Size | 12.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f19f39c77ea1375243c3d95c3b4f556e05599e253a6d964553c9d8fb0be960b
|
|
BLAKE2b-256 checksum How to use checksums |
f3f1c3e63ba6211ea310950a6466d57ca7062b8b7eccca3b93ed1236a27d3a62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.8
|
Security for osr2mp4 0.0.6a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.