forum

osr2mp4 public release. Automatically convert replay file to video.

posted
Total Posts
315
show more
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
MushyTyger
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
shimtzy

yuitora wrote:

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!
thanks bro
Topic Starter
yuitora

MushyTyger wrote:

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?
TamakoSenpai
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
yuitora

TamakoSenpai wrote:

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
TamakoSenpai

yuitora wrote:

TamakoSenpai wrote:

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
Dropinx
got this error when trying to convert a replay on this map: beatmapsets/85#osu/193
https://prnt.sc/tqyemh
Giai tich 2
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
yuitora

Giai tich 2 wrote:

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.
FingerDash2006
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

TamakoSenpai wrote:

yuitora wrote:

TamakoSenpai wrote:

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
xtql
Thank you
Actual Grey Cat
Once I get my pc connected back to the wifi, I am saying instant download of this. Thank you so much for making this. I’ll make sure to come back whenever I see if it works
Giai tich 2

yuitora wrote:

Giai tich 2 wrote:

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:

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.
daaaryl
sadly, it doesn't work for 2gb RAM pc's, lmao.
Topic Starter
yuitora

Giai tich 2 wrote:

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:

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.
Oh I see, well currently I'm using opencv to render videos (because for some reason idk yet it's much faster than ffmpeg) and opencv only offers basic video processing functions. I'll try to find out how opencv video processing work.



daaaryl wrote:

sadly, it doesn't work for 2gb RAM pc's, lmao.
Hmm, I think it should.
What error do you get? Can you send logs?
Issuko
It looks insane can't wait to try it
Contra
great
FingerDash2006
it keep stopping at 90-99%
any solution for this?
Cookiesparta

yuitora wrote:

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)



could i help by translating things to portuguese? i'm not a phyton dev or something but i can help on translating
- Isla -
wow. thats amazing, been looking for something like this for ages. tysm <3
Zelzatter Zero
Now this is epic.

Also can you add an option to convert replay with custom hitsounds in the map and/or with video/storyboard too?
xKongou
I just download this and i wanna export my replay. But it oept saying "object of type 'NoneTupe' has no len"

Can someone help me
qwt
Does it work for Taiko and CTB???
Razi7s

CallMeKenshi wrote:

how can i convert to mp4?
just change file name from .avi to .mp4

make sure to have file extensions not on hidden.
notHardXD
thank you for the hardwork
Kissen1
Holy shit, this is awesome. I'll have to test it out, up until now Im pretty sure everyone's had to go thru the boring *open OBS, click replay in osu, wait 5 mins till it's finished* but now we can just have more upload efficiency when posting replays of our scores online!😯
meomaid
Why do I keep getting this error?
ImportError("cannot import name 'UnidentifiedImageError' from 'PIL' (C:\\Users\\\\AppData\\Roaming\\Python\\Python37\\site-packages\\PIL\\__init__.py)")cannot import name 'UnidentifiedImageError' from 'PIL' (C:\Users\\AppData\Roaming\Python\Python37\site-packages\PIL\__init__.py)
Playay
Everytime i want to convert osr, i keep getting this :
IndexError('string index out of range')string index out of range
What should i do?
-FR
what codecs are supported? when i try something like h264 the progress gets always stuck at 99% and never finishes
michaeljericho
how to put skin ? :<
Masoretafy
Thank you very much, now i can record my osu plays in 60fps.

Really thank you very much, you just solved my life with this.

<3
Rhythm32
how much time can it take to be fully released to 1.0 cause this looks awesome
Kuiio
thanks, i wont need to watch over my own plays and record them now that i want to share with friends :D
Zenriel
amazing work
Paperbag
i got an error saying no such file or directory
what does that mean
Rythmos
It seems that i cant open the app, when i tried to use the app, it closes instantly. Does anybody know why ?

logs :
on appoutput :
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00001f00 (most recent call first):

on deleteexit :
Error deleting Logs/appupdate.log -1

on ppappoutput :
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00002fc4 (most recent call first):


oh yeah i'm using the win64 version
meepdos
i can't download it, it stops on 148 mb and the says "couldn't download, no permission"
Kadota
Mine gets stuck at 99%
What should I do
gwb
i just realized it
- bans harumachi clover replays
- makes some sliders straight on weird maps for some reason
Coffene
This software is good, especially for someone who has a low-end computer. Anyway, my skin was broken a lot after put to osr2mp4. It’s very terrible for me.
Hexishu
Can I use 240 fps? Because I want to render it again (60fps footage isn't this nice)
NuloZoulette
Quelqu'un peut-il m'expliquer comment faire pour ouvrir l'application après avoir télécharger les fichiers SVP
(soit je suis aveugle, soit il me manque un truc)
DzulNotFound
how to use WINrar?
Triple__
what am i supposed to open the app with?
Quora
m
chuunii-
are there any plans to get other modes to work for this? I want to use this to get some mania replays downloaded but this happened
Phantonym
when will you update it qwq
NM Enjoyer
How do I add a skin to it? When I click the dropdown the only skin there is the default one
AyonK
Please add support for mania replays, this will help mania players with bad pcs a lot
SoundFds
make one for osu mania pls !! :)
dolq
How do you even change skin help aaaa
xtql

Playay wrote:

Everytime i want to convert osr, i keep getting this :
IndexError('string index out of range')string index out of range
What should i do?
i have the same problem
Rierii-chan
pp counter not showing the same value in osu! profile

osu!'s website = 180PP

osr2mp4 = around 178.01
AndyGuan
wow
Phantonym

_KawaiiSenpai_ wrote:

pp counter not showing the same value in osu! profile

osu!'s website = 180PP

osr2mp4 = around 178.01
same :(
_Yuiko
the output audio qualiy is awful. Can you make settings where we can change to audio quality to 320kps ?
wlidcat
intresting lol
Yuiey
why are the circles disappering in the mp4 if i set the output to over 350fps? i kinda want to resample in 900fps but its bugged if i set it above 350.
Aguacate
When OS2MP4 will be able to have ScoreV2 replays done right??
R3ndezvous
IndexError('list index out of range')

How to fix?
show more
Please sign in to reply.

New reply