From 8bd4cd63051d93cedaa1814710238dd367bf3b3e Mon Sep 17 00:00:00 2001 From: j Date: Sun, 21 May 2017 11:35:54 +0200 Subject: [PATCH] reset video fps/codec --- pandora/archive/extract.py | 1 - pandora/archive/models.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index 73a420ad..02c55367 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -65,7 +65,6 @@ def supported_formats(): 'h264': 'libx264' in stdout and 'DEA.L. aac' in stdout, } - def stream(video, target, profile, info, audio_track=0, flags={}): if not os.path.exists(target): ox.makedirs(os.path.dirname(target)) diff --git a/pandora/archive/models.py b/pandora/archive/models.py index 00d705e5..9b7c5e6e 100644 --- a/pandora/archive/models.py +++ b/pandora/archive/models.py @@ -138,6 +138,8 @@ class File(models.Model): else: self.is_video = False self.display_aspect_ratio = "4:3" + self.framerate = '' + self.video_codec = '' self.width = 0 self.height = 0 if 'audio' in self.info and self.info['audio'] and self.duration > 0: