def blit_path_representation(self):
        """Blit representation of video in current path."""
        rect = (
            1,
            BUTTON_HEIGHT + 2,
            self.width - 2,
            self.height - ((BUTTON_HEIGHT * 2) + 2),
        )

        ###
        try:
            subsurf = self.path_repr_subsurf

        except AttributeError:

            subsurf = self.path_repr_subsurf = self.image.subsurface(rect)

        subsurf.fill(PATHPREVIEW_BG)

        ###

        if FFMPEG_AVAILABLE:

            preview_surf = VIDEO_DATA_DB[self.current_path][
                {
                    "max_width": 153,
                    "max_height": 153,
                    "not_found_width": 153,
                    "not_found_height": 153,
                }
            ][0]

        else:

            preview_surf = render_multiline_text(
                text=NO_FFMPEG_TEXT,
                retrieve_pos_from="bottomleft",
                assign_pos_to="topleft",
            )

        blit_aligned(
            preview_surf,
            target_surface=subsurf,
            retrieve_pos_from="center",
            assign_pos_to="center",
        )

        super().blit_path_representation()
Blit representation of video in current path.
nodezator/widget/pathpreview/video.py