Sign In To Proceed 435v5c

Don't have an ? 473g1v

osu! to create your own !
forum

osr2mp4 public release. Automatically convert replay file to video. 2i1c67

posted
Total Posts
315
Topic Starter
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 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 s 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 ed 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)


wow
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
really good job!!!
god bless
Amazing feature :D
wow it seems useful
I love you.
absolutely legendary. replay channels and s alike will this forever. Thank you!
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
i 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
thanks for doing this <3
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?
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 :)

Asterllia- wrote: 4rnm

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
this tool is actually insane, thanks for developing it <3

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

Asterllia- wrote: 4rnm

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.
And I'm here thinking .osr can't be converted into .mp4...

This is interesting.
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

Semio wrote: 1w6a5d

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?
Thanks c:
good stuff
really well done!


sad
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
wow thanks for this!
i get no archives found/unknown archive format error error when ing and reing
Doesn't seem to work with FL mode enable :(
Still a good software nontheless ! :)
Trying to convert a mania replay, but this shows up.
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
Wow thanks you
Made a desktop shortcut for this :)
FL doesn't seem to work with this but that's the only thing I found wrong with this, thank you for making this :)


:(
How do I change the codec to make it a .mp4 instead of a .avi?
KeyError(454)454 ???
How to fix
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!
Cool! OwO
.
Yey finally after years...
Thank you so much for this <3
Topic Starter

Selfy wrote: 2v3j5d



:(

RayRaivern wrote: 6v5q72

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

Linkshu1 wrote: 501aw

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: 1z4s2t

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



DeathStarr wrote: 515z4b

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 u core - 1.
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
It works perfectly Pog :)
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

Bensword331 wrote: 581h4d

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 the discord server and report the issue there.
POOOOG <3
I got an error saying:
ValueError('Problem with video writer')Problem with video writer

is there a solution to this?
Topic Starter

Alan- wrote: 343c13

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, the discord server.
I clicked start and then nothing happens still 0% for really long time.
how can i convert to mp4?
God has blessed us. Thank you sir for your honorable contributions.
Topic Starter

BeAHoOkSuB wrote: 712k31

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



CallMeKenshi wrote: 2h5o55

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

Heddy_Nguyen wrote: 4t5v56

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 ed 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 ed. 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).
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
how to add a skin i only can use the default skin. need halp huhuhu
Topic Starter

shimtzy wrote: lz12

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:\s\\AppData\Local\osu!
After converting first replay, i've got this error.
https://prnt.sc/tliubl
Why is the sound of the combobreak and the spinnersound so loud?
God bless tysm
bro why didn't you release this 8 years ago LMAO
no joke tho this program is sick, ty for creating this
Topic Starter

MatijaTheBoss wrote: 4s495q

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: 2n1419

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

MyAimSora wrote: y5g6k

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

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

Ch3mson wrote: 20205c

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

Sweat wrote: d231l

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: 6i1w22

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.

Linkshu1 wrote: 501aw

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 .
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.
how do you change the skin
Topic Starter

AkariMizumi24 wrote: 562t1u

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:\s\\AppData\Local\osu!
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 ed" error. Awesome work guys!
Mi Kamisama gracias bro
Why cant I make the video longer? my max end time is 86 and the replay doesn't finish the video, like I converted a 3 min map but it only converted up to 86 seconds

yuitora wrote: 5j3f2i

shimtzy wrote: lz12

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:\s\\AppData\Local\osu!
thanks bro
Topic Starter

MushyTyger wrote: w273f

Why cant I make the video longer? my max end time is 86 and the replay doesn't finish the video, like I converted a 3 min map but it only converted up to 86 seconds
hmm This is weird, can you send the map link?
It's working great!, but after the update the circles are overlapping the hp bar & it goes out of the playing resolution, also accuracy status is overlapping the score status, i tried 1920x1080 and i thought that's the reason on why the playing resolution is broken, but i used my normal resolution which is 1366x768, but it didn't work as well.

here's the photos
https://imgur.com/a/Ilt1IDF
Topic Starter

TamakoSenpai wrote: 6m2p1t

It's working great!, but after the update the circles are overlapping the hp bar & it goes out of the playing resolution, also accuracy status is overlapping the score status, i tried 1920x1080 and i thought that's the reason on why the playing resolution is broken, but i used my normal resolution which is 1366x768, but it didn't work as well.

