copy pasted into OpenFfmpeg