ArcGIS Pro 3.5 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / MP4VideoFormat Class
Members Example

In This Topic
    MP4VideoFormat Class
    In This Topic
    Represents a MPEG-4 (MP4) video format object that can be used to export a Presentation.
    Syntax
    public class MP4VideoFormat : VideoFormatBase 
    Public Class MP4VideoFormat 
       Inherits VideoFormatBase
    Example
    Export a presentation
    //Note: Call within QueuedTask.Run()
    await QueuedTask.Run(() =>
    {
      //Create mp4 format with appropriate settings
      MP4VideoFormat mp4Format = new MP4VideoFormat();
      mp4Format.Width = 800;
      mp4Format.Height = 600;
      mp4Format.OutputFileName = @"my folder\presentation.mp4";
    
      //Define Export Options
      PresentationExportOptions options = new PresentationExportOptions
      {
        PageRangeOption = ExportPageOptions.ExportByPageRange,
        CustomPages = "1,2,8"
      };
    
      //export as mp4
      presentation.Export(mp4Format, options);
    });
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.ExportFormat
          ArcGIS.Desktop.Mapping.VideoFormatBase
             ArcGIS.Desktop.Mapping.MP4VideoFormat

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.5 or higher.
    See Also