Bug 93856 - FILESAVE: Videos copied from separate .PPTX files cause loss of one video
Summary: FILESAVE: Videos copied from separate .PPTX files cause loss of one video
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
5.0.0.5 release
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Media
  Show dependency treegraph
 
Reported: 2015-09-02 11:30 UTC by ravingdesi
Modified: 2023-05-21 18:04 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
First .PPTX with video (60.78 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2015-09-02 11:30 UTC, ravingdesi
Details
Second pptx with video (96.26 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2015-09-02 11:31 UTC, ravingdesi
Details
Screenshot of healthy file before saving and reopening (21.07 KB, image/png)
2015-09-02 11:31 UTC, ravingdesi
Details
Screenshot of corrupted file after reopening (33.22 KB, image/png)
2015-09-02 11:31 UTC, ravingdesi
Details
Resulting corrupted odp file (24.69 KB, application/vnd.oasis.opendocument.presentation)
2015-09-02 11:32 UTC, ravingdesi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ravingdesi 2015-09-02 11:30:16 UTC
Problem description: 
When copying over two media files from two separate .PPTX files into one odp presentation, only one of the videos is preserved when saving and reopening the file.

Some technical details I can provide: Powerpoint calls the media files media1.wmv and counts up on that number. When a presentation only contains one video, it is called media1.wmv. When having two videos in two different presentations, each is called media1.wmv. I assume that this name collision is causing the loss of one video file

Steps to reproduce:
1. Download the two presentations https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug19_1.pptx and https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug19_2.pptx
2. Open the two presentations in libreoffice
3. Create a new odp presentation.
4. Copy over the two video files into this new presentation using copy and paste
(At this point, everything is still fine) https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug19_1.png 
5. Save the presentation as odp
6. Close the presentation
7. Reopen the presentation, you can now clearly see that the first video was replaced by the second
https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug19_2.png

Current behavior:
When saving and reopening the file, one of the two videos is permanently lost.
https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug19_2.png

Expected behavior:
Both videos should be preserved. When there are two videos with the same name, one should be renamed unless there is reason to believe they are identical (e.g., matching md5 sum).
https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug19_1.png 

Thanks again for all your efforts.
Comment 1 ravingdesi 2015-09-02 11:30:44 UTC
Created attachment 118340 [details]
First .PPTX with video
Comment 2 ravingdesi 2015-09-02 11:31:01 UTC
Created attachment 118341 [details]
Second pptx with video
Comment 3 ravingdesi 2015-09-02 11:31:27 UTC
Created attachment 118343 [details]
Screenshot of healthy file before saving and reopening
Comment 4 ravingdesi 2015-09-02 11:31:49 UTC
Created attachment 118344 [details]
Screenshot of corrupted file after reopening
Comment 5 ravingdesi 2015-09-02 11:32:15 UTC
Created attachment 118345 [details]
Resulting corrupted odp file
Comment 6 Buovjaga 2015-09-14 13:44:15 UTC
True!

Win 7 Pro 64-bit, Version: 5.0.1.2 (32-bit)
Build ID: 81898c9f5c0d43f3473ba111d7b351050be20261
Locale: fi-FI (fi_FI)
Comment 7 QA Administrators 2016-09-20 10:32:23 UTC Comment hidden (obsolete)
Comment 8 ravingdesi 2016-10-03 10:22:13 UTC
Yes, the bug is still present.

This is the result obtained on LO 5.1.5.2 using Windows 10:
https://dl.dropboxusercontent.com/u/17406199/bugtmp/Bug19_2016.odp
One of the videos is still lost.
Comment 9 QA Administrators 2017-10-23 14:15:14 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2019-12-03 14:46:02 UTC Comment hidden (obsolete)
Comment 11 Xisco Faulí 2021-04-26 19:06:41 UTC
Still reproducible in

Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: d46f16bb3b1efbf8dc8835221e8e861de4364716
CPU threads: 4; OS: Linux 5.7; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 12 Timur 2022-04-05 12:58:58 UTC
Still in 7.4+.
There's also a regression with opening source PPTX, edit and presentation. Not with 4.2.0. Seen with LO 4.3 up to 7.4+ in Windows GDI and Skia, not Linux.