Merge lp:~manishsinha/dmedia/fix-bug-680886 into lp:dmedia
Status: | Rejected |
---|---|
Rejected by: | Jason Gerard DeRose |
Proposed branch: | lp:~manishsinha/dmedia/fix-bug-680886 |
Merge into: | lp:dmedia |
Diff against target: |
62 lines (+25/-20) 1 file modified
dmedia/extractor.py (+25/-20) |
To merge this branch: | bzr merge lp:~manishsinha/dmedia/fix-bug-680886 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jason Gerard DeRose | Needs Fixing | ||
Review via email: mp+58173@code.launchpad.net |
Commit message
Used pyexiv2 to extract the exif metadata.
It earlier used exiftool. This solution eliminates the useless complex rain dance like solution.
Description of the change
* Removed the rain-dance solution for extracting EXIF metadata.
* Uses pyexiv2 instead of opening a process and pumping output round the globe :)
* Please make sure that the packaging is updated accordingly.
* Right now there are only a few keys for exif present now extractor.py
Run it on many files and try to get more data and update the constant field EXIF_ALLOW_REMAP
Unmerged revisions
- 190. By Manish Sinha (मनीष सिन्हा)
-
Updated dmedia EXIF extraction to use latest version available in natty.
Pre-requisite: pytho-pyexiv2 0.3.0
HINT: This pyexiv2 is a lot lot better than the one present in maverick.
This one has a better documentation and cleaner API. - 189. By Manish Sinha (मनीष सिन्हा)
-
Fixed the mistakes in the comment
- 188. By Manish Sinha (मनीष सिन्हा)
-
Used pyexiv2 to extract the exif metadata.
It earlier used exiftool. This solution eliminates the useless complex rain dance like solution.
Thanks, Manish! Looks like this is well on it's way to getting rid of my check_call() nastiness.
For me the unit tests aren't working, so this needs fixing. You can run just the unit tests for the extractor like this:
./setup.py test --names=extractor
I'm getting 4 failures:
http:// paste.ubuntu. com/595774/
These tests use the `MVI_5751.MOV` and `MVI_5751.THM` files in `dmedia/tests/data` (test video from a 5D Mark II).
What version of of python-exiv2 are you using? The version in Natty (python-exiv2 0.3.0-3ubuntu1) seems to have some API differences from what you're using. For example, there is no pyexiv2.Image:
jderose@ jgd-ws: ~/bzr/dmedia/ fix-bug-680886$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyexiv2
>>> pyexiv2.Image
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Image