Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to work on the framebuffer to record what is being rendered.

Now, I figure out how to convert the framebuffer in an image, I'm currently unable to obtain a constant stream of data from the fb to create a video.

/dev/fb > fb

When I do something like this my redirection just drops me and I honestly don't know how to work in another way with the framebuffer.

How I can obtain a stream?

share|improve this question
/dev/fb is not a command! Use cat /dev/fb > fb – Guido May 29 '14 at 13:43

In order to capture data from the framebuffer, you can copy from the framebuffer device file:

cp /dev/fb0 fb

If you changed the file you're copying to every time, you should be able to save every frame. Don't expect a lot of Frames per Second though, since the framebuffer is typically pretty slow.

As suggest in this forum post, ffmpeg might be a better option:

ffmpeg -f fbdev -i /dev/fb0 -r 24 -c:v libx264 -b:v 500k output.avi
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.