jtara1 / get_media_files Goto Github PK
View Code? Open in Web Editor NEWWrapper for PyMediaInfo to get information of local media files
License: Apache License 2.0
Wrapper for PyMediaInfo to get information of local media files
License: Apache License 2.0
Hi,
There is problem due reading README.rst during installation:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-v975wf9k/get-media-files/setup.py", line 91, in <module>
readme = f.read()
File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 312: ordinal not in range(128)
There is some solution pytorch/text#77 (comment), but I don't like it.
Can we deal with it somehow else? Maybe try to fix reading README.rst or something else.
Thanks in advance!
Right now I'm using this JSON compatible structure that'll look something like this:
expected_data = [
[abspath('tests/media/about.txt'),
{'General': {'duration': None, 'format': None, 'size': (None, None)}},
1513722595.3195267],
[abspath('tests/media/044838940-mountain-range-and-lake-2006-a.jpg'),
{'General': {'duration': None, 'format': 'JPEG',
'size': (None, None)},
'Image': {'duration': None, 'format': 'JPEG', 'size': (800, 536)}},
1513722595.3235266],
[abspath('tests/media/044837513-two-women-walking-hill-1930s-v.jpg'),
{'General': {'duration': None, 'format': 'JPEG',
'size': (None, None)},
'Image': {'duration': None, 'format': 'JPEG', 'size': (1024, 772)}},
1513722595.3275266],
[abspath('tests/media/045844231-my-mother.wav'),
{'Audio': {'duration': 12863, 'format': 'PCM', 'size': (None, None)},
'General': {'duration': 12863, 'format': 'Wave',
'size': (None, None)}},
1513722595.3315265]
]
but I'd like to organize info of each file to be described in a class that has attributes like audio
and inherits from the ABC MutableMapping so I can do media.get_info()['audio']
or media.get_info().audio
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.