Ffmpeg is an incredible tool. I recently did a fun project where I had a long instructional video file that I wanted to create a bookmark file for based on individual lessons. I used ffmpeg's scene detection filter to find the sections in the file and take their screenshots. Then I used Tesseract (OCR software) on the resulting screenshots to get lesson titles. The entire workflow was nicely glued together and automated with Python.