Add hardware acceleration toggle for recent ffmpeg versions