Last active
December 31, 2022 01:31
-
-
Save xxiz/7512267db7a697fced7fbc04d8d5dead to your computer and use it in GitHub Desktop.
compress torrents via ffmpeg lossless + gpu accel.
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
# mkv to mp4 | |
ffmpeg -c:v libx264 -i input.mkv -c:v libx264 -preset veryslow -rc vbr_hq -c:a copy output.mp4 | |
# mp4 to mp4 | |
ffmpeg -c:v libx264 -i input.mp4 -c:v libx264 -preset veryslow -rc vbr_hq -c:a copy output.mp4 | |
# mkv to mp4 (gpu) | |
ffmpeg -hwaccel cuvid -c:v h264_cuvid -i input.mkv -c:v h264_nvenc -preset veryslow -rc vbr_hq -c:a copy output.mp4 | |
# mp4 to mp4 (gpu) | |
ffmpeg -hwaccel cuvid -c:v h264_cuvid -i input.mp4 -c:v h264_nvenc -preset veryslow -rc vbr_hq -c:a copy output.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment