How to export movie from Powerpoint 2010?
How to export embedded video from powerpoint 2010 to external file programmatically using MS Office PIA (Primary Interop Assemblies) or other ways? Embedding video in presentation is a new feature in Powerpoint 2010 and I Can't find solution for 开发者_Python百科this.
PPTX files are just compressed archives. The embedded video should be stored within it somewhere, possibly under the media folder but I'm not sure.
You can use something like DotNetZip to extract the media and save to where you like.
Note this means you don't need to use PIAs at all which is preferable if you're doing this on a server for instance.
Step 1: Make sure all files in your PC display file extension names (as filename.pptx, filename.exe, etc.). If not, enable them:
Go into Windows Explorer
If you don't have a toolbar or shortcut (usually a file folder with a magnifying glass superimposed over it) to get there, you can:
- Go to the Start menu
- Select Run
- Type "explorer.exe" in the box
- Hit the Enter key
- In Windows Explorer, choose Folder Options from the Tools menu
- Click on the View tab
- Find "Hide File Extensions for Known File Types" and UNcheck its box.
Step 2: Highlight the PowerPoint file, click “F2” (or right click and select "Rename") and change the name of the presentation by adding a .zip to the end. (e.g. filename.pptx.zip).
Step 3: Click “Yes” if the following dialog box appears after changing the name. Step 4: Unzip the file and open it. You can find a “ppt” folder in it. Open the “media” folder in “ppt” folder, you will find all the movies inserted into PowerPoint.
On a Windows/Linux/Mac, it works similar:
Copy your ppt (to be sure not to damage your original);
Change name by adding .zip;
Are you sure? Yes you are;
Zip is creating a folder from your file which you can easily access;
Find folder Ppt and within folder Media;
Files are in order of extention, most videos are grouped together.
That's all.
精彩评论