pydub.exceptions.CouldntEncodeError: Encoding failed
penguinzo opened this issue · 0 comments
penguinzo commented
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