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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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