Last active
May 22, 2025 00:17
-
Star
(211)
You must be signed in to star a gist -
Fork
(52)
You must be signed in to fork a gist
-
-
Save nonwip/b9d923cb31775f92fa54eb8c39ccd5a9 to your computer and use it in GitHub Desktop.
Revisions
-
Nenad Novaković revised this gist
Jul 21, 2021 . 1 changed file with 1 addition and 1 deletion.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 @@ -22,7 +22,7 @@ ###### MP4 - 480p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 1000k -minrate 500k -maxrate 2000k -bufsize 2000k -vf scale=-1:480 output.mp4` ###### MP4 - 360p -
Nenad Novaković revised this gist
Nov 25, 2019 . 1 changed file with 4 additions and 4 deletions.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 @@ -14,16 +14,16 @@ ###### MP4 - 1080p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 4500k -minrate 4500k -maxrate 9000k -bufsize 9000k -vf scale=-1:1080 output.mp4` ###### MP4 - 720p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 2500k -minrate 1500k -maxrate 4000k -bufsize 5000k -vf scale=-1:720 output.mp4` ###### MP4 - 480p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 1000k -minrate 500k -maxrate 2000k -bufsize 2000k -vf scale=854:480 output.mp4` ###### MP4 - 360p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 750k -minrate 400k -maxrate 1000k -bufsize 1500k -vf scale=-1:360 output.mp4` -
Nenad Novaković revised this gist
Jul 17, 2019 . 1 changed file with 1 addition and 1 deletion.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 @@ -10,7 +10,7 @@ | `-codec:v` | mpeg4, libx264, libvpx-vp9 | Video Codec | | `-b:v` | 1000, 2500, 5000, 8000 | Video Bitrate | | `-vf scale` | -1:X | Resize Video (X is height) | | `-qmin 10 -qmax 42` | ??? | https://gist.github.com/dvlden/b9d923cb31775f92fa54eb8c39ccd5a9#gistcomment-2972745 | ###### MP4 - 1080p -
dvL revised this gist
Sep 11, 2017 . 1 changed file with 2 additions and 2 deletions.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 @@ -1,6 +1,6 @@ ### This is my personal list of functions that I wrote for converting `mov` files to `mp4`! > Command Flags | Flag | Options | Description | | ---- | ------- | ----------- | -
dvL revised this gist
Sep 11, 2017 . 1 changed file with 13 additions and 13 deletions.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 @@ -2,28 +2,28 @@ ### Explanations | Flag | Options | Description | | ---- | ------- | ----------- | | `-codec:a` | libfaac, libfdk_aac, libvorbis | Audio Codec | | `-quality` | best, good, realtime | Video Quality | | `-b:a` | 128k, 192k, 256k, 320k | Audio Bitrate | | `-codec:v` | mpeg4, libx264, libvpx-vp9 | Video Codec | | `-b:v` | 1000, 2500, 5000, 8000 | Video Bitrate | | `-vf scale` | -1:X | Resize Video (X is height) | | `-qmin 10 -qmax 42` | ??? | I don't really know what is this for, help related to this is welcome... | ###### MP4 - 1080p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 4500k -minrate 4500k -maxrate 9000k -bufsize 9000k -vf scale=-1:1080 intro-1080p.mp4` ###### MP4 - 720p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 2500k -minrate 1500k -maxrate 4000k -bufsize 5000k -vf scale=-1:720 intro-720p.mp4` ###### MP4 - 480p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 1000k -minrate 500k -maxrate 2000k -bufsize 2000k -vf scale=854:480 intro-480p.mp4` ###### MP4 - 360p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 750k -minrate 400k -maxrate 1000k -bufsize 1500k -vf scale=-1:360 intro-360p.mp4` -
dvL revised this gist
Sep 11, 2017 . 1 changed file with 6 additions and 0 deletions.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 @@ -3,11 +3,17 @@ ### Explanations > `-codec:a` (audio codec) : libfaac, libfdk_aac, libvorbis > `-quality` : best, good, realtime > `-b:a` (audio bitrate) : 128k, 192k, 256k, 320k > `-codec:v` (video codec) : mpeg4, libx264, libvpx-vp9 > `-b:v` (video bitrate) : 1000, 2500, 5000, 8000 > `-vf scale` (resize video) : -1:X (where X is height) > `-qmin 10 -qmax 42` : I don't really know what is this for, help related to this is welcome... ###### MP4 - 1080p -
dvL revised this gist
Sep 11, 2017 . 1 changed file with 1 addition and 1 deletion.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 @@ -1,4 +1,4 @@ # This is my personal list of functions that I wrote for converting `mov` files to `mp4`! ### Explanations -
dvL created this gist
Sep 11, 2017 .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,23 @@ # This is my personal list of functions that I wrote for converting `mov` files to `mp4`, but they can be used to convert from any video file format into any other I guess... (not tested) ### Explanations > `-codec:a` (audio codec) : libfaac, libfdk_aac, libvorbis > `-quality` : best, good, realtime > `-b:a` (audio bitrate) : 128k, 192k, 256k, 320k > `-codec:v` (video codec) : mpeg4, libx264, libvpx-vp9 > `-b:v` (video bitrate) : 1000, 2500, 5000, 8000 > `-vf scale` (resize video) : -1:X (where X is height) > `-qmin 10 -qmax 42` : I don't really know what is this for, help related to this is welcome... ###### MP4 - 1080p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 4500k -minrate 4500k -maxrate 9000k -bufsize 9000k -vf scale=-1:1080 intro-1080p.mp4` ###### MP4 - 720p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 2500k -minrate 1500k -maxrate 4000k -bufsize 5000k -vf scale=-1:720 intro-720p.mp4` ###### MP4 - 480p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 1000k -minrate 500k -maxrate 2000k -bufsize 2000k -vf scale=854:480 intro-480p.mp4` ###### MP4 - 360p `ffmpeg -i input.mov -preset slow -codec:a libfdk_aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p -b:v 750k -minrate 400k -maxrate 1000k -bufsize 1500k -vf scale=-1:360 intro-360p.mp4`