From 2df2730cd32626da5c27903a5f384c4c5e1eb009 Mon Sep 17 00:00:00 2001 From: Jerome Charaoui Date: Sun, 22 Dec 2013 21:09:05 -0500 Subject: [PATCH] Read metadata from previously transcoded video (must account for rotation and/or downscaling) --- scanner/PhotoAlbum.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scanner/PhotoAlbum.py b/scanner/PhotoAlbum.py index 972db9b..d82d025 100644 --- a/scanner/PhotoAlbum.py +++ b/scanner/PhotoAlbum.py @@ -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)")