Last active
July 31, 2025 16:02
-
-
Save luizomf/7f74ee08a73898f0c3bff2c700d24530 to your computer and use it in GitHub Desktop.
Revisions
-
luizomf renamed this gist
Aug 13, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
luizomf created this gist
Aug 13, 2022 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ # Upscale 1080p to 4k using ffmpeg Just use the command below: ``` ffmpeg -i INPUT_FILE \ -vf scale=3840x2160:flags=lanczos \ -c:v libx264 \ -crf 13 \ -c:a aac -b:a 512k \ -preset slow \ OUTPUT_FILE ``` Where: - `INPUT_FILE` is the path to your input file - `-vf scale=3840x2160:flags=lanczos`is the new resolution using lanczos - `-c:v libx264` is the codec H264 - `-crf 13` is the desired quality - From 0 to 51, the higher the number the worse. The smaller the number, the larger the file size - `-c:a aac -b:a 512k` is the audio codec and bitrate - `-preset slow` is the preset used. To go faster, use `ultrafast` - `OUTPUT_FILE` is the output file Hope it helps.