def degrees_to_handbrake_rotation(degrees):
    """Return value HandBrake uses for rotation"""

    if degrees == 90:
        return 4
    elif degrees == 180:
        return 3
    elif degrees == 270:
        return 7
    else:
        return None