I have a script that someone from the old forum wrote for me to convert flac files to opus files. It used to work a month or two ago but now I am getting an error. Here is the script:
#!/usr/bin/env bash
find . -type f -name “.flac" | while IFS= read -r filename; do
echo Converting $filename
/bin/opusenc --bitrate 96 “${filename}” "${filename%.}.opus” && rm “${filename}”
done
Here is the error it is giving. The number before the segmentation fault is different for each flac it tries to convert. Any help would be appreciated.
It looks like the encoder is looking for libflac.so.8 and that file isn’t in /usr/lib. I think there was an update to the flac package maybe and it got changed. I’m not sure.
It’s seems my problem is solved. For some reason that I do not know, opus-tools was not on my system. I installed it and the script is working as expected.