spotify-downloader: FFmpegError: Failed to convert
System OS
Linux
Python Version
3.11 (CPython)
Install Source
GitHub
Install version / commit hash
4f5d9b6e1f14a211cafaa936c66ad9b5d6a85e18
Expected Behavior vs Actual Behavior
Expected: the song to download Actual: error failed
Steps to reproduce - Ensure to include actual links!
- Run the executable from shell
- Try to download a song
- Song starts to download then errors out
Traceback
FFmpegError: Failed to convert Coldplay - Clocks, you can find error here: /home/jet/.spotdl/errors/ffmpeg_error_2023-10-23-19-04-45.txt
Other details
I tried installing libopenmpt (already installed) and libsrt, along with some AUR variants, but none resolved the issue. Below is the ffmpeg txt file:
return_code:
1
arguments:
[‘-nostdin’, ‘-y’, ‘-i’, ‘/home/jet/.spotdl/temp/8Xv_Hg8o1fw.webm’, ‘-movflags’, ‘+faststart’, ‘-v’, ‘debug’, ‘-progress’, ‘-’, ‘-nostats’, ‘-codec:a’, ‘libmp3lame’, ‘-b:a’, ‘139k’, ‘/home/jet/dl/Coldplay - Clocks.mp3’]
ffmpeg:
ffmpeg
version:
None
build_year:
None
error:
ffmpeg: /tmp/_MEIvFmQRO/libstdc++.so.6: version GLIBCXX_3.4.32' not found (required by /usr/lib/libopenmpt.so.0) ffmpeg: /tmp/_MEIvFmQRO/libstdc++.so.6: version GLIBCXX_3.4.32’ not found (required by /usr/lib/libsrt.so.1.5)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (3 by maintainers)
I had the same error with a different fix here is my error;
*As you can see ffmpeg is installed, and up to date, and in the Environment path:
C:\Users\name>ffmpeg -version ffmpeg version 2025-03-24-git-cbbc927a67-essentials_build-www.gyan.dev Copyright © 2000-2025 the FFmpeg developers built with gcc 14.2.0 (Rev1, Built by MSYS2 project) configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-dxva2 --enable-d3d11va --enable-d3d12va --enable-ffnvcodec --enable-libvpl --enable-nvdec --enable-nvenc --enable-vaapi --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband libavutil 59. 60.100 / 59. 60.100 libavcodec 61. 33.102 / 61. 33.102 libavformat 61. 9.107 / 61. 9.107 libavdevice 61. 4.100 / 61. 4.100 libavfilter 10. 9.100 / 10. 9.100 libswscale 8. 13.103 / 8. 13.103 libswresample 5. 4.100 / 5. 4.100 libpostproc 58. 4.100 / 58. 4.100
*I uninstalled/reinstalled just in case:
C:\Users\name>spotdl --download-ffmpeg FFmpeg is already installed. Do you want to overwrite it? (y/N): y FFmpeg successfully downloaded to C:\Users\name.spotdl\ffmpeg.exe
*I tried specifying the ffmpeg path:
spotdl download https://open.spotify.com/album/2NqI5Hd3wWXNWUrZNuZvO9?si=eX0c3XjPT46c41g5d5vHww --ffmpeg C:\Users\name.spotdl\ffmpeg.exe Processing query: https://open.spotify.com/album/2NqI5Hd3wWXNWUrZNuZvO9?si=eX0c3XjPT46c41g5d5vHww Found 28 songs in Beautifully Broken (Pickin’ Up The Pieces) (Album) FFmpegError: Failed to convert Jelly Roll - Winning Streak, you can find error here: C:\Users\name.spotdl\errors\ffmpeg_error_2025-03-25-21-27-47.txt
-HERES WHAT FIXED IT FOR ME-
open C:\Users\name.spotdl\config.json
find line 28 - “bitrate”: null, change it to- “bitrate”: “192k”,
THANK YOU! this also fixed it for me on linux
That fixed the issue for me (macOS 15.4), I set it to “320k”, thanks!
Thks, works !
Fixed mine cheers
macOS 15.3.1
i had the same error issue. i finally found how to change the bitrate and spotdl finally works for me . thanks for the help in yalls messages