Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"FFmpegError: Failed to convert..." Error on downloading with --output flag #2287

Open
Soham52 opened this issue Jan 26, 2025 · 15 comments
Open
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed

Comments

@Soham52
Copy link

Soham52 commented Jan 26, 2025

System OS

Termux (Android)

Python Version

3.12 (CPython)

Install Source

pip / PyPi

Install version / commit hash

4.2.11

Expected Behavior vs Actual Behavior

Expected - Songs from the playlist are downloaded to the specificed location.

Actual - Using the --output flag throws error

Steps to reproduce - Ensure to include actual links!

  1. Download all required dependencies
  2. Install spotdl on termux using pip
  3. Execute this command - spotdl download https://open.spotify.com/playlist/0ckGVCa6itvpuzD2zoJ7fI --output "/storage/emulated/0/music/music2/" --ffmpeg "/data/data/com.termux/files/home/.spotdl/ffmpeg"

Traceback

~ $ spotdl download https://open.spotify.com/playlist/0ckGVCa6itvpuzD2zoJ7fI --output "/storage/emulated/0/music/music2/" --ffmpeg "/data/data/com.termux/files/home/.spotdl/ffmpeg"
Processing query:
https://open.spotify.com/playlist/0ckGVCa6itvpuzD2zoJ7fI
Skipping track: None local tracks and track are not supported
Skipping track: None local tracks and track are not supported
Skipping track: None local tracks and track are not supported
Skipping track: None local tracks and track are not supported
Found 59 songs in Music (Playlist)
FFmpegError: Failed to convert Kubbi - Pathfinder, you can find
error here:
/data/data/com.termux/files/home/.spotdl/errors/ffmpeg_error_2025-
01-26-22-10-44.txt
FFmpegError: Failed to convert Kubbi - Formed By Glaciers, you can
find error here:
/data/data/com.termux/files/home/.spotdl/errors/ffmpeg_error_2025-
01-26-22-11-06.txt

Other details

@Soham52 Soham52 added the Bug Unexpected problem or unintended behavior that needs to be fixed label Jan 26, 2025
@Silverarmor
Copy link
Member

Could you please re-run your command but append --log-level DEBUG and attach debug logs.

@Silverarmor
Copy link
Member

Also where is your ffmpeg installed to? How did you install it? It is an executable binary?

@Soham52
Copy link
Author

Soham52 commented Jan 27, 2025

Also where is your ffmpeg installed to? How did you install it? It is an executable binary?

I installed ffmpeg using the spotdl --download-ffmpeg command. So in the --output flag, i just set the location as /data/data/com.termux/files/home/.spotdl/ffmpeg

@Soham52
Copy link
Author

Soham52 commented Jan 27, 2025

Could you please re-run your command but append --log-level DEBUG and attach debug logs.

I appended the command, but there’s no debug log in the spotdl directory. The only logs I see are FFmpeg error logs. Where can I find the debug logs? Sorry if this is a silly question.

@Silverarmor
Copy link
Member

You shouldn't need to specify an ffmpeg path if installed with spotDL. Also I'm not sure if what you were specifying was the ffmpeg binary (executable) or not.

When you run --log-level DEBUG, the debug logging items are printed to STDOUT (i.e. printed in your command line). You should simply copy and paste the traceback, which should be significantly larger.

The FFmpeg crash log doesn't have any info for some reason.

@Soham52
Copy link
Author

Soham52 commented Jan 27, 2025

You shouldn't need to specify an ffmpeg path if installed with spotDL. Also I'm not sure if what you were specifying was the ffmpeg binary (executable) or not.

When you run --log-level DEBUG, the debug logging items are printed to STDOUT (i.e. printed in your command line). You should simply copy and paste the traceback, which should be significantly larger.

The FFmpeg crash log doesn't have any info for some reason.

~ $ spotdl download https://open.spotify.com/playlist/0ckGVCa6itvpuzD2zoJ7fI --output "/storage/emulated/0/music/music2/" --log-level DEBUG
[18:18:21] DEBUG    MainThread - Downloader      downloader.py:129
                    settings:
                    {'audio_providers':
                    ['youtube-music'],
                    'lyrics_providers':
                    ['genius', 'azlyrics',
                    'musixmatch'],
                    'genius_token':
                    'alXXDbPZtK1m2RrZ8I4k2Hn8Ahs
                    d0Gh_o076HYvcdlBvmc0ULL1H8Z8
                    xRlew5qaG',
                    'playlist_numbering': False,
                    'playlist_retain_track_cover
                    ': False, 'scan_for_songs':
                    False, 'm3u': None,
                    'output':
                    '/storage/emulated/0/music/m
                    usic2/', 'overwrite':
                    'skip', 'search_query':
                    None, 'ffmpeg': 'ffmpeg',
                    'bitrate': None,
                    'ffmpeg_args': None,
                    'format': 'mp3',
                    'save_file': None,
                    'filter_results': True,
                    'album_type': None,
                    'threads': 1, 'cookie_file':
                    None, 'restrict': None,
                    'print_errors': False,
                    'sponsor_block': True,
                    'preload': False, 'archive':
                    None, 'load_config': True,
                    'log_level': 'DEBUG',
                    'simple_tui': False,
                    'fetch_albums': False,
                    'id3_separator': '/',
                    'ytm_data': False,
                    'add_unavailable': False,
                    'generate_lrc': False,
                    'force_update_metadata':
                    False,
                    'only_verified_results':
                    False,
                    'sync_without_deleting':
                    False,
                    'max_filename_length': None,
                    'yt_dlp_args': None,
                    'detect_formats': None,
                    'save_errors': None,
                    'ignore_albums': None,
                    'proxy': None,
                    'skip_explicit': False,
                    'log_format': None,
                    'redownload': False,
                    'skip_album_art': False,
                    'create_skip_file': False,
                    'respect_skip_file': False,
                    'sync_remove_lrc': False}
[18:18:21] DEBUG    MainThread - FFmpeg path:    downloader.py:147
                    ffmpeg
[18:18:21] DEBUG    MainThread - Found 0 known   downloader.py:182
                    songs
[18:18:24] DEBUG    MainThread - Archive: 0 urls downloader.py:237
[18:18:24] DEBUG    MainThread - Downloader      downloader.py:239
                    initialized
[18:18:24] INFO     MainThread - Processing query:   search.py:140
                    https://open.spotify.com/playlis
                    t/0ckGVCa6itvpuzD2zoJ7fI
[18:18:26] WARNING  MainThread - Skipping track:    playlist.py:96
                    None local tracks and track are
                    not supported
[18:18:26] WARNING  MainThread - Skipping track:    playlist.py:96
                    None local tracks and track are
                    not supported
[18:18:26] WARNING  MainThread - Skipping track:    playlist.py:96
                    None local tracks and track are
                    not supported
[18:18:26] WARNING  MainThread - Skipping track:    playlist.py:96
                    None local tracks and track are
                    not supported
[18:18:26] INFO     MainThread - Found 59 songs in   search.py:296
                    Music (Playlist)
[18:18:26] DEBUG    MainThread - Found 59 songs in 1 search.py:353
                    lists
[18:18:26] DEBUG    MainThread - Downloading 59  downloader.py:286
                    songs
[18:18:32] DEBUG    asyncio_0 - Genius failed to downloader.py:417
                    find lyrics for Kubbi -
                    Pathfinder
[18:18:33] DEBUG    asyncio_0 - AzLyrics failed  downloader.py:417
                    to find lyrics for Kubbi -
                    Pathfinder
[18:18:35] DEBUG    asyncio_0 - MusixMatch       downloader.py:417
                    failed to find lyrics for
                    Kubbi - Pathfinder
[18:18:35] DEBUG    asyncio_0 - No lyrics found  downloader.py:585
                    for Kubbi - Pathfinder,
                    lyrics providers: Genius,
                    AzLyrics, MusixMatch
[18:18:35] DEBUG    asyncio_0 -                        base.py:168
                    [3s4QJmPBzx0qLyf6Dl9wcH] Searching
                    for kubbi - pathfinder
[18:18:35] DEBUG    asyncio_0 -                        base.py:185
                    [3s4QJmPBzx0qLyf6Dl9wcH] Found 1
                    results for ISRC uscgh1540995
[18:18:35] DEBUG    asyncio_0 -                        base.py:195
                    [3s4QJmPBzx0qLyf6Dl9wcH] Returning
                    only ISRC result
                    https://music.youtube.com/watch?v=
                    nvGKrBiytm0
[18:18:36] DEBUG    asyncio_0 - Downloading      downloader.py:690
                    Kubbi - Pathfinder using
                    https://music.youtube.com/wa
                    tch?v=nvGKrBiytm0
