Skip to content

Instantly share code, notes, and snippets.

@ChristopherA
Created November 30, 2019 03:00
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 ChristopherA/fd874f9dc18e2fba8165fce2e6bcc2d6 to your computer and use it in GitHub Desktop.
Save ChristopherA/fd874f9dc18e2fba8165fce2e6bcc2d6 to your computer and use it in GitHub Desktop.
Convert all mp4 video in current directory to mp3 audio using ffmpeg #audio #video #convert #mp3 #mp4
#!/bin/sh
# Convert all mp4 video in current directory to mp3 audio using ffmpeg
for f in *.mp4; do ffmpeg -i "$f" -acodec libmp3lame -ab 192k "${f%.mp4}".mp3; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment