For a bit of context, I have speakers in my house that can't play audio files encoded at over 48khz, so would like to sample down any items I add to my library that are over this threshold, I figured the simplest way to do this would be with the convert plugin and a simple bash script to filter out albums during a bulk import that aren't over 48khz (as I don't want to modify tracks that aren't over 48khz).
I would like to note that this approach does occasionally work flawlessly, it seems to be certain albums or files that cause issues, and i'm yet to find the common factor among all of them
Note: I tried the 'no_convert:' config option for the convert plugin with the query 'samplerate:..48000' but I believe this is only for items already added to the beets database, and it didn't work.
overlaying configuration: config.yaml
no user configuration found at /home/funtimes909/.config/beets/config.yaml
data directory: /home/funtimes909/.config/beets
plugin paths: []
Loading plugins: autobpm, badfiles, convert, duplicates, edit, fetchart, lastgenre, lyrics, missing, musicbrainz, scrub
lastgenre: Loading whitelist /home/funtimes909/.local/lib/python3.14/site-packages/beetsplug/lastgenre/genres.txt
lastgenre: Loading canonicalization tree /home/funtimes909/.local/lib/python3.14/site-packages/beetsplug/lastgenre/genres-tree.yaml
fetchart: google: Disabling art source due to missing key
fetchart: lastfm: Disabling art source due to missing key
Sending event: pluginload
library database: /home/funtimes909/.config/beets/library.db
library directory: /net/server/music
Sending event: library_opened
Sending event: import_begin
Sending event: import_task_created
Sending event: import_task_start
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/01. John Williams - Star Wars (Main Theme).flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/01. John Williams - Star Wars (Main Theme).flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/02. John Williams - Yoda's Theme.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/02. John Williams - Yoda's Theme.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/03. John Williams - The Training of a Jedi Knight.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/03. John Williams - The Training of a Jedi Knight.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/04. John Williams - The Heroics of Luke and Han.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/04. John Williams - The Heroics of Luke and Han.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/05. John Williams - The Imperial March (Darth Vader's Theme).flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/05. John Williams - The Imperial March (Darth Vader's Theme).flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/06. John Williams - Departure of Boba Fett.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/06. John Williams - Departure of Boba Fett.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/07. John Williams - Han Solo and the Princess.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/07. John Williams - Han Solo and the Princess.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/08. John Williams - Hyperspace.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/08. John Williams - Hyperspace.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/09. John Williams - The Battle in the Snow.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/09. John Williams - The Battle in the Snow.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/10. John Williams - The Asteroid Field.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/10. John Williams - The Asteroid Field.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/11. John Williams - The City in the Clouds.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/11. John Williams - The City in the Clouds.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/12. John Williams - Rebels at Bay.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/12. John Williams - Rebels at Bay.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/13. John Williams - Yoda and the Force.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/13. John Williams - Yoda and the Force.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/14. John Williams - The Duel.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/14. John Williams - The Duel.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/15. John Williams - The Magic Tree.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/15. John Williams - The Magic Tree.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/16. John Williams - Lando's Palace.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/16. John Williams - Lando's Palace.flac"
badfiles: checking path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/17. John Williams - Finale.flac
badfiles: running command: flac --test --warnings-as-errors --silent "/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/17. John Williams - Finale.flac"
Looking up: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)
Tagging John Williams - Star Wars: The Empire Strikes Back
No album ID found.
Album ID match recommendation is 0
Search terms: John Williams - Star Wars: The Empire Strikes Back
Album might be VA: False
musicbrainz: Additional search terms: {'country': 'country', 'label': 'label', 'year': 'date', 'barcode': 'barcode', 'media': 'format'}
musicbrainz: Searching for '' with {'release': 'star wars: the empire strikes back', 'artist': 'john williams', 'label': 'walt disney records', 'date': '1980'}
Searching for MusicBrainz releases with: 'release:(star wars\\: the empire strikes back) artist:(john williams) label:(walt disney records) date:(1980)'
musicbrainz: Found 5 result(s)
musicbrainz: Requesting MusicBrainz release 4f70ed28-66d6-4e41-b133-2c8e58e08978
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
musicbrainz: Requesting MusicBrainz release b1d6f169-f8a7-4640-a2b7-a1906091779b
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
musicbrainz: Requesting MusicBrainz release 274f5b2b-ed1b-4311-8034-8a005c58d04d
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
musicbrainz: Requesting MusicBrainz release 573a5177-3d16-4acf-bf8e-ed068973a1db
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
musicbrainz: Requesting MusicBrainz release 678ba550-7081-48d8-b035-49d202868887
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_track_extract
Sending event: mb_album_extract
Sending event: albuminfo_received
Candidate: John Williams - Star Wars: The Empire Strikes Back (4f70ed28-66d6-4e41-b133-2c8e58e08978) from MusicBrainz
Computing track assignment...
...done.
Success. Distance: 0.00
Sending event: album_matched
Sending event: albuminfo_received
Candidate: John Williams - Star Wars: The Empire Strikes Back (b1d6f169-f8a7-4640-a2b7-a1906091779b) from MusicBrainz
Computing track assignment...
...done.
Success. Distance: 0.00
Sending event: album_matched
Sending event: albuminfo_received
Candidate: John Williams; London Symphony Orchestra - Star Wars: The Empire Strikes Back (274f5b2b-ed1b-4311-8034-8a005c58d04d) from MusicBrainz
Computing track assignment...
...done.
Success. Distance: 0.05
Sending event: album_matched
Sending event: albuminfo_received
Candidate: John Williams & London Symphony Orchestra - Star Wars: The Empire Strikes Back (573a5177-3d16-4acf-bf8e-ed068973a1db) from MusicBrainz
Computing track assignment...
...done.
Success. Distance: 0.05
Sending event: album_matched
Sending event: albuminfo_received
Candidate: John Williams & London Symphony Orchestra - Star Wars: The Empire Strikes Back (678ba550-7081-48d8-b035-49d202868887) from MusicBrainz
Computing track assignment...
...done.
Success. Distance: 0.05
Sending event: album_matched
Evaluating 5 candidates.
/home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980) (17 items)
Sending event: import_task_before_choice
Sending event: before_choose_candidate
Match (100.0%):
John Williams - Star Wars: The Empire Strikes Back
MusicBrainz, Digital Media, 2017, XW, Walt Disney Records, None, None
https://musicbrainz.org/release/4f70ed28-66d6-4e41-b133-2c8e58e08978
* Artist: John Williams
* Album: Star Wars: The Empire Strikes Back
Sending event: import_task_choice
found duplicates: [404]
default action for duplicates: a
This album is already in the library!
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/01 Star Wars (Main Theme).flac'
could not get filesize: [Errno 2] No such file or directory: "/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/02 Yoda's Theme.flac"
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/03 The Training of a Jedi Knight.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/04 The Heroics of Luke and Han.flac'
could not get filesize: [Errno 2] No such file or directory: "/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/05 The Imperial March (Darth Vader's Theme).flac"
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/06 Departure of Boba Fett.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/07 Han Solo and the Princess.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/08 Hyperspace.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/09 The Battle in the Snow.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/10 The Asteroid Field.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/11 The City in the Clouds.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/12 Rebels at Bay.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/13 Yoda and the Force.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/14 The Duel.flac'
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/15 The Magic Tree.flac'
could not get filesize: [Errno 2] No such file or directory: "/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/16 Lando's Palace.flac"
could not get filesize: [Errno 2] No such file or directory: '/net/server/music/Atmos/John Williams/Star Wars_ The Empire Strikes Back/17 Finale.flac'
Old: 17 items, FLAC, 681kbps, 44.1kHz/16 bit, 74:38, 0.0 B
New: 17 items, FLAC, 681kbps, 44.1kHz/16 bit, 73:32, 362.8 MiB
➜ [S]kip new, Keep all, Remove old, Merge all? R
Sending event: import_task_apply
Replacing item 5901: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/01. John Williams - Star Wars (Main Theme).flac
Sending event: database_change
Sending event: item_removed
Replacing item 5902: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/02. John Williams - Yoda's Theme.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5903: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/03. John Williams - The Training of a Jedi Knight.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5904: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/04. John Williams - The Heroics of Luke and Han.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5905: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/05. John Williams - The Imperial March (Darth Vader's Theme).flac
Sending event: database_change
Sending event: item_removed
Replacing item 5906: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/06. John Williams - Departure of Boba Fett.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5907: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/07. John Williams - Han Solo and the Princess.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5908: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/08. John Williams - Hyperspace.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5909: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/09. John Williams - The Battle in the Snow.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5910: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/10. John Williams - The Asteroid Field.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5911: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/11. John Williams - The City in the Clouds.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5912: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/12. John Williams - Rebels at Bay.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5913: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/13. John Williams - Yoda and the Force.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5914: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/14. John Williams - The Duel.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5915: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/15. John Williams - The Magic Tree.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5916: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/16. John Williams - Lando's Palace.flac
Sending event: database_change
Sending event: item_removed
Replacing item 5917: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/17. John Williams - Finale.flac
Sending event: database_change
Sending event: database_change
Sending event: album_removed
Sending event: item_removed
17 of 17 items replaced
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Sending event: database_change
Reimported album 406. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)
Reimported album 406. Preserving flexible attributes ['data_source', 'media']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)
Reimported item 5901. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/01. John Williams - Star Wars (Main Theme).flac
Reimported item 5901. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/01. John Williams - Star Wars (Main Theme).flac
Sending event: database_change
Reimported item 5902. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/02. John Williams - Yoda's Theme.flac
Reimported item 5902. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/02. John Williams - Yoda's Theme.flac
Sending event: database_change
Reimported item 5903. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/03. John Williams - The Training of a Jedi Knight.flac
Reimported item 5903. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/03. John Williams - The Training of a Jedi Knight.flac
Sending event: database_change
Reimported item 5904. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/04. John Williams - The Heroics of Luke and Han.flac
Reimported item 5904. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/04. John Williams - The Heroics of Luke and Han.flac
Sending event: database_change
Reimported item 5905. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/05. John Williams - The Imperial March (Darth Vader's Theme).flac
Reimported item 5905. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/05. John Williams - The Imperial March (Darth Vader's Theme).flac
Sending event: database_change
Reimported item 5906. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/06. John Williams - Departure of Boba Fett.flac
Reimported item 5906. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/06. John Williams - Departure of Boba Fett.flac
Sending event: database_change
Reimported item 5907. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/07. John Williams - Han Solo and the Princess.flac
Reimported item 5907. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/07. John Williams - Han Solo and the Princess.flac
Sending event: database_change
Reimported item 5908. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/08. John Williams - Hyperspace.flac
Reimported item 5908. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/08. John Williams - Hyperspace.flac
Sending event: database_change
Reimported item 5909. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/09. John Williams - The Battle in the Snow.flac
Reimported item 5909. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/09. John Williams - The Battle in the Snow.flac
Sending event: database_change
Reimported item 5910. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/10. John Williams - The Asteroid Field.flac
Reimported item 5910. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/10. John Williams - The Asteroid Field.flac
Sending event: database_change
Reimported item 5911. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/11. John Williams - The City in the Clouds.flac
Reimported item 5911. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/11. John Williams - The City in the Clouds.flac
Sending event: database_change
Reimported item 5912. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/12. John Williams - Rebels at Bay.flac
Reimported item 5912. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/12. John Williams - Rebels at Bay.flac
Sending event: database_change
Reimported item 5913. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/13. John Williams - Yoda and the Force.flac
Reimported item 5913. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/13. John Williams - Yoda and the Force.flac
Sending event: database_change
Reimported item 5914. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/14. John Williams - The Duel.flac
Reimported item 5914. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/14. John Williams - The Duel.flac
Sending event: database_change
Reimported item 5915. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/15. John Williams - The Magic Tree.flac
Reimported item 5915. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/15. John Williams - The Magic Tree.flac
Sending event: database_change
Reimported item 5916. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/16. John Williams - Lando's Palace.flac
Reimported item 5916. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/16. John Williams - Lando's Palace.flac
Sending event: database_change
Reimported item 5917. Preserving attribute ['added']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/17. John Williams - Finale.flac
Reimported item 5917. Preserving flexible attributes ['data_source', 'track_alt']. Path: /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/17. John Williams - Finale.flac
Sending event: database_change
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/15. John Williams - The Magic Tree.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/05. John Williams - The Imperial March (Darth Vader's Theme).flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/06. John Williams - Departure of Boba Fett.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/13. John Williams - Yoda and the Force.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/14. John Williams - The Duel.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/07. John Williams - Han Solo and the Princess.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/08. John Williams - Hyperspace.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/09. John Williams - The Battle in the Snow.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/11. John Williams - The City in the Clouds.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/01. John Williams - Star Wars (Main Theme).flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/16. John Williams - Lando's Palace.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/04. John Williams - The Heroics of Luke and Han.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/12. John Williams - Rebels at Bay.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/17. John Williams - Finale.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/02. John Williams - Yoda's Theme.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/03. John Williams - The Training of a Jedi Knight.flac
convert: Encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/10. John Williams - The Asteroid Field.flac
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/08. John Williams - Hyperspace.flac
Sending event: write
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/15. John Williams - The Magic Tree.flac
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/05. John Williams - The Imperial March (Darth Vader's Theme).flac
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/12. John Williams - Rebels at Bay.flac
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/07. John Williams - Han Solo and the Princess.flac
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/11. John Williams - The City in the Clouds.flac
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/09. John Williams - The Battle in the Snow.flac
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/16. John Williams - Lando's Palace.flac
Sending event: write
Sending event: write
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/03. John Williams - The Training of a Jedi Knight.flac
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/17. John Williams - Finale.flac
Sending event: write
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/04. John Williams - The Heroics of Luke and Han.flac
Sending event: write
Sending event: write
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/10. John Williams - The Asteroid Field.flac
Sending event: write
Sending event: write
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/01. John Williams - Star Wars (Main Theme).flac
Sending event: write
Sending event: write
Sending event: write
Sending event: write
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/06. John Williams - Departure of Boba Fett.flac
Sending event: write
Sending event: write
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/14. John Williams - The Duel.flac
Sending event: write
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/02. John Williams - Yoda's Theme.flac
Sending event: write
convert: Finished encoding /home/funtimes909/Music/Albums/John Williams - Star Wars_ The Empire Strikes Back (1980)/13. John Williams - Yoda and the Force.flac
Sending event: write
Traceback (most recent call last):
File "/usr/lib/python3.14/site-packages/mediafile/utils/mutagen_wrapper.py", line 27, in mutagen_call
return func(*args, **kwargs)
File "/usr/lib/python3.14/site-packages/mutagen/_util.py", line 164, in wrapper_func
return func(h, *args, **kwargs)
File "/usr/lib/python3.14/site-packages/mutagen/_file.py", line 302, in File
return Kind(fileobj, filename=filething.filename)
File "/usr/lib/python3.14/site-packages/mutagen/_file.py", line 48, in __init__
self.load(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/site-packages/mutagen/_util.py", line 185, in wrapper
return func(*args, **kwargs)
File "/usr/lib/python3.14/site-packages/mutagen/_util.py", line 156, in wrapper
return func(self, h, *args, **kwargs)
File "/usr/lib/python3.14/site-packages/mutagen/flac.py", line 794, in load
self.__check_header(fileobj, filething.name)
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/site-packages/mutagen/flac.py", line 920, in __check_header
header = fileobj.read(4)
File "/usr/lib/python3.14/site-packages/mutagen/flac.py", line 68, in read
raise error("file said %d bytes, read %d bytes" % (
size, len(data)))
mutagen.flac.error: file said 4 bytes, read 0 bytes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/library/models.py", line 943, in write
mediafile = MediaFile(syspath(path), id3v23=id3v23)
File "/usr/lib/python3.14/site-packages/mediafile/utils/mutagen_wrapper.py", line 56, in wrapper
return mutagen_call("loadfile", "", f, *args, **kwargs)
File "/usr/lib/python3.14/site-packages/mediafile/utils/mutagen_wrapper.py", line 27, in mutagen_call
return func(*args, **kwargs)
File "/usr/lib/python3.14/site-packages/mutagen/_util.py", line 156, in wrapper
return func(self, h, *args, **kwargs)
File "/usr/lib/python3.14/site-packages/mediafile/__init__.py", line 162, in __init__
self.mgfile = mutagen_call("open", self.filename, mutagen.File, filething)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/site-packages/mediafile/utils/mutagen_wrapper.py", line 30, in mutagen_call
raise UnreadableFileError(filename, str(exc))
mediafile.exceptions.UnreadableFileError: /home/funtimes909/Music/Conversions/tmp5d7o6nni.flac: file said 4 bytes, read 0 bytes
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/ui/__init__.py", line 964, in main
_raw_main(args)
~~~~~~~~~^^^^^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/ui/__init__.py", line 944, in _raw_main
subcommand.func(lib, suboptions, subargs)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/ui/commands/import_/__init__.py", line 132, in import_func
import_files(lib, byte_paths, query)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/ui/commands/import_/__init__.py", line 76, in import_files
session.run()
~~~~~~~~~~~^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/importer/session.py", line 235, in run
pl.run_parallel(QUEUE_SIZE)
~~~~~~~~~~~~~~~^^^^^^^^^^^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/util/pipeline.py", line 479, in run_parallel
raise exc_info[1].with_traceback(exc_info[2])
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/util/pipeline.py", line 337, in run
out = self._run_in_context(self.coro.send, msg)
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/util/pipeline.py", line 246, in _run_in_context
return self.ctx.run(func, *args)
~~~~~~~~~~~~^^^^^^^^^^^^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/util/pipeline.py", line 215, in coro
func(*args, task)
~~~~^^^^^^^^^^^^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/importer/stages.py", line 251, in plugin_stage
func(session, task)
~~~~^^^^^^^^^^^^^^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/plugins.py", line 336, in wrapper
return func(*args, **kwargs)
File "/home/funtimes909/.local/lib/python3.14/site-packages/beetsplug/convert.py", line 295, in auto_convert
par_map(
~~~~~~~^
lambda item: self.convert_on_import(session.lib, item),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
task.imported_items(),
^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/util/__init__.py", line 1056, in par_map
pool.map(_worker, items)
~~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/pool.py", line 367, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.14/multiprocessing/pool.py", line 774, in get
raise self._value
File "/usr/lib/python3.14/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
~~~~^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/util/__init__.py", line 1053, in _worker
return ctx.copy().run(transform, item)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beetsplug/convert.py", line 296, in <lambda>
lambda item: self.convert_on_import(session.lib, item),
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beetsplug/convert.py", line 687, in convert_on_import
item.write()
~~~~~~~~~~^^
File "/home/funtimes909/.local/lib/python3.14/site-packages/beets/library/models.py", line 945, in write
raise ReadError(path, exc)
beets.library.exceptions.ReadError: error reading /home/funtimes909/Music/Conversions/tmp5d7o6nni.flac: /home/funtimes909/Music/Conversions/tmp5d7o6nni.flac: file said 4 bytes, read 0 bytes
error reading /home/funtimes909/Music/Conversions/tmp5d7o6nni.flac: /home/funtimes909/Music/Conversions/tmp5d7o6nni.flac: file said 4 bytes, read 0 bytes
Problem
For a bit of context, I have speakers in my house that can't play audio files encoded at over 48khz, so would like to sample down any items I add to my library that are over this threshold, I figured the simplest way to do this would be with the convert plugin and a simple bash script to filter out albums during a bulk import that aren't over 48khz (as I don't want to modify tracks that aren't over 48khz).
I would like to note that this approach does occasionally work flawlessly, it seems to be certain albums or files that cause issues, and i'm yet to find the common factor among all of them
Note: I tried the 'no_convert:' config option for the convert plugin with the query 'samplerate:..48000' but I believe this is only for items already added to the beets database, and it didn't work.
If anyone can think of a better way to achieve this goal please do let me know!
Running this command in verbose (
-vv) mode:$ beet -vv -c config.yaml import -i ~/Music/Albums/Led to this problem:
Setup
My configuration (output of
beet config) is:The bash script I've been using to sample down audio files:
Beets verbose log: