Post History
The best method is to navigate to the folder containing your Flac audio files and use the following 'for' loop: for j in *.flac do ffmpeg -i "$j" -c:a libmp3lame -b:a 128k mp3/"${j%.flac}.mp3" ...
Answer
#2: Post edited
- The _best_ method is to navigate to the folder containing your Flac audio files and use the following 'for' loop:
- ```
- for j in *.flac
- do
- ffmpeg -i "$j" -c:a libmp3lame -b:a 128k mp3/"${j%.flac}.mp3"
- done
- ```
- Note the following points:
- 1. The output files will all be created in a subdirectory called 'mp3'
- 2. The output bitrate can be manipulated with the `-b:a 128k` setting
- 3. Or by using a quality setting (rather than bitrate): `-q:a 5`
3. The naming convention of your output files will be preserved- And enjoy your music!
- The _best_ method is to navigate to the folder containing your Flac audio files and use the following 'for' loop:
- ```
- for j in *.flac
- do
- ffmpeg -i "$j" -c:a libmp3lame -b:a 128k mp3/"${j%.flac}.mp3"
- done
- ```
- Note the following points:
- 1. The output files will all be created in a subdirectory called 'mp3'
- 2. The output bitrate can be manipulated with the `-b:a 128k` setting
- 3. Or by using a quality setting (rather than bitrate): `-q:a 5`
- 3. The naming convention of your _input_ files will be preserved in the _output_ files
- And enjoy your music!
#1: Initial revision
The _best_ method is to navigate to the folder containing your Flac audio files and use the following 'for' loop: ``` for j in *.flac do ffmpeg -i "$j" -c:a libmp3lame -b:a 128k mp3/"${j%.flac}.mp3" done ``` Note the following points: 1. The output files will all be created in a subdirectory called 'mp3' 2. The output bitrate can be manipulated with the `-b:a 128k` setting 3. Or by using a quality setting (rather than bitrate): `-q:a 5` 3. The naming convention of your output files will be preserved And enjoy your music!