Skip to content

Instantly share code, notes, and snippets.

@tndoan
Created July 20, 2018 16:04
Show Gist options
  • Save tndoan/dac1c55319e1e88f825a4b480b8c9f7b to your computer and use it in GitHub Desktop.
Save tndoan/dac1c55319e1e88f825a4b480b8c9f7b to your computer and use it in GitHub Desktop.
# convert from webm to mp3
ffmpeg -i input.webm output.mp3
# split mp3 file to several audio files whose length is 3600s and the names of these files begin with out<id>.mp3
ffmpeg -i out.mp3 -f segment -segment_time 3600 -c copy out%03d.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment