Skip to content

Instantly share code, notes, and snippets.

@kieranjol
Last active December 16, 2015 18:00
Show Gist options
  • Save kieranjol/1ebffea00cf66fa91add to your computer and use it in GitHub Desktop.
Save kieranjol/1ebffea00cf66fa91add to your computer and use it in GitHub Desktop.
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