dont use local ffmpeg if format is not webm

This commit is contained in:
j 2014-10-06 10:14:39 +00:00
parent e4c6a671a6
commit ce8803d100

View file

@ -677,7 +677,7 @@ class Stream(models.Model):
def encode(self):
media = self.source.media.path if self.source else self.file.data.path
ffmpeg = ox.file.cmd('ffmpeg')
if self.source or ffmpeg == 'ffmpeg':
if self.source or ffmpeg == 'ffmpeg' or self.format != 'webm':
ffmpeg = None
if not self.media: