Last active
November 20, 2021 20:11
-
-
Save XavierTolza/16198883b8bbd8a8527ed4bd89bc2600 to your computer and use it in GitHub Desktop.
Ffmpeg encoding
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
# 720p nvidia | |
ffmpeg -i input.mkv -preset slow -codec:a libfdk_aac -b:a 128k -codec:v nvenc_h264 -pix_fmt yuv420p -b:v 2500k -minrate 1500k -maxrate 3000k -bufsize 5000k -vf scale=-2:720 -loglevel error -movflags +faststart -y output.mp4 | |
# 720p cpu | |
ffmpeg -i input.mkv -preset slow -codec:a libfdk_aac -b:a 128k -codec:v h264 -pix_fmt yuv420p -b:v 2500k -minrate 1500k -maxrate 3000k -bufsize 5000k -vf scale=-2:720 -loglevel error -movflags +faststart -y output.mp4 | |
# 720p cpu emby direct play (sur raspi 1 thread) | |
ffmpeg -i input.mkv -preset slow -c:a libopus -strict -2 -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 2500k -minrate 1500k -maxrate 3000k -bufsize 5000k -vf scale=-2:720 -loglevel error -movflags +faststart -y -threads 1 output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment