Credit @DavidFabijan for mojvideo (#3423)