[18:18:51] ERROR    asyncio_0 - Traceback  progress_handler.py:358
                    (most recent call
                    last):
                      File
                    "/data/data/com.termux
                    /files/usr/lib/python3
                    .12/site-packages/spot
                    dl/download/downloader
                    .py", line 798, in
                    search_and_download
                        raise FFmpegError(
                    spotdl.utils.ffmpeg.FF
                    mpegError: Failed to
                    convert Kubbi -
                    Pathfinder, you can
                    find error here:
                    /data/data/com.termux/
                    files/home/.spotdl/err
                    ors/ffmpeg_error_2025-
                    01-27-18-18-51.txt

                    ╭─ Traceback (most r─╮
                    │ /data/data/com.ter │
                    │ mux/files/usr/lib/ │
                    │ python3.12/site-pa │
                    │ ckages/spotdl/down │
                    │ load/downloader.py │
                    │ :798 in            │
                    │ search_and_downloa │
                    │ d                  │
                    │                    │
                    │   795 │   │   │    │
                    │   796 │   │   │    │
                    │   797 │   │   │    │
                    │ ❱ 798 │   │   │    │
                    │   799 │   │   │    │
                    │   800 │   │   │    │
                    │   801 │   │   │    │
                    ╰────────────────────╯
                    FFmpegError: Failed to
                    convert Kubbi -
                    Pathfinder, you can
                    find error here:
                    /data/data/com.termux/
                    files/home/.spotdl/err
[18:18:56] DEBUG    asyncio_0 - Genius failed to downloader.py:417
                    find lyrics for Kubbi -
                    Formed By Glaciers
[18:18:56] DEBUG    asyncio_0 - AzLyrics failed  downloader.py:417
                    to find lyrics for Kubbi -
                    Formed By Glaciers
[18:18:58] DEBUG    asyncio_0 - MusixMatch       downloader.py:417
                    failed to find lyrics for
                    Kubbi - Formed By Glaciers
[18:18:58] DEBUG    asyncio_0 - No lyrics found  downloader.py:585
                    for Kubbi - Formed By
                    Glaciers, lyrics providers:
                    Genius, AzLyrics, MusixMatch
[18:18:58] DEBUG    asyncio_0 -                        base.py:168
                    [6c5FuVyNJkAobBsZa5L22X] Searching
                    for kubbi - formed by glaciers
[18:18:59] DEBUG    asyncio_0 -                        base.py:185
                    [6c5FuVyNJkAobBsZa5L22X] Found 1
                    results for ISRC uscgh1541003
[18:18:59] DEBUG    asyncio_0 -                        base.py:195
                    [6c5FuVyNJkAobBsZa5L22X] Returning
                    only ISRC result
                    https://music.youtube.com/watch?v=
                    BFqhunUlDzc
[18:19:00] DEBUG    asyncio_0 - Downloading      downloader.py:690
                    Kubbi - Formed By Glaciers
                    using
                    https://music.youtube.com/wa
                    tch?v=BFqhunUlDzc
[18:19:16] ERROR    asyncio_0 - Traceback  progress_handler.py:358
                    (most recent call
                    last):
                      File
                    "/data/data/com.termux
                    /files/usr/lib/python3
                    .12/site-packages/spot
                    dl/download/downloader
                    .py", line 798, in
                    search_and_download
                        raise FFmpegError(
                    spotdl.utils.ffmpeg.FF
                    mpegError: Failed to
                    convert Kubbi - Formed
                    By Glaciers, you can
                    find error here:
                    /data/data/com.termux/
                    files/home/.spotdl/err
                    ors/ffmpeg_error_2025-
                    01-27-18-19-16.txt

                    ╭─ Traceback (most r─╮
                    │ /data/data/com.ter │
                    │ mux/files/usr/lib/ │
                    │ python3.12/site-pa │
                    │ ckages/spotdl/down │
                    │ load/downloader.py │
                    │ :798 in            │
                    │ search_and_downloa │
                    │ d                  │
                    │                    │
                    │   795 │   │   │    │
                    │   796 │   │   │    │
                    │   797 │   │   │    │
                    │ ❱ 798 │   │   │    │
                    │   799 │   │   │    │
                    │   800 │   │   │    │
                    │   801 │   │   │    │
                    ╰────────────────────╯
                    FFmpegError: Failed to
                    convert Kubbi - Formed
                    By Glaciers, you can
                    find error here:
                    /data/data/com.termux/
                    files/home/.spotdl/err
[18:19:20] DEBUG    asyncio_0 - Genius failed to downloader.py:417
                    find lyrics for Kubbi -
                    Cascade
[18:19:21] DEBUG    asyncio_0 - AzLyrics failed  downloader.py:417
                    to find lyrics for Kubbi -
                    Cascade
[18:19:22] DEBUG    asyncio_0 - MusixMatch       downloader.py:417
                    failed to find lyrics for
                    Kubbi - Cascade
[18:19:22] DEBUG    asyncio_0 - No lyrics found  downloader.py:585
                    for Kubbi - Cascade, lyrics
                    providers: Genius, AzLyrics,
                    MusixMatch
[18:19:22] DEBUG    asyncio_0 -                        base.py:168
                    [3RDq3O5pEsYjtwEOpjBuZI] Searching
                    for kubbi - cascade
[18:19:22] DEBUG    asyncio_0 -                        base.py:185
                    [3RDq3O5pEsYjtwEOpjBuZI] Found 1
                    results for ISRC uscgh1540998
[18:19:22] DEBUG    asyncio_0 -                        base.py:195
                    [3RDq3O5pEsYjtwEOpjBuZI] Returning
                    only ISRC result
                    https://music.youtube.com/watch?v=
                    dcrKB2jcVYc
[18:19:23] DEBUG    asyncio_0 - Downloading      downloader.py:690
                    Kubbi - Cascade using
                    https://music.youtube.com/wa
[18:19:37] ERROR    asyncio_0 - Traceback  progress_handler.py:358
                    (most recent call
                    last):
                      File
                    "/data/data/com.termux
                    /files/usr/lib/python3
                    .12/site-packages/spot
                    dl/download/downloader
                    .py", line 798, in
                    search_and_download
                        raise FFmpegError(
                    spotdl.utils.ffmpeg.FF
                    mpegError: Failed to
                    convert Kubbi -
                    Cascade, you can find
                    error here:
                    /data/data/com.termux/
                    files/home/.spotdl/err
                    ors/ffmpeg_error_2025-
                    01-27-18-19-37.txt

                    ╭─ Traceback (most r─╮
                    │ /data/data/com.ter │
                    │ mux/files/usr/lib/ │
                    │ python3.12/site-pa │
                    │ ckages/spotdl/down │
                    │ load/downloader.py │
                    │ :798 in            │
                    │ search_and_downloa │
                    │ d                  │
                    │                    │
                    │   795 │   │   │    │
                    │   796 │   │   │    │
                    │   797 │   │   │    │
                    │ ❱ 798 │   │   │    │
                    │   799 │   │   │    │
                    │   800 │   │   │    │
                    │   801 │   │   │    │
                    ╰────────────────────╯
                    FFmpegError: Failed to
                    convert Kubbi -
                    Cascade, you can find
                    error here:
                    /data/data/com.termux/
                    files/home/.spotdl/err
                    ors/ffmpeg_error_2025-
                    01-27-18-19-37.txt
Total             3/59 complete     ━━━━━━━━━━━━━━━━━   3% 0:21:11
Thomas Bergersen  Processing        ━━━━━━━━━━━━━━━━━   0% -:--:--
- Fi…                                                             ^Z

@Silverarmor
Copy link
Member

[18:18:21] DEBUG MainThread - FFmpeg path: downloader.py:147
ffmpeg

Looks like ffmpeg is on your PATH already. Remove this if you want to use spotDL's.

Or, update this one.

@Soham52
Copy link
Author

Soham52 commented Jan 28, 2025

[18:18:21] DEBUG MainThread - FFmpeg path: downloader.py:147
ffmpeg

Looks like ffmpeg is on your PATH already. Remove this if you want to use spotDL's.

Or, update this one.

I removed it. But the error persists

~ $ spotdl download https://open.spotify.com/playlist/0ckGVCa6itvpuzD2zoJ7fI --output "/storage/emulated/0/music/music2/" --log-level DEBUG
[14:02:28] DEBUG    MainThread -       downloader.py:129
                    Downloader
                    settings:
                    {'audio_providers'
                    :
                    ['youtube-music'],
                    'lyrics_providers'
                    : ['genius',
                    'azlyrics',
                    'musixmatch'],
                    'genius_token':
                    'alXXDbPZtK1m2RrZ8
                    I4k2Hn8Ahsd0Gh_o07
                    6HYvcdlBvmc0ULL1H8
                    Z8xRlew5qaG',
                    'playlist_numberin
                    g': False,
                    'playlist_retain_t
                    rack_cover':
                    False,
                    'scan_for_songs':
                    False, 'm3u':
                    None, 'output':
                    '/storage/emulated
                    /0/music/music2/',
                     'overwrite':
                    'skip',
                    'search_query':
                    None, 'ffmpeg':
                    'ffmpeg',
                    'bitrate': None,
                    'ffmpeg_args':
                    None, 'format':
                    'mp3',
                    'save_file': None,
                    'filter_results':
                    True,
                    'album_type':
                    None, 'threads':
                    1, 'cookie_file':
                    None, 'restrict':
                    None,
                    'print_errors':
                    False,
                    'sponsor_block':
                    True, 'preload':
                    False, 'archive':
                    None,
                    'load_config':
                    True, 'log_level':
                    'DEBUG',
                    'simple_tui':
                    False,
                    'fetch_albums':
                    False,
                    'id3_separator':
                    '/', 'ytm_data':
                    False,
                    'add_unavailable':
                    False,
                    'generate_lrc':
                    False,
                    'force_update_meta
                    data': False,
                    'only_verified_res
                    ults': False,
                    'sync_without_dele
                    ting': False,
                    'max_filename_leng
                    th': None,
                    'yt_dlp_args':
                    None,
                    'detect_formats':
                    None,
                    'save_errors':
                    None,
                    'ignore_albums':
                    None, 'proxy':
                    None,
                    'skip_explicit':
                    False,
                    'log_format':
                    None,
                    'redownload':
                    False,
                    'skip_album_art':
                    False,
                    'create_skip_file'
                    : False,
                    'respect_skip_file
                    ': False,
                    'sync_remove_lrc':
                    False}
[14:02:28] DEBUG    MainThread -       downloader.py:147
                    FFmpeg path:
                    /data/data/com.ter
                    mux/files/home/.sp
                    otdl/ffmpeg
[14:02:28] DEBUG    MainThread - Found downloader.py:182
                    0 known songs
[14:02:31] DEBUG    MainThread -       downloader.py:237
                    Archive: 0 urls
[14:02:31] DEBUG    MainThread -       downloader.py:239
                    Downloader
                    initialized
[14:02:31] INFO     MainThread -           search.py:140
                    Processing query:
                    https://open.spotify.c
                    om/playlist/0ckGVCa6it
                    vpuzD2zoJ7fI
[14:02:32] WARNING  MainThread - Skipping playlist.py:96
                    track: None local
                    tracks and track are
                    not supported
[14:02:32] WARNING  MainThread - Skipping playlist.py:96
                    track: None local
                    tracks and track are
                    not supported
[14:02:32] WARNING  MainThread - Skipping playlist.py:96
                    track: None local
                    tracks and track are
                    not supported
[14:02:32] WARNING  MainThread - Skipping playlist.py:96
                    track: None local
                    tracks and track are
                    not supported
[14:02:32] INFO     MainThread - Found 59  search.py:296
                    songs in Music
                    (Playlist)
[14:02:32] DEBUG    MainThread - Found 59  search.py:353
                    songs in 1 lists
[14:02:32] DEBUG    MainThread -       downloader.py:286
                    Downloading 59
                    songs
[14:02:38] DEBUG    asyncio_0 - Genius downloader.py:417
                    failed to find
                    lyrics for Kubbi -
                    Pathfinder
[14:02:39] DEBUG    asyncio_0 -        downloader.py:417
                    AzLyrics failed to
                    find lyrics for
                    Kubbi - Pathfinder
[14:02:41] DEBUG    asyncio_0 -        downloader.py:417
                    MusixMatch failed
                    to find lyrics for
                    Kubbi - Pathfinder
[14:02:41] DEBUG    asyncio_0 - No     downloader.py:585
                    lyrics found for
                    Kubbi -
                    Pathfinder, lyrics
                    providers: Genius,
                    AzLyrics,
                    MusixMatch
[14:02:41] DEBUG    asyncio_0 -              base.py:168
                    [3s4QJmPBzx0qLyf6Dl9wcH]
                    Searching for kubbi -
                    pathfinder
[14:02:42] DEBUG    asyncio_0 -              base.py:185
                    [3s4QJmPBzx0qLyf6Dl9wcH]
                    Found 1 results for ISRC
                    uscgh1540995
[14:02:42] DEBUG    asyncio_0 -              base.py:195
                    [3s4QJmPBzx0qLyf6Dl9wcH]
                    Returning only ISRC
                    result
                    https://music.youtube.co
                    m/watch?v=nvGKrBiytm0
[14:02:42] DEBUG    asyncio_0 -        downloader.py:690
                    Downloading Kubbi
                    - Pathfinder using
                    https://music.yout
[14:02:58] ERROR    asyncio_0 -  progress_handler.py:358
                    Traceback
                    (most recent
                    call last):
                      File
                    "/data/data/
                    com.termux/f
                    iles/usr/lib
                    /python3.12/
                    site-package
                    s/spotdl/dow
                    nload/downlo
                    ader.py",
                    line 798, in
                    search_and_d
                    ownload
                        raise
                    FFmpegError(
                    spotdl.utils
                    .ffmpeg.FFmp
                    egError:
                    Failed to
                    convert
                    Kubbi -
                    Pathfinder,
                    you can find
                    error here:
                    /data/data/c
                    om.termux/fi
                    les/home/.sp
                    otdl/errors/
                    ffmpeg_error
                    _2025-01-28-
                    14-02-58.txt

                    ╭─ Traceba─╮
                    │ /data/da │
                    │ ta/com.t │
                    │ ermux/fi │
                    │ les/usr/ │
                    │ lib/pyth │
                    │ on3.12/s │
                    │ ite-pack │
                    │ ages/spo │
                    │ tdl/down │
                    │ load/dow │
                    │ nloader. │
                    │ py:798   │
                    │ in       │
                    │ search_a │
                    │ nd_downl │
                    │ oad      │
                    │          │
                    │   795 │  │
                    │   796 │  │
                    │   797 │  │
                    │ ❱ 798 │  │
                    │   799 │  │
                    │   800 │  │
                    │   801 │  │
                    ╰──────────╯
                    FFmpegError:
                    Failed to
                    convert
                    Kubbi -
                    Pathfinder,
                    you can find
                    error here:
                    /data/data/c
                    om.termux/fi
                    les/home/.sp
                    otdl/errors/
                    ffmpeg_error
                    _2025-01-28-
                    14-02-58.txt
[14:03:09] DEBUG    asyncio_0 - Genius downloader.py:417
                    failed to find
                    lyrics for Kubbi -
                    Formed By Glaciers
[14:03:10] DEBUG    asyncio_0 -        downloader.py:417
                    AzLyrics failed to
                    find lyrics for
                    Kubbi - Formed By
                    Glaciers
[14:03:12] DEBUG    asyncio_0 -        downloader.py:417
                    MusixMatch failed
                    to find lyrics for
                    Kubbi - Formed By
                    Glaciers
[14:03:12] DEBUG    asyncio_0 - No     downloader.py:585
                    lyrics found for
                    Kubbi - Formed By
                    Glaciers, lyrics
                    providers: Genius,
                    AzLyrics,
                    MusixMatch
[14:03:12] DEBUG    asyncio_0 -              base.py:168
                    [6c5FuVyNJkAobBsZa5L22X]
                    Searching for kubbi -
                    formed by glaciers
[14:03:12] DEBUG    asyncio_0 -              base.py:185
                    [6c5FuVyNJkAobBsZa5L22X]
                    Found 1 results for ISRC
                    uscgh1541003
[14:03:12] DEBUG    asyncio_0 -              base.py:195
                    [6c5FuVyNJkAobBsZa5L22X]
                    Returning only ISRC
                    result
                    https://music.youtube.co
                    m/watch?v=BFqhunUlDzc
[14:03:13] DEBUG    asyncio_0 -        downloader.py:690
                    Downloading Kubbi
                    - Formed By
                    Glaciers using
                    https://music.yout

@Silverarmor
Copy link
Member

Can you upload
/data/data/com.termux/files/home/.spotdl/errors/ffmpeg_error_2025-01-28-14-02-58.txt

@Soham52
Copy link
Author

Soham52 commented Jan 28, 2025

Can you upload
/data/data/com.termux/files/home/.spotdl/errors/ffmpeg_error_2025-01-28-14-02-58.txt

### return_code:
-31

### arguments:
['-nostdin', '-y', '-i', '/data/data/com.termux/files/home/.spotdl/temp/nvGKrBiytm0.webm', '-movflags', '+faststart', '-v', 'debug', '-progress', '-', '-nostats', '-codec:a', 'libmp3lame', '-b:a', '139k', '/storage/emulated/0/music/music2/Kubbi - Pathfinder.mp3']

### ffmpeg:
/data/data/com.termux/files/home/.spotdl/ffmpeg

### version:
None

### build_year:
None

### error:



@Silverarmor
Copy link
Member

So weird that there is still no error. I can't seem to find error code -31 either..

FFmpeg is only available for the following OS distros. Can you try install your own for your device?

FFMPEG_URLS = {
    "windows": {
        "amd64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/win32-x64",
        "i686": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/win32-ia32",
    },
    "linux": {
        "x86_64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/linux-x64",
        "x86": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/linux-ia32",
        "arm32": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/linux-arm",
        "aarch64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/linux-arm64",
    },
    "darwin": {
        "x86_64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/darwin-x64",
        "arm64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/darwin-arm64",
    },
}

@Silverarmor
Copy link
Member

Does the folder you're trying to download to exist already?

@Soham52
Copy link
Author

Soham52 commented Jan 29, 2025

So weird that there is still no error. I can't seem to find error code -31 either..

FFmpeg is only available for the following OS distros. Can you try install your own for your device?

FFMPEG_URLS = {
    "windows": {
        "amd64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/win32-x64",
        "i686": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/win32-ia32",
    },
    "linux": {
        "x86_64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/linux-x64",
        "x86": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/linux-ia32",
        "arm32": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/linux-arm",
        "aarch64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/linux-arm64",
    },
    "darwin": {
        "x86_64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/darwin-x64",
        "arm64": "https://github.com/eugeneware/ffmpeg-static/releases/download/b4.4/darwin-arm64",
    },
}

I don't know which one to install. I'm on Android.

@Soham52
Copy link
Author

Soham52 commented Jan 29, 2025

Does the folder you're trying to download to exist already?

Yes.

But I've already tried without creating the folder. Then I get a different error.

~ $ spotdl download https://open.spotify.com/playlist/0ckGVCa6itvpuzD2zoJ7fI --output "/storage/emulated/0/music/music2/" --log-level DEBUG
[22:38:05] DEBUG    MainThread - Downloader settings: downloader.py:129
                    {'audio_providers':
                    ['youtube-music'],
                    'lyrics_providers': ['genius',
                    'azlyrics', 'musixmatch'],
                    'genius_token':
                    'alXXDbPZtK1m2RrZ8I4k2Hn8Ahsd0Gh_
                    o076HYvcdlBvmc0ULL1H8Z8xRlew5qaG'
                    , 'playlist_numbering': False,
                    'playlist_retain_track_cover':
                    False, 'scan_for_songs': False,
                    'm3u': None, 'output':
                    '/storage/emulated/0/music/music2
                    /', 'overwrite': 'skip',
                    'search_query': None, 'ffmpeg':
                    'ffmpeg', 'bitrate': None,
                    'ffmpeg_args': None, 'format':
                    'mp3', 'save_file': None,
                    'filter_results': True,
                    'album_type': None, 'threads': 1,
                    'cookie_file': None, 'restrict':
                    None, 'print_errors': False,
                    'sponsor_block': True, 'preload':
                    False, 'archive': None,
                    'load_config': True, 'log_level':
                    'DEBUG', 'simple_tui': False,
                    'fetch_albums': False,
                    'id3_separator': '/', 'ytm_data':
                    False, 'add_unavailable': False,
                    'generate_lrc': False,
                    'force_update_metadata': False,
                    'only_verified_results': False,
                    'sync_without_deleting': False,
                    'max_filename_length': None,
                    'yt_dlp_args': None,
                    'detect_formats': None,
                    'save_errors': None,
                    'ignore_albums': None, 'proxy':
                    None, 'skip_explicit': False,
                    'log_format': None, 'redownload':
                    False, 'skip_album_art': False,
                    'create_skip_file': False,
                    'respect_skip_file': False,
                    'sync_remove_lrc': False}
[22:38:05] DEBUG    MainThread - FFmpeg path:         downloader.py:147
                    /data/data/com.termux/files/home/
                    .spotdl/ffmpeg
[22:38:05] DEBUG    MainThread - Found 0 known songs  downloader.py:182
[22:38:08] DEBUG    MainThread - Archive: 0 urls      downloader.py:237
[22:38:08] DEBUG    MainThread - Downloader           downloader.py:239
                    initialized
[22:38:08] INFO     MainThread - Processing query:        search.py:140
                    https://open.spotify.com/playlist/0ck
                    GVCa6itvpuzD2zoJ7fI
[22:38:10] WARNING  MainThread - Skipping track: None    playlist.py:96
                    local tracks and track are not
                    supported
[22:38:10] WARNING  MainThread - Skipping track: None    playlist.py:96
                    local tracks and track are not
                    supported
[22:38:10] WARNING  MainThread - Skipping track: None    playlist.py:96
                    local tracks and track are not
                    supported
[22:38:10] WARNING  MainThread - Skipping track: None    playlist.py:96
                    local tracks and track are not
                    supported
[22:38:10] INFO     MainThread - Found 59 songs in Music  search.py:296
                    (Playlist)
[22:38:10] DEBUG    MainThread - Found 59 songs in 1      search.py:353
                    lists
[22:38:10] DEBUG    MainThread - Downloading 59 songs downloader.py:286
[22:38:14] DEBUG    asyncio_0 - Genius failed to find downloader.py:417
                    lyrics for Kubbi - Pathfinder
[22:38:15] DEBUG    asyncio_0 - AzLyrics failed to    downloader.py:417
                    find lyrics for Kubbi -
                    Pathfinder
[22:38:16] DEBUG    asyncio_0 - MusixMatch failed to  downloader.py:417
                    find lyrics for Kubbi -
                    Pathfinder
[22:38:16] DEBUG    asyncio_0 - No lyrics found for   downloader.py:585
                    Kubbi - Pathfinder, lyrics
                    providers: Genius, AzLyrics,
[22:38:16] ERROR    asyncio_0 - Traceback (most progress_handler.py:358
                    recent call last):
                      File
                    "/data/data/com.termux/file
                    s/usr/lib/python3.12/site-p
                    ackages/spotdl/download/dow
                    nloader.py", line 665, in
                    search_and_download
                        output_file.parent.mkdi
                    r(parents=True,
                    exist_ok=True)
                      File
                    "/data/data/com.termux/file
                    s/usr/lib/python3.12/pathli
                    b.py", line 1311, in mkdir
                        os.mkdir(self, mode)
                    PermissionError: [Errno 13]
                    Permission denied:
                    '/storage/emulated/0/music/
                    music2'

                    ╭─ Traceback (most recent─╮
                    │ /data/data/com.termux/f │
                    │ iles/usr/lib/python3.12 │
                    │ /site-packages/spotdl/d │
                    │ ownload/downloader.py:6 │
                    │ 65 in                   │
                    │ search_and_download     │
                    │                         │
                    │   662 │   │   │   │   r │
                    │   663 │   │   │         │
                    │   664 │   │   │   # Cre │
                    │ ❱ 665 │   │   │   outpu │
                    │   666 │   │   │   if so │
                    │   667 │   │   │   │   d │
                    │   668 │   │   │   else: │
                    │                         │
                    │ /data/data/com.termux/f │
                    │ iles/usr/lib/python3.12 │
                    │ /pathlib.py:1311 in     │
                    │ mkdir                   │
                    │                         │
                    │   1308 │   │   Create a │
                    │   1309 │   │   """      │
                    │   1310 │   │   try:     │
                    │ ❱ 1311 │   │   │   os.m │
                    │   1312 │   │   except F │
                    │   1313 │   │   │   if n │
                    │   1314 │   │   │   │    │
                    ╰─────────────────────────╯
                    PermissionError: [Errno 13]
                    Permission denied:
                    '/storage/emulated/0/music/
                    music2'
[22:38:21] DEBUG    asyncio_0 - Genius failed to find downloader.py:417
                    lyrics for Kubbi - Formed By
                    Glaciers
[22:38:22] DEBUG    asyncio_0 - AzLyrics failed to    downloader.py:417
                    find lyrics for Kubbi - Formed By
                    Glaciers
[22:38:23] DEBUG    asyncio_0 - MusixMatch failed to  downloader.py:417
                    find lyrics for Kubbi - Formed By
                    Glaciers
[22:38:23] DEBUG    asyncio_0 - No lyrics found for   downloader.py:585
                    Kubbi - Formed By Glaciers,
[22:38:23] ERROR    asyncio_0 - Traceback (most progress_handler.py:358
                    recent call last):
                      File
                    "/data/data/com.termux/file
                    s/usr/lib/python3.12/site-p
                    ackages/spotdl/download/dow
                    nloader.py", line 665, in
                    search_and_download
                        output_file.parent.mkdi
                    r(parents=True,
                    exist_ok=True)
                      File
                    "/data/data/com.termux/file
                    s/usr/lib/python3.12/pathli
                    b.py", line 1311, in mkdir
                        os.mkdir(self, mode)
                    PermissionError: [Errno 13]
                    Permission denied:
                    '/storage/emulated/0/music/
                    music2'

                    ╭─ Traceback (most recent─╮
                    │ /data/data/com.termux/f │
                    │ iles/usr/lib/python3.12 │
                    │ /site-packages/spotdl/d │
                    │ ownload/downloader.py:6 │
                    │ 65 in                   │
                    │ search_and_download     │
                    │                         │
                    │   662 │   │   │   │   r │
                    │   663 │   │   │         │
                    │   664 │   │   │   # Cre │
                    │ ❱ 665 │   │   │   outpu │
                    │   666 │   │   │   if so │
                    │   667 │   │   │   │   d │
                    │   668 │   │   │   else: │
                    │                         │
                    │ /data/data/com.termux/f │
                    │ iles/usr/lib/python3.12 │
                    │ /pathlib.py:1311 in     │
                    │ mkdir                   │
                    │                         │
                    │   1308 │   │   Create a │
                    │   1309 │   │   """      │
                    │   1310 │   │   try:     │
                    │ ❱ 1311 │   │   │   os.m │
                    │   1312 │   │   except F │
                    │   1313 │   │   │   if n │
                    │   1314 │   │   │   │    │
                    ╰─────────────────────────╯
                    PermissionError: [Errno 13]
                    Permission denied:
                    '/storage/emulated/0/music/
                    music2'

@Soham52
Copy link
Author

Soham52 commented Jan 29, 2025

I've already mentioned this before, but I don't have any problems whatsoever when not using the --output flag. The errors start showing as soon as I use the --output flag to specify a path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Unexpected problem or unintended behavior that needs to be fixed
Projects
None yet
Development

No branches or pull requests

2 participants