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
• 6,110 points
12 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 9,660 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
15 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
57 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
48 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
25 views
0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 1,400 points
25 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
• 9,660 points
6 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
• 9,660 points
22 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.