Skip to content

Instantly share code, notes, and snippets.

@k1000
Last active June 22, 2018 12:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k1000/240991374cb0f58ee052849184dbfe36 to your computer and use it in GitHub Desktop.
Save k1000/240991374cb0f58ee052849184dbfe36 to your computer and use it in GitHub Desktop.
#FFmpeg
downsample many mp3 many files
for i in *.mp3; do ffmpeg -i "$i" -ac 1 -ab 64000 -ar 22050 "${i%.mp3}-64kbps.mp3"; done
#concat many files
ffmpeg -safe 0 -f concat -i <(find . -type f -name '*' -printf "file '$PWD/%p'\n" | sort) -c copy output.mkv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment