                     let min = Swift.min(videoDimensions.width, videoDimensions.height)
                     config[AVVideoWidthKey] = NSNumber(integerLiteral: Int(min))
                     config[AVVideoHeightKey] = NSNumber(integerLiteral: Int(min))
+                    break
+                case .custom(let w, let h):
+                    config[AVVideoWidthKey] = NSNumber(integerLiteral: Int(videoDimensions.width))
+                    config[AVVideoHeightKey] = NSNumber(integerLiteral: Int(videoDimensions.width * Int32(w) / Int32(h)))
                     break
                 case .active:
                     fallthrough

public class NextLevelVideoConfiguration: NextLevelConfiguration {

    /// Output aspect ratio, specifies dimensions for video output automatically
    public enum OutputAspectRatio: Int, CustomStringConvertible {
        case active      // active preset or specified dimensions (default)
        case standard    // 4:3
        case square      // 1:1
        case widescreen  // 16:9
        
        public var description: String {
            get {

                    return "Square"
                case .widescreen:
                    return "Widescreen"
                case .custom:
                    return "custom"
                }
            }
        }
