jiaaro / pydub

Manipulate audio with a simple and easy high level interface
http://pydub.com
MIT License
8.96k stars 1.05k forks source link

pydub.exceptions.CouldntEncodeError: Encoding failed #763

Open penguinzo opened 11 months ago

penguinzo commented 11 months ago

keep getting this error

File "/usr/lib/python3.9/site-packages/zspotify/_main_.py", line 697, in main
    zs.start()
  File "/usr/lib/python3.9/site-packages/zspotify/_main_.py", line 672, in start
    self.download_by_url(query)
  File "/usr/lib/python3.9/site-packages/zspotify/_main_.py", line 504, in download_by_url
    ret = self.download_track(parsed_url["track"])
  File "/usr/lib/python3.9/site-packages/zspotify/_main_.py", line 332, in download_track
    output_path = self.respot.download(
  File "/usr/lib/python3.9/site-packages/zspotify/respot.py", line 66, in download
    handler.convert_audio_format(audio_bytes, output_path)
  File "/usr/lib/python3.9/site-packages/zspotify/respot.py", line 648, in convert_audio_format
    AudioSegment.from_file(audio_bytes).export(
  File "/usr/lib/python3.9/site-packages/pydub/audio_segment.py", line 970, in export
    raise CouldntEncodeError(
pydub.exceptions.CouldntEncodeError: Encoding failed. ffmpeg/avlib returned error code: -4