Created
February 8, 2024 13:47
-
-
Save doole/f9c2899b0d2f5d3e039c27d9cf84e447 to your computer and use it in GitHub Desktop.
Revisions
-
doole created this gist
Feb 8, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ #+title: FLAC Transcode * Convert ** MP3 - VBR V0 [[https://trac.ffmpeg.org/wiki/Encode/MP3][- encode/mp3]] #+begin_src bash find . -name '*.flac' -print0 | xargs -0 -I FILE sh -c 'ffmpeg -i "$1" -c:a libmp3lame -q:a 0 "${1%.flac}.mp3" ' -- FILE #+end_src ** M4A - CBR 320kbps - [[https://trac.ffmpeg.org/wiki/Encode/AAC][encode/aac]] #+begin_src bash find . -name '*.flac' -print0 | xargs -0 -I FILE sh -c 'ffmpeg -i "$1" -c:a libfdk_aac -b:a 320k "${1%.flac}.m4a" ' -- FILE #+end_src * Split from single FLAC + CUE #+begin_src bash shnsplit -f file.cue -t '%n - %t' -o flac file.flac #+end_src * Tools - fedora #+begin_src bash sudo dnf install cuetools shntool #+end_src - debian #+begin_src bash sudo apt install cuetools shntool #+end_src - macos (homebrew) #+begin_src bash brew install cuetools shntool #+end_src