Video in ODP File Is Not Detected as VideoFrame Using Aspose.Slides for .NET

Hey Andrey, this is me again ! :slight_smile:

New bug to figure out between OpenOffice Impress and PowerPoint & Aspose.Slides

Whatever happens, the video file will never be detected as a VideoFrame in Aspose.Slides and will give corrupted/broken file when saving to PPTX.

Can you help please ?

Here is file:
https://www.dropbox.com/scl/fi/42xtl9rycgm9p5ehfmyz1/video_not_detected_as_videoframe.odp?dl=0&rlkey=np40sjofydswquc0gyye7fad9

Before enabling external links in PowerPoint
video detected as AutoShape in Aspose / Picture in PowerPoint
image.png (26.3 KB)

After enabling external links in PowerPoint
video detected as PictureFrame in Aspose / Video in PowerPoint
image.png (20.7 KB)

here is code:

var ppt_path = "path_to_ppt";
var ppt_out_path = "path_to_ppt_out";
Aspose.Slides.LoadOptions _loadOptions = new Aspose.Slides.LoadOptions()
{
    BlobManagementOptions = new BlobManagementOptions
    {
        PresentationLockingBehavior = PresentationLockingBehavior.KeepLocked,
        IsTemporaryFilesAllowed = true,
        MaxBlobsBytesInMemory = 100 * 1024 * 1024
    }
};
using (var stream = new FileStream(ppt_path, FileMode.Open))
{
    Aspose.Slides.Presentation pres = null;
    try
    {
        pres = new Aspose.Slides.Presentation(stream, _loadOptions);
        Aspose.Slides.Export.SaveFormat ppt_file_aspose_format = GetPresFormat(ppt_path);
        pres.Save(ppt_out_path, ppt_file_aspose_format);
        Console.WriteLine("ok");
    }
    catch (Exception ex)
    {
        Console.WriteLine("ko");
    }
}

Win10/.net 4.7/Aspose.Slides 23.1

Thank you. Good evening.

@pcaillol,
Thank you for describing the issue. I am working on the issue and will get back to you as soon as possible.

@pcaillol,
I reproduced the problem with detecting the video frame from the ODP file.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-43836

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Unfortunately, I was unable to convert the ODP file to a corrupted PPTX file. We need more information on how to do this.

Please also note that the Presentation objects are disposable. You should use the pres.Dispose() method after using a Presentation object or use the using statement in your production code.

Hi Andrey
I always dispose the pres, code is just not present in sample :slight_smile:
Excuse-me for the “corruption” thing, it was my mistake !
Cheers

@pcaillol,
Thank you for the clarification.

The issues you found earlier (filed as SLIDESNET-43836) have been fixed in Aspose.Slides for .NET 23.4 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.