forum

osr2mp4 public release. Automatically convert replay file to video.

posted
Total Posts
315
Topic Starter
yuitora
After a few months I’ve managed to make an app that convert osu replays to mp4 videos in few clicks.
All you need to do is to choose the replay you want to convert and click the "Start" button.

You can download the app here: https://github.com/uyitroa/osr2mp4-app/releases/tag/v0.3
For more information about the app: https://github.com/uyitroa/osr2mp4-app/

A sample video using osr2mp4: https://www.youtube.com/watch?v=5ugu_9yDSg0

I would appreciate feedbacks and issues, just send me a message via discord: https://discord.gg/kaftu4y or open an issue on github.
Special thanks to -freez for the big brain design.

Enjoy the program!

Changelogs
0.2:
  1. Change ValueError(‘Problem with video writer’) to a more detailed error.
  2. Fix app crash when selecting osu folder:
    1. try catch when replay are corrupted
    2. try catch when beatmap is not found in osu.db since it’s not updated for new downloaded beatmap
    3. try catch when fail to parse scores.db
  3. Fix audio when set volume to 0%
  4. Background delay when using dt or ht fix
  5. Can’t render scorev2 replay fix (by using scorev1 system)
  6. Fix using wrong hp bar (fix not using @2x file when animated image file doesn’t exist)
  7. Fix continuous cursor trail (math domain error)
  8. Weird character in skin name fix
  9. Improve skin.ini parse (fix keyerror and others stuffs)
  10. Fix parsing replay gives NoneType object is not subscriptable
  11. Fix hitcircle border not loading
0.3:
  1. Show mods during replay
  2. Output name in another textbox
  3. Customisable output name, ex: {Map} played by {Player} at {PlayDate} video rendered at {Date} {Accuracy}%.mp4
  4. Customisable PP counter. CustomPP.exe
  5. Fix no spinner with some skin
  6. Hide combo during breaks
  7. Fix animation for fps > 60 (? not sure if it’s fixed)
  8. Fix scrollbar does weird shit
  9. Fix clipping line during ranking screen on some skin
  10. Add song delay option
  11. Fix grade sometimes it shows D rank instead of C rank
  12. Fix key error on CHUJ kurwa map (due to wrong slider speed)
  13. Add unstable rate at the end of the replay
  14. Fix wonky kick slider
  15. Fix relax plays doesn’t work properly
  16. Accuracy position is fucked up with special resolution fix
  17. Update spinner (margin error of spin bonus score is +- 1k, instead of 10k lol)


_lyko
wow
LynVA
really hope this works without major flaws, testing it myself

yeah it works perfectly just make sure you set your output file to end in .mp4 because avis suckk
OppaiFun
really good job!!!
Anaether
god bless
Stark
Amazing feature :D
Not DT Farmer
wow it seems useful
Chappell Roan
I love you.
grizzlypng
absolutely legendary. replay channels and users alike will remember this forever. Thank you!
mood__
This is insanely good work! bravo

Just tested it myself rn and it worked great. This has been talked about forever but never made so massive credit for finally doing it!!!

Thanks!

Edit: I just had a random crash with no error message? may have just been my system or a bad map. Also I'd suggest making .mp4 the default export if possible since its more often used and people are more familiar with it

great work nonetheless!!!

Edit2: Ok i found a problem

I realized for some reason (even though i disable mouse input in game), it appears as if i click and use mouse 1 every now and then, it isn't a massive problem, but an issue none the less
AquaTail
i remember we had one of these at some point, but its sadly abandoned now, glad to see people come back to it again, i really like the idea
TequilaWolf
thanks for doing this <3
kim hyunjin
Umm Hello, i got problem when i choose my osr, when i click open the program closed, and then i got error message how i fix this?
_Illustrious_
This information is worth millions.
Uokey
That's actually really handy ! And also weird because i was wondering about something like that last nigtht haha what a coincidence :)
Unbound-

Asterllia- wrote:

Umm Hello, i got problem when i choose my osr, when i click open the program closed, and then i got error message how i fix this?
I found out that you have to switch to another skin, for example using default osu skin solves this problem
polars
this tool is actually insane, thanks for developing it <3

this is going to save me a lot of time and hassle with uploading replays
Topic Starter
yuitora

Asterllia- wrote:

Umm Hello, i got problem when i choose my osr, when i click open the program closed, and then i got error message how i fix this?
Fixed, click on the update button.
Zelzatter Zero
And I'm here thinking .osr can't be converted into .mp4...

This is interesting.
Need For Speed
App lags upon clicking start for newest detected replay exported, after few seconds showing information about timeout error, app will force quit itself upon accessing settings tab; is there any way to fix it?
Topic Starter
yuitora

Semio wrote:

App lags upon clicking start for newest detected replay exported, after few seconds showing information about timeout error, app will force quit itself upon accessing settings tab; is there any way to fix it?
Can you send me logs folder on discord?
Natsuko
Thanks c:
FireRedz
good stuff
angelgraph
really well done!
FireRedz


sad
hallowatcher
wish it was multi platform. currently, i can only run this on a windows vm on my linux host. but still great job regardless!

edit: i can probably use the core project directly on my linux machine with python
Yusomi
wow thanks for this!
Virgin Slayer
i get no archives found/unknown archive format error error when downloading and redownloading
fdmf
Doesn't seem to work with FL mode enable :(
Still a good software nontheless ! :)
RayRaivern
Trying to convert a mania replay, but this shows up.
Linkshu1
how do i fix this error?
it says:
ValueError('Problem with
audio')Problem with audio

P.S idk how to send pics from my desktop

another edit: when i try again it goes to about 8% then stops then after a couple tries i get the same error again
MyAngelAdo
Wow thanks you
Daelan
Made a desktop shortcut for this :)
me slow
FL doesn't seem to work with this but that's the only thing I found wrong with this, thank you for making this :)
Selfy


