O'Reilly logo

Python Multimedia Beginner's Guide by Ninad Sathaye

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - saving video frames as images

This file can be run from the command line as:

python ImagesFromVideo.py [options]

Here the [options] are:

  • --input_file: The full path to input video file from which one or more frames need to be captured and saved as images.
  • --start_time: The position in seconds on the video track. This will be the starting position from which one or more video frames will be captured as still image(s). The first snapshot will always be at start_time.
  • --duration: The duration (in seconds) of the video track starting from the start_time. 'N' number of frames will be captured starting from the start_time.
  • --num_of_captures: Total number of frames that need to be captured from start_time (including it) up to, end_time= ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required