Hey Andrey, this is me again !
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.