Created
August 9, 2017 17:44
-
-
Save baptistebriel/29e761fbc7cc5923cf6b99444a2935c4 to your computer and use it in GitHub Desktop.
compress mp4 video using ffmpeg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://ericholsinger.com/install-ffmpeg-on-a-mac | |
ffmpeg -i input.mp4 -vcodec h264 -acodec mp3 output.mp4 |
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
// to remove audio output from video
ffmpeg -i input.mp4 -vcodec h264 -an output.mp4