here's the photos
https://imgur.com/a/Ilt1IDF
Can you send me your skin

yuitora wrote: 5j3f2i

TamakoSenpai wrote: 6m2p1t

It's working great!, but after the update the circles are overlapping the hp bar & it goes out of the playing resolution, also accuracy status is overlapping the score status, i tried 1920x1080 and i thought that's the reason on why the playing resolution is broken, but i used my normal resolution which is 1366x768, but it didn't work as well.

here's the photos
https://imgur.com/a/Ilt1IDF
Can you send me your skin
here:
Tamako's Skin
got this error when trying to convert a replay on this map: beatmapsets/85#osu/193
https://prnt.sc/tqyemh
Since it's seem like I can only change the codec or resolution, with some in-game appearances elements, and I can't decide what presets should I use. Since this uses ffmpeg to encode, would an "Advanced" features be available in the future? Like Custom Output (FFmpeg) in OBS.

I can easily record or live realtime with VP9 with low-medium presets, but without any specific settings here, it seems like it uses good presets, and it costs like >1hr to encode a 4mins replay.

Same for X264 or HEVC as well, it actually takes more time than realtime (less than 1.0x speed) comparing to the replay length (not much like VP9, but still...), XVID is kinda old tbh. And it's file size is not good to compare with HEVC or VP9 (if same visual quality). But encoding with osr2mp4, the avg bitrate of x264, x265 or vp9 is higher than xvid LOL (so the filesize increases). But HEVC and VP9 can save bitrates.

So, having a "Advanced"-like function can make us balancing encoding time vs. video quality ourselves.

And also the audio codec is ALWAYS aac, so when naming the output, I have to name it mkv, so it can contains VP9 and aac, when I set is as webm (contains opus or vorbis), it caused an error. You should also have a section to set audio codec as well.
Topic Starter

Giai tich 2 wrote: 5f2f1g

it costs like >1hr to encode a 4mins replay.
What settings are you using? Even on a very old computer, it shouldn't take more than 10-12 minutes to render a 1920x1080 60fps 4 minutes map.
On a normal/high end pc, it renders faster than the map length.
The pp counter seem to calculate HD wrong? like in this video: https://www.youtube.com/watch?v=YarmxvLISpk
It show 243pp but it's actually 256pp. Same thing happen with this HD play: https://www.youtube.com/watch?v=LJpJn95LPzU

TamakoSenpai wrote: 6m2p1t

yuitora wrote: 5j3f2i

TamakoSenpai wrote: 6m2p1t

It's working great!, but after the update the circles are overlapping the hp bar & it goes out of the playing resolution, also accuracy status is overlapping the score status, i tried 1920x1080 and i thought that's the reason on why the playing resolution is broken, but i used my normal resolution which is 1366x768, but it didn't work as well.

here's the photos
https://imgur.com/a/Ilt1IDF
Can you send me your skin
here:
Tamako's Skin

an update on this, all skins (by all skins i mean skins that are only available on my osu skins file) didn't work, i've used 1920x1080 and my normal resolution which is 1366x768, tried the legacy as well, but it didn't work, still overlaps the playing resolution (which means overlapping the hp bar), but the accuracy overlapping the score status is only my skin problem, but the first problem i said, it's not only my skin
Thank you
Actual Grey Cat
Once I get my pc connected back to the wifi, I am saying instant of this. Thank you so much for making this. I’ll make sure to come back whenever I see if it works

yuitora wrote: 5j3f2i

Giai tich 2 wrote: 5f2f1g

it costs like >1hr to encode a 4mins replay.
What settings are you using? Even on a very old computer, it shouldn't take more than 10-12 minutes to render a 1920x1080 60fps 4 minutes map.
On a normal/high end pc, it renders faster than the map length.
If set "XVID" like default, I can encode 4min map 1080p60 in about 30sec-1min.
I did mention above, that I used VP9 for that. And it cost >1hr (when I can easily live encoding with VP9 on OBS or ffmpeg)

Giai tich 2 wrote: 5f2f1g

I can easily record or live realtime with VP9 with low-medium presets, but without any specific settings here, it seems like it uses good presets, and it costs like >1hr to encode a 4mins replay.
show more
Please sign in to reply.

New reply 1b384i