Hero image

Movie Capture

What the code does

I am often asked how I capture movies of PTB for the website. This is how I do it. This demo is the same as "Rotating Squares Demo", but it captures a moive of the screen in mp4 format and save it out to the current working directory. It uses in built functionality of PTB, in fact just a few additional lines of code. You will need ot ensure that you have GStreamer installed for this demo to work as PTB uses GStreamer to capture movies. You should have already done this as part of the PTB installation process. 

Visualisation

The code

Instagram image Instagram image Instagram image Instagram image Instagram image Instagram image