reset video fps/codec

This commit is contained in:
j 2017-05-21 11:35:54 +02:00
parent f51036ed00
commit 8bd4cd6305
2 changed files with 2 additions and 1 deletions

View file

@ -65,7 +65,6 @@ def supported_formats():
'h264': 'libx264' in stdout and 'DEA.L. aac' in stdout, 'h264': 'libx264' in stdout and 'DEA.L. aac' in stdout,
} }
def stream(video, target, profile, info, audio_track=0, flags={}): def stream(video, target, profile, info, audio_track=0, flags={}):
if not os.path.exists(target): if not os.path.exists(target):
ox.makedirs(os.path.dirname(target)) ox.makedirs(os.path.dirname(target))

View file

@ -138,6 +138,8 @@ class File(models.Model):
else: else:
self.is_video = False self.is_video = False
self.display_aspect_ratio = "4:3" self.display_aspect_ratio = "4:3"
self.framerate = ''
self.video_codec = ''
self.width = 0 self.width = 0
self.height = 0 self.height = 0
if 'audio' in self.info and self.info['audio'] and self.duration > 0: if 'audio' in self.info and self.info['audio'] and self.duration > 0: