2
I received the following error when converting a FLAC to MP3 with FFmpeg
[flac @ 0x7fe841000800] Format flac detected only with low score of 1, misdetection possible!
[flac @ 0x7fe841000800] Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
After using the following command:
for a in ./*.flac; do
ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i "$a" -c:v copy -q:a 0 "${a/%[.][Ff][Ll][Aa][Cc]/.mp3}"
rm "$a"
mv "${a/%[.][Ff][Ll][Aa][Cc]/.mp3}" "/Users/adrianvanburen/Music/Music/Media/Automatically Add to Music.localized"
done
With some FLACs that I downloaded via SFTP from a remote server. All the FLACs converted OK except for just one, which gave the above error.
1Happy you self-solved this, but what was your original command in the context of all of this. Please edit your question to add the original command for perspective. – JakeGould – 2019-11-10T22:45:15.977
@JakeGould Thank you. I updated the question. I learned why the tilde caused the issue, which was actually in SFTP, so I updated the answer as well. This issue should be easy to re-create now. – Adrian Van Buren – 2019-11-11T23:29:18.147