Last active
December 16, 2015 18:00
-
-
Save kieranjol/1ebffea00cf66fa91add to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import subprocess | |
from glob import glob | |
import os | |
wd = sys.argv[1] | |
os.chdir(wd) | |
# Find all video files to transcode | |
photos = glob('*.jpg') + glob('*.mp4') | |
print photos | |
for filename in photos: | |
exiftxt = filename + '.txt' | |
print filename | |
bla = subprocess.check_output(['exiftool', filename]) | |
with open(exiftxt, "w+") as fo: | |
fo.write(bla) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment