Skip to content

Instantly share code, notes, and snippets.

@MIB1700
Last active April 20, 2021 11:41
Show Gist options
  • Save MIB1700/1a27afe03d3f669be9289c8f4637bde6 to your computer and use it in GitHub Desktop.
Save MIB1700/1a27afe03d3f669be9289c8f4637bde6 to your computer and use it in GitHub Desktop.

Revisions

  1. MIB1700 renamed this gist Apr 20, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. MIB1700 created this gist Apr 20, 2021.
    6 changes: 6 additions & 0 deletions FFmpeg convert all to mp3
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    for f in *
    do
    ffmpeg -i "$f" -c:a mp3 -ab 192k "${f%.*}".mp3
    done

    #assumes that all files in the folder are audio files or video files containing audio!