Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9163357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:25:40+00:00 2026-06-17T14:25:40+00:00

I hope this question isn’t inherently nonsensical. I’m developing a game. I’ve separated out

  • 0

I hope this question isn’t inherently nonsensical.

I’m developing a game. I’ve separated out the underlying game engine (in Python) from the graphics component. I have a script that fuzzes some parameters, simulates part of a game using the game engine, and then visualizes it using Pygame.

I’d like to automate the following process:

  1. Run simulation as cronjob
  2. Visualize it using Pygame (headlessly)
  3. Save visualization as a short (~10 sec) video file
  4. Programmatically upload video to Youtube

Ideally, I’d like to do this a few times a day so non-technical members of my team could view the video and give feedback on visual aspects of the game.

I’d like to use Pygame because I’ve already got the code ready to go. But I suspect I should probably use something like PIL to create a series of image files and go from there.

Is this possible with Pygame? Should I just use PIL? Any other ideas for accomplishing something like this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:25:41+00:00Added an answer on June 17, 2026 at 2:25 pm

    Assuming you are running on linux, and your graphics engine works in X, you can headlessly run any application you want using Xvfb (X virtual framebuffer). You can run a video encoder of the virtual (headless) framebuffer session. There are a couple of utilities to make this task easier:

    • https://github.com/leonid-shevtsov/headless
    • https://github.com/lightsofapollo/x-recorder

    You’d want to make a top level script which would:

    • Start up Xvfb
    • Start up a video encoder (ie, ffmpeg)
    • Run your game in the Xvfb. You shouldn’t need to modify your game in any way, assuming it can run with no user input, just set the DISPLAY environment variable to the correct value.
    • End the video encoding
    • Upload the video to youtube

    Xvfb and ffmpeg are definitely the way to go for recording the game headlessly, this ensures you can record your game as is with no modifications. It should be doable but not necessarily easy. The above scripts should hopefully get you started.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm still a newcomer to python, so I hope this question isn't inane. The
I hope this question isn't too general/ambiguous... I'm writing an iphone quiz game app
I hope this question isn't too general. Well, the situation is that I am
I hope this question isn't too dumb. We have many websites internally that need
I hope this question isn't too open ended, but a nudge in the right
I'm fairly new to servlets so I hope this isn't an obvious question. So
Alright, I hope this isn't too broad a question but my curiosity got the
Hey guys, hope this isn't too much of a n00b question I'm mainly a
I hope this question isn't too simple, I tried to go through the postgresql
I hope this question isn't duplicating something in the archives; I've looked but can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.