forked from 0x2620/pandora
reset video fps/codec
This commit is contained in:
parent
f51036ed00
commit
8bd4cd6305
2 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue