Skip to main content

Gets the duration, frame rate and total frames from a video file

Project description

Gets the duration, frame rate and total frames from a video file

$pip install get-video-len

from pprint import pprint
from get_video_len import get_video_len_and_frames
videoinfos = get_video_len_and_frames(videofile=r"F:\convertedvideossocialnet\newvidxx2.mp4")
pprint(videoinfos)
 {'duration': 139.83983983983984,
  'file_path': 'F:\\convertedvideossocialnet\\newvidxx2.mp4',
  'frame_rate': 29.97,
  'total_frames': 4191.0}

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

get_video_len-0.11.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

get_video_len-0.11-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file get_video_len-0.11.tar.gz.

File metadata

  • Download URL: get_video_len-0.11.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for get_video_len-0.11.tar.gz
Algorithm Hash digest
SHA256 b8e2b5f91daf6258f3ceebbe675e115568e272c047eb84f326dfd9cf0b638981
MD5 5f9c0d9b410845adb2be4dc31d0e0183
BLAKE2b-256 4bc727491ead0f09bd57e1db0f310927f94673637309270ae4ef0df56a92090a

See more details on using hashes here.

File details

Details for the file get_video_len-0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for get_video_len-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 a19d6aeb561db1b751f5700e87ff0edfad076cdddfb0b7e8cc923c5229093284
MD5 d1f3797f91b2c19e47bff69316552226
BLAKE2b-256 9e1fdbdf0d1d2b747295a24e1d8d838fbd87f9e5b215ba5e38ff42ac250839f3

See more details on using hashes here.

Supported by

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