[Cin] HEVC hw encoding on AMD Polaris cards

Спицын Андрей spitsyn.andrey at gmail.com
Wed May 15 09:22:45 CEST 2019

>@GG  My hardware is little bit outdated so I already using script for a
>proxy files creation. I've spend some time to find appropriate options for
>ffmpeg to use fully hardware encoding/filtering. It has very good results
>compared to cinelerra proxy routine (about 30x faster) and cinelerra using
>ffmpeg's hardware filter and vaapi encoder (around 10x faster).
>So I thought that cinelerra can use this script to speed up the proxy files

Here the script file:


# Hardware encode AMD
ffmpeg -threads 2 -hwaccel vaapi  -vaapi_device /dev/dri/renderD128  -i  "$1" -c:v h264_vaapi -vf "format=nv12,hwupload,scale_vaapi=iw/'$proxy':ih/'$proxy'" -vcodec h264_vaapi  -preset fast -c:a copy -bf 0 -profile:v 66 "$fileout".proxy"$proxy"-mp4.mp4

I used 66 profile for h264 because polaris card not support other

More information about the Cin mailing list