Ejemplo n.º 1
0
        /// <summary>
        /// The export.
        /// </summary>
        /// <param name="filename">
        /// The filename.
        /// </param>
        /// <param name="preset">
        /// The preset.
        /// </param>
        /// <param name="configuration">
        /// The configuration.
        /// </param>
        public void Export(string filename, Preset preset, HBConfiguration configuration)
        {
            // TODO Add support for multiple export
            PresetTransportContainer container = JsonPresetFactory.ExportPreset(preset, configuration);

            HandBrakePresetService.ExportPreset(filename, container);
        }
Ejemplo n.º 2
0
        public void Export(string filename, string presetName)
        {
            Preset foundPreset = this.flatPresetList.FirstOrDefault(s => s.Name == presetName);

            if (foundPreset != null)
            {
                PresetTransportContainer container = JsonPresetFactory.ExportPreset(foundPreset);
                HandBrakePresetService.ExportPreset(filename, container);
            }
        }
Ejemplo n.º 3
0
        public void ExportCategories(string filename, IList <PresetDisplayCategory> categories, HBConfiguration configuration)
        {
            PresetTransportContainer container = JsonPresetFactory.ExportPresetCategories(categories, configuration);

            HandBrakePresetService.ExportPreset(filename, container);
        }