-
-
Save FossPrime/10e7365612e2df898536 to your computer and use it in GitHub Desktop.
Simplest lossy web ready x.264 ffmpeg command
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
#!/bin/bash | |
# strict 2 is required to use the built in aac codec | |
# Fast start may not be needed when using the built in aac, but it is for h264 | |
ffmpeg -i input.mov -vcodec h264 -acodec aac -strict -2 -movflags faststart output.mp4 | |
# Better Quality, medium compression | |
ffmpeg -i input.avi -vcodec h264 -preset veryslow -crf 18 -acodec aac -strict -2 -b:a 240k -movflags faststart helvet.mp4 | |
# Doing lossy X to lossy x264/aac right, crf 18 - 1 to account for compression artifacts | |
ffmpeg.exe -i input.avi -vcodec h264 -crf 17 -preset veryslow -acodec aac -strict -2 -b:a 240k -movflags faststart output.mp4 | |
# Already have an h.264 stream? perfect, just copy it. | |
ffmpeg -i input.mkv -vcodec copy -acodec aac -strict -2 -b:a 240k -movflags faststart output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment