Once you understand how to work with audio in Qt, working with video is only a small step up in terms of complexity. Just as with audio, we'll use a player object to load and playback content, and a recorder object to record it. However, with video, we'll need to add in a few extra components to handle the visualization of the content and to initialize the source device.
In order to understand how it works, we're going to build a video-logging application. Copy the application template from Chapter 4, Building Applications with QMainWindow, to a new file called captains_log.py and we'll start coding.