Streaming Xvfb screendump

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
poul
Posts: 1
Joined: 2012-10-22T04:12:21-07:00
Authentication code: 67789

Streaming Xvfb screendump

Post by poul »

I am running Xvfb(1X) on a RedHat system, and I need to be able to present the screen.
I remember a cool tool from the old days xwatchwin(1X) which allowed you to spy on an X-display.
animate can almost do this, although it gives me a lot of flickering...

Xvfb(1X) can use a file as framebuffer:

Code: Select all

Xvfb -fbdir /tmp/fbdir
The screen is now available in /tmp/fbdir/Xvfb_screen0 - X window dump image data (same as xwd(1X)/xuwd(1X) uses)
I really would like to convert this file to an (ongoing) mpeg stream (watchable in a browser), but I can't find the correct tool to achieve this...

anyone got an idea?

thanks

poul
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Streaming Xvfb screendump

Post by anthony »

"import" command, or the x: input coder.

See IM examples, Image File Handling, X (input handling)
http://www.imagemagick.org/Usage/files/#x

You can specify the display to use using the DISPLAY environment variable.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply