Hello, i try to write in an mp3 an audio stream with this command:
self.p1 = Popen(['ffmpeg','-y','-loglevel','quiet','-i',self.current_item["stream_url"],'outputfile.mp3'])
When i run:
self.p1.terminate()
then i run
os.remove("outputfile.mp3")
but this error happens:
[WinError 32] The process cannot access the file because it is being used by ano
ther process: 'outputfile.mp3'
Any help?