Description: ppt/pptx files do not play audio through LO Impress. Perhaps the fact is that absolute paths are written in ppt/slides/_rels. It seems that MSO, if the file is not found in the specified path, tries to call it from the folder in which the presentation is located Steps to Reproduce: 1. Open the ppt/pptx file through LO Impress. 2. Run demo 3. Make sure that the sound that was in the presentation is not played Actual Results: There is no sound in the presentation Expected Results: Audio in presentation plays Reproducible: Always User Profile Reset: No Additional Info:
Created attachment 191215 [details] No sound in pptx file opened in LO Impress
I think I have a similar issue, but it occurs just after saving the file and reopening it. Before saving the file, the audio duration is correct, and I can play it without any issues. However, after saving and reopening the file, the duration becomes 0, and I am unable to play the audio.
Created attachment 191230 [details] Before-After-Comparison
Dev build: Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 4cf8de89bad9143a5b2dd3d6351080bf62b76029 CPU threads: 8; OS: macOS 13.2.1; UI render: default; VCL: osx Locale: en-US (en_VN.UTF-8); UI: en-US Calc: threaded Production Build: Version: 7.6.3.2 (X86_64) / LibreOffice Community Build ID: 29d686fea9f6705b262d369fede658f824154cc0 CPU threads: 8; OS: Mac OS X 13.2.1; UI render: Skia/Raster; VCL: osx Locale: en-US (en_VN.UTF-8); UI: en-US Calc: threaded
(In reply to ToanTran from comment #2) > I think I have a similar issue, but it occurs just after saving the file and > reopening it. > > Before saving the file, the audio duration is correct, and I can play it > without any issues. However, after saving and reopening the file, the > duration becomes 0, and I am unable to play the audio. Can't reproduce the error with: Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 1f31cfc305224d3494da1b4eeadbe56b7227bb38 CPU threads: 12; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: ru-RU (ru_RU.UTF-8); UI: en-US Calc: CL threaded Steps we took: 1. Open Impress 2. Insert an audio file by moving it from the folder to the LO window 3. Save the file in PPTX format 4. Close Impress 5. Open a saved presentation Once reopened, the audio plays. Have you taken any additional actions that are not included in this list? Also, did you make any moves of the audio file or presentation to other directories before opening it again? The bug described in this report occurs for pptx (including those created directly in LO) only if the media file was not found in the absolute path specified in ppt/slides/_rels/*.xml.rels. Based on this, there may be another reason for your bug, so we need to determine which steps lead to this behavior.
(In reply to Vladislav Tarakanov from comment #5) > (In reply to ToanTran from comment #2) > > I think I have a similar issue, but it occurs just after saving the file and > > reopening it. > > > > Before saving the file, the audio duration is correct, and I can play it > > without any issues. However, after saving and reopening the file, the > > duration becomes 0, and I am unable to play the audio. > > Can't reproduce the error with: > Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community > Build ID: 1f31cfc305224d3494da1b4eeadbe56b7227bb38 > CPU threads: 12; OS: Linux 6.1; UI render: default; VCL: gtk3 > Locale: ru-RU (ru_RU.UTF-8); UI: en-US > Calc: CL threaded > > Steps we took: > 1. Open Impress > 2. Insert an audio file by moving it from the folder to the LO window > 3. Save the file in PPTX format > 4. Close Impress > 5. Open a saved presentation > > Once reopened, the audio plays. Have you taken any additional actions that > are not included in this list? Also, did you make any moves of the audio > file or presentation to other directories before opening it again? > > The bug described in this report occurs for pptx (including those created > directly in LO) only if the media file was not found in the absolute path > specified in ppt/slides/_rels/*.xml.rels. Based on this, there may be > another reason for your bug, so we need to determine which steps lead to > this behavior. Could you please attempt to insert the audio file using the menu option "Insert >> Audio or Video"? I tried using this method, and the issue persisted even when I saved the PPTX file in the same folder as the audio: 1. Open Impress and create a new presentation. 2. Navigate to the "Insert >> Audio or Video" menu. 3. Choose an audio file. Note that at this point, the audio file plays normally. 4. Save the PPT file in the same folder as the inserted audio file. 5. Close the PPT file and reopen it. 6. Attempt to play the audio. Observe that the audio is not played. Please see the attached video `Way 2 - Insert` for more details
Sorry, the videos are too large, so I couldn't attached it to the issue, Please check them here: Use the "Insert Audio or Video" menu - the issue will happen: https://drive.google.com/file/d/1Fh3BJhHdjhAc8EhtEnB8TuxjGnPBuhNO/view?usp=sharing Insert audio by "Drag and Drop": https://drive.google.com/file/d/1g_mgHZyRiDxKcdHfNqqt1yOUufribgmo/view?usp=sharing
Created attachment 191232 [details] Trying to reproduce on 24.2.0.0.alpha1+
Also, not reproduce with: Version: 7.6.2.1 (X86_64) / LibreOffice Community Build ID: 60(Build:1) CPU threads: 12; OS: Linux 6.1; UI render: default; VCL: gtk3_kde5 Locale: ru-RU (ru_RU.UTF-8); UI: ru-RU Calc: CL threaded
Checked on Windows: Version: 7.6.3.2 (X86_64) / LibreOffice Community Build ID: 29d686fea9f6705b262d369fede658f824154cc0 CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: ru-RU (ru_RU); UI: ru-RU Calc: threaded The problem is not reproduced here either. Can you check the bug on another OS? Maybe the bug can only be reproduced on macOS
(In reply to Vladislav Tarakanov from comment #10) > Checked on Windows: > Version: 7.6.3.2 (X86_64) / LibreOffice Community > Build ID: 29d686fea9f6705b262d369fede658f824154cc0 > CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: > win > Locale: ru-RU (ru_RU); UI: ru-RU > Calc: threaded > > The problem is not reproduced here either. Can you check the bug on another > OS? Maybe the bug can only be reproduced on macOS Ah, do you see the popup that says "This document may contain formatting or content that cannot be saved in the currently selected file format PowerPoint 2007-365"? It looks like if I saved the file in ODF format, it would work fine
Created attachment 191240 [details] Confirm Popup
A similar pop-up window appeared on both Windows and Linux. If I'm not mistaken, it always appears when you try to save in a format other than odp. In the attached video with a test on 24.2.0.0.alpha1+ you can see the same window, but despite this, the sound is still played after opening the file again. So far it looks like the problem is only affecting macOS and only when adding an audio file via "Insert -> Audio or Video" (not DnD), so it would be good if you tried to reproduce this on another operating system and also check saving with the format ODP
Toan can report a new bug. I think this needs opinions from developers before we can confirm.
(In reply to Buovjaga from comment #14) > Toan can report a new bug. > > I think this needs opinions from developers before we can confirm. I can confirm that: - PP 2010 can play the sound when the slideshow is started - Impress recent master can not play the sound even in edit mode, when I press play on the Media sidebar. This is under Linux, to make sure this is not a duplicate of that Windows media integration bug. - If I insert the example mp3 in the same file with Insert - Sound or video and press play on the Media sidebar, the sound can be heard; also works after starting the presentation. Version: 24.2.0.0.alpha1+ (X86_64) / LibreOffice Community Build ID: 0f82e9d42822e627edd1fb3b3c87e1f8a22136a4 CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: hu-HU (hu_HU.UTF-8); UI: en-US Calc: threaded slide1.xml contains this: <p:nvPicPr> <p:cNvPr id="4" name="LibreOffice-7.6-New-Features.mp3"> <a:hlinkClick r:id="" action="ppaction://media"/> </p:cNvPr> <p:cNvPicPr> <a:picLocks noRot="1" noChangeAspect="1"/> </p:cNvPicPr> <p:nvPr> <a:audioFile r:link="rId1"/> </p:nvPr> </p:nvPicPr> while the _rels/slide1.xml.rels has this: <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/audio" Target="file:///D:\LibreOffice-7.6-New-Features.mp3" TargetMode="External"/>
Sent a patch to fix the problem for the slideshow: https://gerrit.libreoffice.org/c/core/+/164023
(In reply to Vladislav Tarakanov from comment #16) > Sent a patch to fix the problem for the slideshow: > https://gerrit.libreoffice.org/c/core/+/164023 Patch solves the issue for me on Ubuntu 22.04 with gstreamer 1.20.3
Vladislav Tarakanov committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/fe897b36aef28dfe175461c43614e22588fcfd84 tdf#158510 Launch media from a presentation dir path It will be available in 25.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Vladislav Tarakanov committed a patch related to this issue. It has been pushed to "libreoffice-24-8": https://git.libreoffice.org/core/commit/d875b5acdd50588d0d570890bd7eef6abb208199 tdf#158510 Launch media from a presentation dir path It will be available in 24.8.0.2. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Vladislav Tarakanov committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c658efe24f7a7eb4234c1c64668ea115788272e7 tdf#158510 Don't change the initial URL when using fallback It will be available in 25.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Vladislav Tarakanov committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/134fb4747a80726e808909e6a2d2c9aa950bd6d1 tdf#158510 Added fallback for media files in MediaWindowImpl It will be available in 25.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "libreoffice-24-8": https://git.libreoffice.org/core/commit/4bee213c000e9775101d7bb95fd36d98e8d982e6 Revert "tdf#158510 Launch media from a presentation dir path" (24.8 only) It will be available in 24.8.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.