ffmpeg on OSX with hardware enabled encoding

Add to the standard :ffmpeg -i source destination” ::

1
-c:v h264_videotoolbox

Also – it is critical that the bitrate be set, otherwise the default drops quality down to 600kb/s. to set at 5000k ::

1
-b:v 5000k

Full line sameple ::

1
ffmpeg -i testfile.mov -vf scale=1920:1080 -acodec copy -vcodec h264_videotoolbox -b:v 5000k testfile_output.mp4

Sample 90 min video, without HW ran at 58fps, with VideoToolBox enabled ran at 235fps.