Skip to main content

Utility to extract frames out of a video

Project description

Videosplit is a utility to extract frames from a given video.
It can extract:
- n number of frames (equally spaced throughout the video)
- relevant* frames
- frames separated by t seconds

Example usage:


```
from videosplit import VideoSplit
videosplit = VideoSplit()
frames = videosplit.get_relevant('input.mp4') # frames = [input01.jpg, input02.jpg, ...]
frames = videsplit.get_n_frames('input.mp4', 10) # frames = [input01.jpg,..., input10.jpg]
frames = videosplit.get_interval('input.mp4', 10) # one frame every 10 seconds
```
Note:
The filenames of the jpg files are based on the name of the video file. Therefore, if you call more than one call on the same file, the jpg files may be overwritten. To solve this, specify an output name:
```

frames = videosplit.get_relevant("input.mp4", "tmp") # frames = [tmp01.jpg,...]
```
*Currently, relevant frames are ex``tracted by finding the I-frames of the video (https://www.webopedia.com/TERM/I/I_frame.html). Frames could be extracted based on "scene-changes" but testing showed that it did not return relevant results (one frame out of a 9 minute video for example).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

videosplit-0.4.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

videosplit-0.4.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file videosplit-0.4.1.tar.gz.

File metadata

  • Download URL: videosplit-0.4.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for videosplit-0.4.1.tar.gz
Algorithm Hash digest
SHA256 27eba0a80c54fdba6facd355f5e55c2fc42155c8b8dd8c714c89d13bb4cf1ca1
MD5 eb6ee9f8dbcc9f7e870e00f110b93256
BLAKE2b-256 113569074c729a0ec1276fd00e6e15d1ffa6515b33708d5a96a84f0d54c78012

See more details on using hashes here.

File details

Details for the file videosplit-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: videosplit-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1

File hashes

Hashes for videosplit-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0ccad08530adb03eaa5a301348cce102f75e9c679b81a631e32bbf0c039e1d57
MD5 de1930cf415c0a11177c6cee7ded6c2f
BLAKE2b-256 d1efc1e3f37b480d801d385b5958b4eb1332ee8c654914686b4ea7c083fa7a39

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page