V
V
Vitaly2015-11-11 10:17:45
Programming
Vitaly, 2015-11-11 10:17:45

Python how to display video duration?

Hello!
Task: There are files (.mp4) in the folder, you need to find out the duration of each and put it in a file (.txt)
Question: Which library is suitable for this? What do you advise? Maybe there are ready-made programs?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Michael, 2015-11-12
@zet694

if you do not want to pull the console, there is a wrapper for python https://pypi.python.org/pypi/av/0.1.0

G
GavriKos, 2015-11-11
@GavriKos

You can use console FFMPEG: superuser.com/questions/650291/how-to-get-video-du...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question