Get dimensions of a video file

0 votes
I want to get the dimensions of a video file or some other library that would accomplish the equivalent of a Media Info. Is there any way to do this?
Apr 24, 2019 in Python by ana1504.k
• 7,890 points
44 views

1 answer to this question.

0 votes
You can try using mediainfo from python. It has a command line option and it is very easy to parse the output, so practically your python module which uses media-info will be sufficient. It has a further advantage because eventually, you will find all media-info type software doesn't support all codecs/format so you can use multiple software/libs under the hood with single python wrapper.
answered Apr 24, 2019 by SDeb
• 13,230 points

Related Questions In Python

0 votes
0 answers
0 votes
1 answer

List of lines from a file

with open(fname) as f: ...READ MORE

answered Apr 30, 2018 in Python by Nietzsche's daemon
• 4,260 points
45 views
0 votes
1 answer

How can I get a list of locally installed Python modules?

Solution My 50 cents for getting a pip freeze-like ...READ MORE

answered May 23, 2018 in Python by charlie_brown
• 7,760 points
253 views
0 votes
1 answer

How to get the size of a string in Python?

If you are talking about the length ...READ MORE

answered Jun 4, 2018 in Python by aryya
• 7,350 points
167 views
0 votes
1 answer
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 777 views
0 votes
0 answers
0 votes
1 answer

Is it enough to only create checksum of a zip package instead of each file?

I assume you are asking about the ...READ MORE

answered May 8, 2019 in Python by SDeb
• 13,230 points
57 views
0 votes
1 answer

Return a list inside a for loop while iterating over the elements of another list

The print() is getting called multiple times ...READ MORE

answered Sep 21, 2018 in Python by SDeb
• 13,230 points
106 views