This short article describes how to extract media from PowerPoint using C#. It contains all the details to configure the IDE, a list of steps, and sample code that demonstrates how to extract a video from PowerPoint using C#. This code is not limited to just video extraction, as it can also extract audio. Imparerai tecniche per recuperare tutti i tipi di formati di file video e audio supportati da PowerPoint.
Passaggi per estrarre video da PowerPoint con C#
- Set up the environment to use Aspose.Slides for .NET to extract media from a presentation.
- Optionally set the license, specify the input PPTX file name, and the destination folder to save all extracted media files.
- Load the source PPTX file into the Presentation class object to read the content.
- Iterate through all the slides of the presentation and analyze all the shapes in each slide.
- If an embedded video is found in shape, determine its format using the custom function and save it to the output folder.
- If the form contains an embedded audio clip, determine its format using the custom function and save it to the output folder.
- Definisci la funzione personalizzata per determinare il formato del file multimediale
Questi passaggi descrivono come ottenere video da PowerPoint usando C#. Load the source PPTX file, iterate through all slides, retrieve a collection of shapes on each slide, and check for embedded audio and video clips. If a multimedia file is found, determine its type and save it to the destination folder.
Codice per estrarre audio da PPTX usando C#
This code demonstrates how to extract a video from a PowerPoint using C#. The sample code includes separate sections for retrieving embedded video and audio clips that you can use as needed. The ContentType property exposed by the Aspose multimedia object.Slides contains the exact file extension that was used to save the clip in the slide.
This article explains the process for extracting audio and video from a PowerPoint presentation. To extract text from PowerPoint, see the article Extract text from PowerPoint using C#.