Skip to content

Instantly share code, notes, and snippets.

@richtungspfeil
Forked from theodric/batch-mp3.txt
Created March 28, 2021 12:48
Show Gist options
  • Select an option

  • Save richtungspfeil/55f938f3c32c5ffed701591ef9afecba to your computer and use it in GitHub Desktop.

Select an option

Save richtungspfeil/55f938f3c32c5ffed701591ef9afecba to your computer and use it in GitHub Desktop.
batch convert files from (e.g.) m4b to mp3 with ffmpeg and avconv
Single:
avconv -acodec libmp3lame -i test.m4b test.mp3
Batch:
for f in *m4b; do avconv -i "$f" -acodec libmp3lame ${f%.m4b}.mp3"; done
Single:
ffmpeg -i input.wav -codec:a libmp3lame -qscale:a 7 output.mp3
Batch:
for f in *m4b; do ffmpeg -i "$f" -codec:a libmp3lame -qscale:a 7 "${f%.m4b}.mp3"; done
strip id3 tags:
apt install libid3-tools eyed3
~# id3convert -s a.mp3
~# eyeD3 --remove-v1 a.mp3
~# eyeD3 --remove-lyrics a.mp3
@richtungspfeil
Copy link
Copy Markdown
Author

Super um alte Hörbücher für einen Tonuino umzubauen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment