Converting PPTX to MP4 with Slide Transitions Using Aspose.Slides for Python

Is it possible to export PPTX to mp4?

If not is there a way to have our slide transitions display when exporting as a GIF?

@bowespublishing,
Thank you for your questions. Unfortunately, Aspose.Slides cannot convert presentations to video yet. I’ve added a ticket with ID SLIDESPYNET-31 to our issue tracking system. Our development team is working on this feature. You will be notified when the issue is resolved.

It would be great if you could also specify the OS version your app is running on.

You can convert a presentation to GIF with slide transitions as shown below:

import aspose.slides as slides
import aspose.pydrawing as drawing

presentation = slides.Presentation("example.pptx")

options = slides.export.GifOptions()
options.default_delay = 2000
options.transition_fps = 35 

presentation.save("output.gif", slides.export.SaveFormat.GIF, options)

Documents: Convert PowerPoint to Animated GIF
API Reference: GifOptions class

This doesn’t include the slides transitions however. For example if I implement a page curl effect

with slides.Presentation("test.pptx") as presentation:
    for index in range(presentation.slides.length):   
        presentation.slides[index].slide_show_transition.type = slides.slideshow.TransitionType.PAGE_CURL_SINGLE

This isn’t shown in the output GIF

@bowespublishing,
Please check your results using the latest version of Aspose.Slides if it is possible. If the issue persists, please share the following data and information:

  • input presentation file
  • output GIF file
  • OS version where the code was executed
  • Aspose.Slides version you used
import aspose.slides as slides
import aspose.pydrawing as drawing

with slides.Presentation("test.pptx") as presentation:
    options = slides.export.GifOptions()
    options.default_delay = 3000
    options.transition_fps = 35
    for index in range(presentation.slides.length):   
        presentation.slides[index].slide_show_transition.type = slides.slideshow.TransitionType.PAGE_CURL_SINGLE
        presentation.slides[index].slide_show_transition.advance_after_time = 3000
    presentation.save("test2.pptx", slides.export.SaveFormat.PPTX) #Has page turn effect in slideshow
    presentation.save("test2.gif", slides.export.SaveFormat.GIF, options) #doesn't have page turn effect

Windows 11
Aspose Slides 22.7
Input and output below
PAGE CURL.zip (9.5 MB)

@bowespublishing,
Thank you for the code example and files. I’ve reproduced the problem with the image transition in the generated GIF file and added a ticket with ID SLIDESPYNET-32 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when the issue is resolved.