Created
July 25, 2017 08:15
-
-
Save kiki67100/52ba767c2d8576e41a05f6ec7c8ac655 to your computer and use it in GitHub Desktop.
ffmpeg hardware accelaration mac os
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
#!/bin/bash | |
#Verify the quality with difference bitrate ( crf no work with h264_videotoolbox use -b:v ) | |
#You can use the same audio codec change -c:a ac3 to -c:a copy i use it because it work my multimedia player | |
for bitrate in 500k 1000k 1500k 2500k 3000k 3500k;do | |
ffmpeg -i Movie.mkv -c:v h264_videotoolbox -c:a ac3 -b:a 128k -y -b:v $bitrate -ss 00:01:00 -t 00:00:10 Movie_$bitrate.mp4; | |
done | |
#With 2500k bitrate | |
ffmpeg -i Movie.mkv -c:v h264_videotoolbox -c:a ac3 -b:a 128k -y -b:v $bitrate -b:a 128k Movie_$bitrate.mp4; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment