Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baptistebriel/29e761fbc7cc5923cf6b99444a2935c4 to your computer and use it in GitHub Desktop.
Save baptistebriel/29e761fbc7cc5923cf6b99444a2935c4 to your computer and use it in GitHub Desktop.
compress mp4 video using ffmpeg
// http://ericholsinger.com/install-ffmpeg-on-a-mac
ffmpeg -i input.mp4 -vcodec h264 -acodec mp3 output.mp4
@baptistebriel
Copy link
Author

// to remove audio output from video
ffmpeg -i input.mp4 -vcodec h264 -an output.mp4

@baptistebriel
Copy link
Author

export first frame of video:

ffmpeg -i video.mp4 -vf "select=eq(n\,0)" -q:v 3 frame.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment