Last active
September 28, 2015 10:18
-
-
Save rriemann/1423885 to your computer and use it in GitHub Desktop.
- Encode Videos for Nokia N900/N9 or Android (Huawei) using ffmpeg
- other tricks for ffmpeg
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
ffmpeg -threads 4 -i input.avi -vcodec libx264 -s 854x480 -vprofile baseline -level 3.1 -acodec copy -f mp4 -t 120 output.mp4 | |
ffmpeg -threads 4 -i input.avi -vcodec libx264 -vprofile baseline -level 3.1 -vf crop=562:248:8:36 -acodec copy -f mp4 -t 120 output.mp4 | |
ffmpeg -threads 4 -i input.avi -vcodec libx264 -vprofile baseline -level 3.1 -vf crop=716:552:2:12:1,scale=854:480 -acodec copy -f mp4 output.mp4 | |
# http://www.developer.nokia.com/Community/Wiki/Recommended_video_encoding_settings | |
# http://opensource-htpc.blogspot.de/2011/04/remove-black-borders-and-bars-from.html |
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
ffmpeg -threads 4 -i input.mp4 -vcodec libx264 -s 800x480 -b 500k -ac 2 -ab 96k -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method umh -subq 7 -refs 5 -me_range 16 -g 250 -qmin 10 -qmax 51 -vpre baseline -f mp4 -t 120 output.mp4 | |
# http://wiki.maemo.org/Manual_video_encoding#ffmpeg_0.7.0 |
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
ffmpeg -i DSC_0925.MOV -s 960x540 -c:v libx264 -profile:v baseline -an -movflags faststart output.mp4 |
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
http://superuser.com/questions/323119/how-can-i-normalize-audio-using-ffmpeg | |
fmpeg -i video.avi -filter:a "volumedetect" -vn -f null /dev/null | |
ffmpeg -i input.m4v -vn -c:a copy audio-only-output.mp3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment