We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

VideoFrame generated with Linux not accessible with MS Powerpoint 2010/2013

Hello there,

i am using the demo code from your website (https://docs.aspose.com/slides/java/video-frame/) but it seems it is not working with Powerpoint 2010 and 2013. With LibreOffice i see at least a preview. If i rename the pptx to zip and open it - the mp4 file is located in ppt\media\media1.mp4.

If i try to run the movie in Powerpoint 2010 and 2013 the message pops up that the linked multimedia file \ppt\media\media1.mp4 could not be found.

- java.vm.name: Java HotSpot™ 64-Bit Server VM
- java.vm.vendor: Oracle Corporation
- java.vm.version: 24.45-b08
- java.runtime.name: Java™ SE Runtime Environment
- java.runtime.version: 1.7.0_45-b18
- os.name: Linux
- os.arch: amd64
- java.io.tmpdir: /tmp
- file.encoding: UTF-8
- sun.io.unicode.encoding: UnicodeLittle
- sun.cpu.endian: little
- Available processors (cores): 8
- Free memory (bytes): 291 MB
- Maximum memory (MBytes): 5335 MB
- Total memory available to JVM (MBytes): 359 MB
- File system root: /
- Total: 218084 MB; used: 156822 MB; available: 61262 MB
- Aspose lib versions:
- Aspose.Words for Java :
- Aspose.Cells for Java :
- Aspose.Slides for Java:
- Aspose.Pdf for Java : 9.7.0

Code used:
public void testSlidesIncludeVideo() throws Exception {
String targetFileName = getClass().getSimpleName() + “.” + (new Object(){}.getClass().getEnclosingMethod().getName()) + “.pptx”;
File fTarget = File.createTempFile(“mls-temp-”, targetFileName);
// fTarget.deleteOnExit();
//Instantiate Presentation class that represents the PPTX
Presentation pres = new Presentation();

//Get the first slide
ISlide sld = pres.getSlides().get_Item(0);

//Embedd vide inside presentation
IVideo vid = pres.getVideos().addVideo(new FileInputStream(new File(getFileUrlByName("/pptTemplating/videoObjectSample.mp4").toURI())));

//Add Video Frame
IVideoFrame vf = sld.getShapes().addVideoFrame(50, 150, 300, 350, vid);

//Set video to Video Frame

//Set Play Mode and Volume of the Video
vf.setPlayMode (VideoPlayModePreset.Auto);

//Write the PPTX file to disk
pres.save(fTarget.getAbsolutePath(), SaveFormat.Pptx);

Result file ill attach to this post.

Thanks in advance
Helge Rennicke

Hi Helge Rennicke,

I have observed the issue shared by you and like to share that it is already been added in our issue tracking system with ID SLIDESJAVA-34608. We are working over its resolution and are hopeful to provide the fix for this in upcoming version of Aspose.Slides for Java 14.10.0. I have linked this thread with the issue so that you may be automatically notified once the issue will be resolved.

Many Thanks,

The issues you have found earlier (filed as SLIDESJAVA-34608) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

confirmed - issue fixed, videoframe is accessible and video can be played.

thanks for the fast resolve of the issue.


Hi Rennicke,

Thank you very much for your feedback. Please share if I may help you further in this regard.

Many Thanks,