Last active
January 11, 2023 16:46
-
-
Save iantearle/aee0605a9476ede88aeda99c22ca083f to your computer and use it in GitHub Desktop.
MP4 ffmpeg useful options
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
# convert mp4 to webm | |
ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 30 -speed 3 -pix_fmt yuv420p -color_primaries 1 -color_trc 1 -colorspace 1 -movflags +faststart -an output.webm | |
# reduce file szie of mp4 | |
ffmpeg -i input.mp4 -c:v libx265 -crf 23 -tag:v hvc1 -pix_fmt yuv420p -color_primaries 1 -color_trc 1 -colorspace 1 -movflags +faststart -an output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment