RuntimeError: Error opening File contains data in an unknown format-NoBackendError

created at 05-29-2022 views: 4

problem

In conclusion, two errors were reported:

1. RuntimeError: Error opening File contains data in an unknown format.
2. NoBackendError

reason

files in MP3 format are not recognized, In other words: ffmpeg is not installed

solution

Download ffmpg

1 ffmpeg installation

refer to detailed tutorial for installing ffmpeg

then check ffmpeg is istalled successfully

> ffmpg --version
ffmpg version 5.0.1...

2 Copy ffmpeg.exe to the project folder

3 Open the ffdec.py where the project is located in anaconda

anaconda

change:

COMMANDS = ('ffmpeg', 'avconv')

to:

COMMANDS = ('./ffmpeg', 'avconv')

problem solved

created at:05-29-2022
edited at: 05-29-2022: