Bug 139975 - FILESAVE PPTX Slide containing mpg video generates invalid file error in PP
Summary: FILESAVE PPTX Slide containing mpg video generates invalid file error in PP
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pptx
Depends on:
Blocks: PPTX-Corrupted
  Show dependency treegraph
 
Reported: 2021-01-28 15:20 UTC by NISZ LibreOffice Team
Modified: 2022-04-27 09:22 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from PowerPoint (5.45 MB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2021-01-28 15:20 UTC, NISZ LibreOffice Team
Details
The example file saved by Impress (5.29 MB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2021-01-28 15:20 UTC, NISZ LibreOffice Team
Details
Screenshot of the exported document in PowerPoint (25.72 KB, image/png)
2021-01-28 15:21 UTC, NISZ LibreOffice Team
Details
Example file resaved in PowerPoint (4.28 MB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2022-04-05 11:55 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2021-01-28 15:20:12 UTC
Created attachment 169242 [details]
Example file from PowerPoint

Attached document is minimized from bug #128821
It contains a simple mpg video file, which can be played fine.
Saving the document to PPTX and opening in PowerPoint however gives an “invalid contents” error and choosing to fix it removes the video file.

Steps to reproduce:
    1. Open attached file in Impress
    2. Save as PPTX
    3. Open it in PowerPoint

Actual results:
Invalid contents error.

Expected results:
No error on file open.

LibreOffice details:
Version: 7.2.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 7eb289c49cc7245ef3001a39be0c15d06bbe875b
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL

Also happens in older releases: 6.0, 5.0, 4.0, 3.5
Comment 1 NISZ LibreOffice Team 2021-01-28 15:20:55 UTC
Created attachment 169243 [details]
The example file saved by Impress
Comment 2 NISZ LibreOffice Team 2021-01-28 15:21:26 UTC
Created attachment 169244 [details]
Screenshot of the exported document in PowerPoint
Comment 3 Miklos Vajna 2021-01-28 15:54:19 UTC
Is this a matter of handling the .mpg extension in oox/ on export? See 56f26399df894d05f24874a3cdc90694158e03bc that fixed this for m4a. If so, that would be easy to fix.
Comment 4 raal 2021-12-05 18:02:40 UTC
Confirm with Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: ba7db98cca3d8516697c94ef0d6af27db9e1655e
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded
Comment 5 Gabor Kelemen (allotropia) 2022-03-30 12:11:32 UTC
(In reply to Miklos Vajna from comment #3)
> Is this a matter of handling the .mpg extension in oox/ on export? See
> 56f26399df894d05f24874a3cdc90694158e03bc that fixed this for m4a. If so,
> that would be easy to fix.

Not really, the file itself is written correctly in the pptx and Impress can play it back too. Only PP finds some incorrect markup and throws the video out when repairing.

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a3988b2d147a2442b348d58b79dbd6e71472b7af
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded Jumbo
Comment 6 Timur 2022-04-05 11:55:03 UTC
Created attachment 179325 [details]
Example file resaved in PowerPoint

Yes and.. 
When example PPTX is opened in PP it finds legacy video in it and upgrades it and converts video. Here is PPTX resaved in MSO. It opens and saves OK in LO. 
Original PPTX still not saved correctly, Repair in MSO.
Comment 7 Gabor Kelemen (allotropia) 2022-04-27 09:22:02 UTC
Still a problem in

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3a05acb8f0d94728ea6cbfd7a69dac6ffa7ffc68
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded Jumbo

even after bug 53970 was fixed.