BeetsPluginXtractor
BeetsPluginXtractor copied to clipboard
AudioLoader: invalid frame, skipping it: Invalid data found when processing input
Command
$ beet -v xt
Led to this problem:
xtractor: Executing: "/home/beets/deps/extractors/streaming_extractor_music" "/home/torrents/torrents/Musiques/Interpreten/1200 Micrograms/(2001) 1200 Micrograms [Album]/01 - Ayahuasca.mp3" "/home/beets/extractor/510138b6-43fd-498f-bc17-db302e69e5c5.json" "/home/beets/extractor/profile.yml"
xtractor: The process exited with code: -11
xtractor: Process stdout: [ WARNING ] AudioLoader: invalid frame, skipping it: Invalid data found when processing input
[ WARNING ] AudioLoader: Error reading frame: Input/output error
[ WARNING ] AudioLoader: invalid frame, skipping it: Invalid data found when processing input
[ WARNING ] AudioLoader: Error reading frame: Input/output error
xtractor: Process stderr: Process step: Read metadata
Process step: Compute md5 audio hash and codec
Process step: Replay gain
Process step: Compute audio features
and any file inside the output folder except this :
chromaprint:
compute: 0
highlevel:
compute: 1
svm_models:
- /home/beets/deps/svm/danceability.history
- /home/beets/deps/svm/gender.history
- /home/beets/deps/svm/genre_rosamerica.history
- /home/beets/deps/svm/mood_acoustic.history
- /home/beets/deps/svm/mood_aggressive.history
- /home/beets/deps/svm/mood_electronic.history
- /home/beets/deps/svm/mood_happy.history
- /home/beets/deps/svm/mood_sad.history
- /home/beets/deps/svm/mood_party.history
- /home/beets/deps/svm/mood_relaxed.history
- /home/beets/deps/svm/voice_instrumental.history
- /home/beets/deps/svm/moods_mirex.history
lowlevel:
frameSize: 2048
hopSize: 1024
outputFormat: json
outputFrames: 0
so after this i have in the log :
xtractor: File not found: Output file(/home/beets/extractor/f28cf2a7-f382-4dd0-b61c-fec3ec6c6b19.json) not found!
xtractor: Process stderr: Process step: Read metadata
Process step: Compute md5 audio hash and codec
Process step: Replay gain
Setup
- OS: debian12
- Python version: Python 3.11.2
- Beets version: 2.2.0
- Turning off other plugins made problem go away (yes/no): no
My plugin version (output of beet xtractor -v) is:
xtractor: Xtractor(beets-xtractor) plugin for Beets: v0.4.2
The version of the extractor (imported as pre-compiled bin) :
./streaming_extractor_music help
built with Essentia version v2.1_beta2
My configuration (output of beet config) is:
plugins:
- xtractor
- discogs
- fetchart
- lyrics
- lastgenre
- edit
- inline
- embedart
- extrafiles
- duplicates
- permissions
- missing
- importfeeds
- fuzzy
- albumtypes
- aura
- autobpm
- badfiles
- fromfilename
- ftintitle
- keyfinder
- replaygain
- scrub
- thumbnails
- unimported
- web
web:
host: 0.0.0.0
port: 4578
reverse_proxy: no
readonly: yes
cors: ''
cors_supports_credentials: no
include_paths: no
thumbnails:
auto: yes
force: no
dolphin: no
scrub:
auto: yes
replaygain:
auto: yes
threads: 4
backend: ffmpeg
peak: 'true'
overwrite: no
parallel_on_import: no
per_disc: no
targetlevel: 89
r128: [Opus]
r128_targetlevel: 84
keyfinder:
auto: yes
bin: /usr/local/bin/keyfinder-cli
overwrite: no
ftintitle:
auto: yes
drop: no
format: feat. {0}
keep_in_artist: no
acoustid:
apikey: iWBO1keSRA
xtractor:
auto: yes
dry-run: no
write: yes
threads: 4
force: yes
quiet: no
keep_output: yes
keep_profiles: no
output_path: /home/beets/extractor
essentia_extractor: /home/beets/deps/extractors/streaming_extractor_music
extractor_profile:
highlevel:
svm_models:
- /home/beets/deps/svm/danceability.history
- /home/beets/deps/svm/gender.history
- /home/beets/deps/svm/genre_rosamerica.history
- /home/beets/deps/svm/mood_acoustic.history
- /home/beets/deps/svm/mood_aggressive.history
- /home/beets/deps/svm/mood_electronic.history
- /home/beets/deps/svm/mood_happy.history
- /home/beets/deps/svm/mood_sad.history
- /home/beets/deps/svm/mood_party.history
- /home/beets/deps/svm/mood_relaxed.history
- /home/beets/deps/svm/voice_instrumental.history
- /home/beets/deps/svm/moods_mirex.history
compute: 1
outputFormat: json
outputFrames: 0
lowlevel:
frameSize: 2048
hopSize: 1024
chromaprint:
compute: 0
low_level_targets:
bpm:
path: rhythm.bpm
type: integer
required: yes
danceability:
path: rhythm.danceability
type: float
beats_count:
path: rhythm.beats_count
type: integer
average_loudness:
path: lowlevel.average_loudness
type: float
required: yes
high_level_targets:
danceable:
path: highlevel.danceability.all.danceable
type: float
required: yes
gender:
path: highlevel.gender.value
type: string
required: yes
is_male:
path: highlevel.gender.all.male
type: float
is_female:
path: highlevel.gender.all.female
type: float
genre_rosamerica:
path: highlevel.genre_rosamerica.value
type: string
required: yes
voice_instrumental:
path: highlevel.voice_instrumental.value
type: string
required: yes
is_voice:
path: highlevel.voice_instrumental.all.voice
type: float
is_instrumental:
path: highlevel.voice_instrumental.all.instrumental
type: float
mood_acoustic:
path: highlevel.mood_acoustic.all.acoustic
type: float
required: yes
mood_aggressive:
path: highlevel.mood_aggressive.all.aggressive
type: float
required: yes
mood_electronic:
path: highlevel.mood_electronic.all.electronic
type: float
required: yes
mood_happy:
path: highlevel.mood_happy.all.happy
type: float
required: yes
mood_sad:
path: highlevel.mood_sad.all.sad
type: float
required: yes
mood_party:
path: highlevel.mood_party.all.party
type: float
required: yes
mood_relaxed:
path: highlevel.mood_relaxed.all.relaxed
type: float
required: yes
mood_mirex:
path: highlevel.moods_mirex.value
type: string
required: yes
mood_mirex_cluster_1:
path: highlevel.moods_mirex.all.Cluster1
type: float
mood_mirex_cluster_2:
path: highlevel.moods_mirex.all.Cluster2
type: float
mood_mirex_cluster_3:
path: highlevel.moods_mirex.all.Cluster3
type: float
mood_mirex_cluster_4:
path: highlevel.moods_mirex.all.Cluster4
type: float
mood_mirex_cluster_5:
path: highlevel.moods_mirex.all.Cluster5
type: float
badfiles:
check_on_import: yes
commands:
ogg: myoggchecker --opt1 --opt2
flac: flac --test --warnings-as-errors --silent
autobpm:
auto: yes
overwrite: no
beat_track_kwargs: {}
aura:
host: 0.0.0.0
port: 5456
page_limit: 5000
cors: ['null']
albumtypes:
types:
- ep: EP
- single: Single
- soundtrack: OST
- live: Live
- compilation: Anthology
- remix: Remix
ignore_va: compilation
bracket: '[]'
chroma:
auto: yes
permissions:
file: 666
dir: 777
terminal_encoding: utf-8
# --------------- Performance ---------------
threaded: yes
ui:
color: yes
import:
write: yes
copy: no
move: yes
autotag: yes
bell: yes
log: /home/beets/beet.log
original_date: yes
# --------------- Tagging ---------------
per_disc_numbering: yes
embedart:
auto: yes
maxwidth: 0
compare_threshold: 0
ifempty: no
remove_art_file: no
quality: 0
item_fields:
mySongartist: artist + ' - ' if artist != albumartist and artist != '' else ''
isMultidisc: 1 if disctotal > 1 else 0
myAlbumType: ('' if albumtype == '' else ' [' + ('EP' if albumtype == 'ep' else albumtype.capitalize()) + ']')
myDisc: ('' if disctotal <= 1 else str(disc) + ' - ')
paths:
default: Interpreten/$albumartist/($year) $album%aunique{}$myAlbumType/%if{$isMultidisc,$disc - }$track - $mySongartist$title
comp: Compilations/$albumartist/($year) $album%aunique{}/$myDisc$track - $artist - $title
albumtype:soundtrack: Soundtracks/$albumartist/$album%aunique{} ($year)/$myDisc$track - $artist - $title
aunique:
keys: albumartist album
disambiguators: albumtype year label catalognum albumdisambig releasegroupdisambig
bracket: '[]'
fetchart:
auto: yes
sources: filesystem coverart itunes amazon albumart fanarttv
minwidth: 0
maxwidth: 0
quality: 0
max_filesize: 0
enforce_ratio: no
cautious: no
cover_names:
- cover
- front
- art
- album
- folder
store_source: no
high_resolution: no
deinterlace: no
cover_format:
google_key: REDACTED
google_engine: 001442825323518660753:hrh5ch1gjzm
fanarttv_key: REDACTED
lastfm_key: REDACTED
lastgenre:
auto: yes
source: track
whitelist: yes
min_weight: 10
count: 1
fallback:
canonical: no
force: yes
separator: ', '
prefer_specific: no
title_case: yes
extrafiles:
patterns:
all: '*.*'
artworkdir:
- '[sS]cans/'
- '[aA]rtwork/'
- '[aA]rt/'
- '[cC]over/'
paths:
artworkdir: $albumpath/Artwork
ext:log: $albumpath/$disc_folder/Data/
ext:cue: $albumpath/$disc_folder/Data/
ext:jpg: $albumpath/
replace:
'[\\/]': _
^\.: _
'[\x00-\x1f]': _
'[<>:"\?\*\|]': _
\.$: _
\s+$: ''
edit:
itemfields:
- album
- albumartist
- artist
- track
- title
- year
albumfields:
- albumartist
- album
- year
- albumtype
ignore_fields: id path
match:
strong_rec_thresh: 0.05
max_rec:
source: strong
artist: strong
album: strong
media: strong
mediums: strong
year: strong
country: strong
label: strong
catalognum: strong
albumdisambig: strong
album_id: strong
tracks: strong
missing_tracks: medium
unmatched_tracks: medium
track_title: strong
track_artist: strong
track_index: strong
track_length: strong
track_id: strong
discogs:
apikey: REDACTED
apisecret: REDACTED
tokenfile: discogs_token.json
source_weight: 0.5
user_token: REDACTED
separator: ', '
index_tracks: no
append_style_genre: no
missing:
count: no
total: no
album: no
duplicates:
album: no
checksum: ''
copy: ''
count: no
delete: no
format: ''
full: no
keys: []
merge: no
move: ''
path: no
tiebreak: {}
strict: no
tag: ''
pathfields: {}
album_fields: {}
unimported:
ignore_extensions: []
ignore_subdirectories: []
fuzzy:
prefix: '~'
threshold: 0.7
Could just be a broken media file. Just remove that one from your beets library and try running xtractor again. Hope that helps!