facebookresearch / audiocraft

Audiocraft is a library for audio processing and generation with deep learning. It features the state-of-the-art EnCodec audio compressor / tokenizer, along with MusicGen, a simple and controllable music generation LM with textual and melodic conditioning.
MIT License
20.5k stars 2.06k forks source link

InvalidDataError with MusicGen training #238

Open carlthome opened 1 year ago

carlthome commented 1 year ago

Getting a lot of curious errors despite having double-checked that the audio files can be played back and that they look reasonable with ffprobe.

Packet corrupt (stream = 0, dts = NOPTS)
.
Multiple frames in a packet.
Invalid PCM packet, data has size 2 but at least a size of 6 was expected
Error opening file 100792.wav: InvalidDataError(1094995529, 'Invalid data found when processing input', None, (16, 'pcm_s24le', 'Invalid PCM packet, data has size 2 but at least a size of 6 was expected\n'))

Anyone know how to fix this? Guessing this warning might be related.

Estimating duration from bitrate, this may be inaccurate
carlthome commented 1 year ago

The file is 48 kHz / 24-bit PCM WAV.

adefossez commented 12 months ago

Can you show the full output of ffprobe for one of those files ?