Skip to content

Instantly share code, notes, and snippets.

@skihero
Created March 7, 2011 09:16
Show Gist options
  • Save skihero/858265 to your computer and use it in GitHub Desktop.
Save skihero/858265 to your computer and use it in GitHub Desktop.
v# cutting an mp3 file to right length:
ffmpeg -i music.mp3 -ss 00:00:00 -t 00:01:00 -vcodec copy -acodec mp3 music-cut.mp3
# generating video from snapshots and mp3
ffmpeg -f image2 -r 24 -i ./%05d.png -i music-cut.mp3 -acodec copy -sameq ./video.avi -pass 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment