forked from 0x2620/pandora
use Firefogg ffmpeg for direct uploads, to work around issues with 5.1 audio
This commit is contained in:
parent
7329d13324
commit
1ac76c99df
2 changed files with 8 additions and 3 deletions
|
|
@ -578,7 +578,10 @@ class Stream(models.Model):
|
|||
self.media.name = self.path(self.name())
|
||||
target = self.media.path
|
||||
info = ox.avinfo(media)
|
||||
if extract.stream(media, target, self.name(), info):
|
||||
ffmpeg = ox.file.cmd('ffmpeg')
|
||||
if ffmpeg == 'ffmpeg':
|
||||
ffmpeg = None
|
||||
if extract.stream(media, target, self.name(), info, ffmpeg):
|
||||
self.available = True
|
||||
else:
|
||||
self.media = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue