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.11.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for get_video_len-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a19d6aeb561db1b751f5700e87ff0edfad076cdddfb0b7e8cc923c5229093284 |
|
MD5 | d1f3797f91b2c19e47bff69316552226 |
|
BLAKE2b-256 | 9e1fdbdf0d1d2b747295a24e1d8d838fbd87f9e5b215ba5e38ff42ac250839f3 |