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
Release history Release notifications | RSS feed
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.10.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for get_video_len-0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59b4eb03d6a3d02d2f5f8b734dba454660a4f53c27a0f18e8a7efe191cba595 |
|
MD5 | d541ff45cd8b8772cf155a490fc6cae6 |
|
BLAKE2b-256 | 36919278761269bc6e1233cd93dc9b37cf8c654ae11e1148f54f5365b48af17b |