This removed part is copy pasted into OpenFfmpeg