add support for mp4 + audio and screen_recorder.py rewritted to use FFMPEG #416
add support for mp4 + audio and screen_recorder.py rewritted to use FFMPEG #416RgeditV1 wants to merge 1 commit into
screen_recorder.py rewritted to use FFMPEG #416Conversation
Baekalfen
left a comment
There was a problem hiding this comment.
Nice work. The only thing that doesn’t look right, is the gif. It seems like it’s dropping frames? It should be completely smooth 60 FPS, as we are storing every frame and playing it back with perfect timing.
RgeditV1
left a comment
There was a problem hiding this comment.
seems like its working fine for me
|
Ok, it seems it’s not dropping frames, rather the framerate is far too low. Maybe there’s some metadata that should be configured? I think that was initially an issue with the current implementation, but I fixed it somehow with different parameters. The current GIFs work fine in Safari, while the one you sent might be around 10-15 FPS? |
Yeah, your gif is fine right now |
|
hope you could helpme with the workflows |
|
You can ignore the workflow for now. As long as the macOS ones are working, it’s just some setup |
Take ur time for feedbacks |
|
Did you fix the frame rate issue? You can post a GIF here so I can verify, I’m not much at the computer these weeks |
there isnt frame rate issue, its working now, but when u open it with github or vscode it seems slow. look at this screenrecording-2026-05-09_12-08-28.mp4its really working fine |
|
But it also has to work in Visual Studio. There's a small detail you're missing. Try opening The GIFs in the readme here on GitHub are recorded with this code, so it has to keep working on GitHub. |
i think i got it |
| # cannot be represented exactly and some players jitter or clamp playback. | ||
| # 50 FPS maps exactly to 2 centiseconds per frame and is broadly compatible. | ||
| # Finally DONE!! | ||
| GIF_FPS = 50 |
There was a problem hiding this comment.
It’s a good insight, and you might be onto something. But the current GIFs work fine at 60 fps, so there must be a way to configure it.
There was a problem hiding this comment.
I've been researching 60fps in GIFs and I understand that 60fps doesn't actually exist; Pillow uses a technique to create the illusion of 60fps.
I understand that 60 frames per second is not possible due to limitations of the GIF file in question.
There was a problem hiding this comment.
i can use pillow and ffmpeg at same time but in theroy will be the same thing
ill be waiting your answer to put my hand to work
There was a problem hiding this comment.
I see. That’s surprising. Wonder how it’s done now.
Did you try this? Changing the delay per frame: https://superuser.com/a/1449427
There was a problem hiding this comment.
Alright, maybe just do the original plan and have a separate mp4 recorder? That should be easy, right?
There was a problem hiding this comment.
I really appreciate the effort you put into this
There was a problem hiding this comment.
Alright, maybe just do the original plan and have a separate mp4 recorder? That should be easy, right?
So, pillow=gif and ffmpeg=mp4?
There was a problem hiding this comment.
Alright, maybe just do the original plan and have a separate mp4 recorder? That should be easy, right?
I think it should be in same file
There was a problem hiding this comment.
So, pillow=gif and ffmpeg=mp4?
Exactly. You can decide if it needs separate files
Signed-off-by: Rgeditv1 <rgeditv1@protonmail.com>


patch for: #368
add full support for mp4 + audio
add new hotkey
Ufor togglemp4 recordingscreen recorder backend rewritted to
FFMPEGGIF
MP4
POKEMON.RED-2026.05.05-15.54.24.mp4
UNIT TEST TRACE