Author Topic: Issue using ffmpeg in Python.  (Read 849 times)

PSXGamerPro1

  • Posts: 258
Issue using ffmpeg in Python.
« on: 22 Nov '15 - 23:20 »
So I am trying to use ffmpeg with this code.

Code: [Select]
    elif(message.content.startswith('::playfile')):
        file = message.content[len("::playfile "):].strip()
        file = './music/' + file
        cmd = './ffmpeg -i ' + file + ' -f s16le -ar 44100 -acodec libvorbis -ac 2 pipe:1'
        cmdargs = cmd.split()
        subprocess.Popen(cmdargs, stdout=subprocess.PIPE)

But it does not output anything to the voice Channels that I have it connect to.