Read metadata from previously transcoded video (must account for rotation and/or downscaling)

This commit is contained in:
Jerome Charaoui 2013-12-22 21:09:05 -05:00
parent 0d35832b21
commit 2df2730cd3

View File

@ -369,6 +369,7 @@ class Photo(object):
info_string = "%s -> webm" % (os.path.basename(original_path))
message("transcoding", info_string)
if os.path.exists(transcode_path) and file_mtime(transcode_path) >= self._attributes["dateTimeFile"]:
self._video_metadata(transcode_path, False)
return
if "originalSize" in self._attributes and self._attributes["originalSize"][1] > 720:
filters.append("scale=trunc(oh*a/2)*2:min(720\,iw)")