[Python] PyDub: ffmpeg not found

Discussão em 'Python' iniciado por Stack, Maio 26, 2025.

  1. Stack

    Stack Membro Participativo

    I have pip installed python-ffmpeg and am trying to play a wav file with PyDub. I get this warning:

    Warning (from warnings module):
    File "C:\Users\divel\AppData\Local\Programs\Python\Python39\lib\site-packages\pydub\utils.py", line 170
    warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
    RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work


    And then a permission error:

    PermissionError: [Errno 13] Permission denied: 'C:\\Users\\divel\\AppData\\Local\\Temp\\tmp0t700dh0.wav'


    Any suggestions on how to fix it? The code itself is:

    from pydub import AudioSegment
    from pydub.playback import play

    snippet = AudioSegment.from_file('suoni\snippet6.wav', format = 'wav')
    play(snippet)

    Continue reading...

Compartilhe esta Página