:(
Shira0ri
How do I change the codec to make it a .mp4 instead of a .avi?
_ReBoSseR_
KeyError(454)454 ???
How to fix
Marscheu
I have a question, What does the 'process' means?

and is it possible to change the 'video codec'? :D

Anyways, awesome content! It is working properly!

Good job man!
Tanomoshii Nekojou
Cool! OwO
ziild
.
PalPal
Yey finally after years...
Inversionist
Thank you so much for this <3
Topic Starter
yuitora

Selfy wrote:



:(

RayRaivern wrote:

Trying to convert a mania replay, but this shows up.
3 others game mode are not supported unfortunately.

Linkshu1 wrote:

how do i fix this error?
it says:
ValueError('Problem with
audio')Problem with audio

P.S idk how to send pics from my desktop

another edit: when i try again it goes to about 8% then stops then after a couple tries i get the same error again

_ReBoSseR_ wrote:

KeyError(454)454 ???
How to fix
Try updating the app. If there is the error, join the discord server.



DeathStarr wrote:

I have a question, What does the 'process' means?

and is it possible to change the 'video codec'? :D

Anyways, awesome content! It is working properly!

Good job man!
Process means the number of processes, so theoretically the program will convert faster if you increase it. But if you increase too much it will start to slow down since your pc won't be able to handle it. The best process option is the number of cpu core - 1.
Brogamer89
this programs works so good!, but it was better if the program records video background at the same time
sorry for my bad english

https://www.youtube.com/watch?v=pf6tnfuUl-k
DanCheese3
It works perfectly Pog :)
Bensword331
Hey, i'm trying to convert a replay but the program crash almost instantly when I click "START".
Sorry for not providing more information but that is all that the program do.
The replay is standard mode.
Topic Starter
yuitora

Bensword331 wrote:

Hey, i'm trying to convert a replay but the program crash almost instantly when I click "START".
Sorry for not providing more information but that is all that the program do.
The replay is standard mode.
Click on reset.exe, it won't show any window but it works. Then reopen the app, click the update button. Then try it again. If it still doesn't work join the discord server and report the issue there.
livingbright
POOOOG <3
araran
I got an error saying:
ValueError('Problem with video writer')Problem with video writer

is there a solution to this?
Topic Starter
yuitora

Alan- wrote:

I got an error saying:
ValueError('Problem with video writer')Problem with video writer

is there a solution to this?
Click on the update button. Then retry it. If it still doesn't work, join the discord server.
NigfriD-
I clicked start and then nothing happens still 0% for really long time.
CallMeKenshi
how can i convert to mp4?
q9za
God has blessed us. Thank you sir for your honorable contributions.
Topic Starter
yuitora

BeAHoOkSuB wrote:

I clicked start and then nothing happens still 0% for really long time.
Download the osr2mp4test version.



CallMeKenshi wrote:

how can i convert to mp4?
Change .avi to .mp4 in the output path option menu.
AkariYui
Is there any other codec than Xvid? Because i want to check the replay before posting it but I don't have Xvid decoder
Full Tablet

Heddy_Nguyen wrote:

Is there any other codec than Xvid? Because i want to check the replay before posting it but I don't have Xvid decoder
Xvid produces video in the h.263 format (which is one of the most widely supported formats), your problem is more likely because of the container format instead. Change the file's extension in the output from .avi to .mp4 to use the mp4 container format.

Now, if you really want to change the codec (which I would recommend, since h.263 produces high bitrate videos with relatively low quality), change the setting from "Xvid" to "X264" (for h.264 video, which is better and also widely supported. It's the video format usually associated with .mp4 files). (Theoretically, X265 to produce h.265 files should also work with ffmpeg, but using that option produces h.264 files too for some reason).
Keversan
wow that program is great, my laptop is so bad that I could not record osu with any screen recorder, but with this software it was great.


Thank you very much.
_Aoba Suzukaze_
yes
shimtzy
how to add a skin i only can use the default skin. need halp huhuhu
Topic Starter
yuitora

shimtzy wrote:

how to add a skin i only can use the default skin. need halp huhuhu
Did you select the right osu! folder? When it asked for your osu! folder, it's not the Replays folder. It's usually sometihng like C:\Users\user\AppData\Local\osu!
Matija
After converting first replay, i've got this error.
https://prnt.sc/tliubl
-Raffa-
Why is the sound of the combobreak and the spinnersound so loud?
Botoxel
God bless tysm
Frodo
jumpinthecaac
bro why didn't you release this 8 years ago LMAO
no joke tho this program is sick, ty for creating this
Topic Starter
yuitora

MatijaTheBoss wrote:

After converting first replay, i've got this error.
https://prnt.sc/tliubl
It happens on some replays, can you send your replay and map link?



-Raffa- wrote:

Why is the sound of the combobreak and the spinnersound so loud?
Thanks for the feedback!

MyAimSora wrote:

https://imgur.com/a/vKv6asy
Can you send logs folder
sweatily
Does the NVENC video codec work and if so do I just type that in the settings for it?
Ch3mson
The osr2mp4.exe doesn't open after the new update.
-MagS-
Is it possible to record replays of the other game modes in the future?

P.S: Good job, it's really amazing!
Topic Starter
yuitora

Ch3mson wrote:

The osr2mp4.exe doesn't open after the new update.
Can you send logs folder?

Sweat wrote:

Does the NVENC video codec work and if so do I just type that in the settings for it?
You need to enter the "four character code" for your preferred codec. For example, the fourcc of vp9 is vp90.
You can try to find the fourcc of the codec here: https://www.fourcc.org/codecs.php

MagoSimon wrote:

Is it possible to record replays of the other game modes in the future?

P.S: Good job, it's really amazing!
I don't have plan to implement 3 other game modes unfortunately.
MockNugget

Linkshu1 wrote:

how do i fix this error?
it says:
ValueError('Problem with
audio')Problem with audio

P.S idk how to send pics from my desktop

another edit: when i try again it goes to about 8% then stops then after a couple tries i get the same error again
press Print screen on your keyboard. It basically copies what you see in the monitor and pressing ctrl V to some applications like paint .
ShadowAntrax
I tried this and it's working great, but it'd be really great if we can show the background video playing. I don't see any option in the client.
AkariMizumi24
how do you change the skin
Topic Starter
yuitora

AkariMizumi24 wrote:

how do you change the skin
Did you select the right osu! folder? When it asked for your osu! folder, it's not the Replays folder. It's usually sometihng like C:\Users\user\AppData\Local\osu!
-NOBLE-
Really awesome software!! Just have to wait for the osu!Catch release, as I don't have any standard replays to get :P and it comes up with a "Gamemode not supported" error. Awesome work guys!
KingRojasisaac
Mi Kamisama gracias bro
show more
Please sign in to reply.

New reply

/