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 in Python by ana1504.k
• 7,350 points
16 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 by SDeb
• 12,120 points

Related Questions In Python

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
19 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,710 points
72 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 ariaholic
• 7,320 points
56 views
0 votes
0 answers

Storing a list of arrays into a CSV file and retrieving it back in a different program

This is the code that I am ...READ MORE

Jun 6, 2018 in Python by ariaholic
• 7,320 points
31 views
+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 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 122 views
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 in Python by SDeb
• 12,120 points
11 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
• 12,120 points
41 views