preset.VideoFramerate = export.Task.Framerate.ToString();\r
preset.VideoFramerateMode = EnumHelper<FramerateMode>.GetShortName(export.Task.FramerateMode);\r
preset.VideoGrayScale = export.Task.Grayscale;\r
- preset.VideoLevel = export.Task.VideoLevel.ShortName;\r
+ preset.VideoLevel = export.Task.VideoLevel != null ? export.Task.VideoLevel.ShortName : null;\r
preset.VideoOptionExtra = export.Task.ExtraAdvancedArguments;\r
- preset.VideoPreset = export.Task.VideoPreset.ShortName;\r
- preset.VideoProfile = export.Task.VideoProfile.ShortName;\r
+ preset.VideoPreset = export.Task.VideoPreset != null ? export.Task.VideoPreset.ShortName : null;\r
+ preset.VideoProfile = export.Task.VideoProfile != null ? export.Task.VideoProfile.ShortName : null;\r
preset.VideoQSVAsyncDepth = 4; // Defaulted to 4 for now.\r
preset.VideoQSVDecode = !config.DisableQuickSyncDecoding;\r
preset.VideoQualitySlider = export.Task.Quality.HasValue ? export.Task.Quality.Value : 0;\r