open file correctly
This commit is contained in:
parent
636fd12b5f
commit
1fcffb7b00
@ -15,7 +15,7 @@ class Transcoder(StreamSource):
|
||||
if os.path.exists(fifoFile):
|
||||
os.remove(fifoFile)
|
||||
os.mkfifo(fifoFile)
|
||||
self.file = open(fifoFile, 'w+b')
|
||||
self.file = open(fifoFile, 'wb')
|
||||
self.process = ( ffmpeg
|
||||
.input(fifoFile)
|
||||
.output('pipe:', format='mp3')
|
||||
|
Loading…
x
Reference in New Issue
Block a user