Created
January 31, 2018 15:11
-
-
Save omgitsraven/baa0c5721df07c9bc226a8cfcbd7a136 to your computer and use it in GitHub Desktop.
FFMPEG command to produce MP4s that Twitter won't reject
This file contains 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
ffmpeg -i %1 -ac 2 -pix_fmt yuv420p -vsync 2 -r 60 %1.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my experience, there are three things that can trip twitter up when receiving a video file:
This takes care of all three of those requirements.
You could also tune the quality settings of course, but twitter clobbers video quality so heavily anyway that it hardly seems worth bothering.
To use on Windows:
.mp4
on the end of its filename).To use on another platform (or without downloading a .bat file) just run the command on your command line, manually substituting your input file path where it says
%1
.