Skip to content

Snippetizer uses ffmpeg and ffprobe to create snippets from audio files

Notifications You must be signed in to change notification settings

spitlo/snippetizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Snippetizer

Snippetizer uses ffmpeg and ffprobe to create snippets from audio files.

Snippets default to a 30 second bit from the middle of the song, and are faded in and out.

Installation

  • Copy the snippetizer file to ~/bin; or
  • Clone the repo and create a symlink to snippetizer in ~/bin

Usage

snippetizer audio_file.wav

Arguments

[start|middle|end]    What part of the file you want to snippet.
                      Defaults to 'middle'.
[<any integer>]       Snippet length in seconds.
                      Defaults to '30'.
[-o/--ogg]            Use ogg as output format instead of mp3.
[-n/--nofade]         Don’t fade in and out.

Batching example

Create 30 second snippets of all flac and wav files in current directory:

find . -maxdepth 1 \( -iname '*.wav' -o -iname '*.flac' \) -execdir snippetizer {} \;

Todo

  • Add argument for using ogg instead of mp3 as output format

About

Snippetizer uses ffmpeg and ffprobe to create snippets from audio files

Topics

Resources

Stars

Watchers

Forks

Languages