Figure out video duration in Python

1101325 pts.
Tags:
Python
Video streaming
I'm in Python and I have to figure out the duration for my videos. The videos are in MP4 and Flash. What can I do here?

Answer Wiki

Thanks. We'll let you know when a new response is added.
http://www.scikit-video.org/stable/io.html#reading-video-metadata
you can find {video_object).duration

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • ToddN2000
    The length of the video is in the properties information of the file. You would just loop and read the directory to get the amounts and total them if necessary. What code have you written so far to extract this information? What errors are you getting?
    115,270 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: