User Tools

Site Tools


ubuntu:sound:convert_flac_to_mp3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:sound:convert_flac_to_mp3 [2020/07/15 09:30] – external edit 127.0.0.1ubuntu:sound:convert_flac_to_mp3 [2022/09/19 11:07] (current) peter
Line 10: Line 10:
 for a in ./*.flac; do ffmpeg -i "$a" -qscale:a 0 "${a[@]/%flac/mp3}"; done for a in ./*.flac; do ffmpeg -i "$a" -qscale:a 0 "${a[@]/%flac/mp3}"; done
 </code> </code>
 +
 +----
 +
 +===== Convert files in all sub-directories =====
 +
 +<code bash>
 +find . -type f -name "*.flac" -print0 | while IFS= read -r -d '' file; do echo "$file"; flac -cd "$file" | lame -b 320 - "${file%.*}".mp3; done
 +</code>
 +
 +----
 +
 +
ubuntu/sound/convert_flac_to_mp3.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki