extract-audio.sh 184 B

123456789
  1. #!/bin/bash
  2. # example, convert all mp4 files in media/ directory:
  3. #
  4. # find media -type f -name "*.mp4" | xargs -n1 scripts/extract-audio.sh
  5. #
  6. ffmpeg -i $1 -vn -acodec copy $2
  7. exit 0