Go to file
nemo a2770dafce add readme 2025-06-12 10:47:36 +02:00
.gitignore exemple record in raylib 2025-06-12 10:39:16 +02:00
Makefile exemple record in raylib 2025-06-12 10:39:16 +02:00
README.md add readme 2025-06-12 10:47:36 +02:00
main.c exemple record in raylib 2025-06-12 10:39:16 +02:00

README.md

RayRecord

exemple of recording the screen with raylib and ffmpeg

how it work

  1. draw stuff using raylib
  2. capture frame buffer
  3. pipe it to ffmpeg

bug

If the FPS is to high you might have some frame swapped and one black frame at the begining.

It seems to be from raylib or from my machine because I have the same result if I take screenshot with raylib's TakeScreenshot() or if I save the frame buffer with stbi_image_write.h.

FIX: lower the fps with SetTargetFPS(10)