Bug 151514 - Sounds attached to Impress slides are shortened during presentation if MP3 audio quality is low
Summary: Sounds attached to Impress slides are shortened during presentation if MP3 au...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.3.6.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-13 19:31 UTC by David F Smith
Modified: 2024-04-16 15:06 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example Impress presentation with three slides, demonstrating the problem. (568.46 KB, application/vnd.oasis.opendocument.presentation)
2022-10-13 19:40 UTC, David F Smith
Details
Great Kiskadee sound, best quality (220-260 kbps) (326.62 KB, audio/mpeg)
2022-10-13 19:41 UTC, David F Smith
Details
Great Kiskadee sound, medium quality (80-120 kbps) (176.11 KB, audio/mpeg)
2022-10-13 19:42 UTC, David F Smith
Details
Great Kiskadee sound, low quality (45-85 kbps) (133.27 KB, audio/mpeg)
2022-10-13 19:42 UTC, David F Smith
Details
Screenshot of my audio codecs, as of 17-Apr-2023 (Windows 10) (67.11 KB, image/jpeg)
2023-04-17 13:40 UTC, David F Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David F Smith 2022-10-13 19:31:04 UTC
Description:
I often attach an MP3 audio file of a bird singing to a photo of the bird in an Impress slide.  But I have noticed that sometimes the audio file is shortened (i.e., does not play completely) during the presentation.  This problem seems to relate to the audio quality (bit rate in kbps) of the MP3 file.
(Audio quality: I edit my audio files in Audacity and then export them to MP3.  Audacity offers options for audio quality of the variable bit rate files, expressed as ranges of kilobits per second.  The lowest quality, 45-85 kbps, generates the smallest files.  Although those files play to full length in a Windows audio player, they are shortened to a little more than half of their actual length during an Impress presentation.)
I will provide an example presentation that illustrates the problem, along with three audio files.

(I have duplicated the behavior on two different Windows computers.)

Steps to Reproduce:
1. In a new Impress presentation, add a slide and insert an image.  (Probably not necessary to show bug, but it's what I do.)
2. Add a text box to the slide.  Add a Custom Animation effect to the text box.  Choose animation effect, start, duration, and delay, as desired.  On Effect Options, choose a sound file with high, medium, or low audio quality.  (See attachments for the files I tested.)
3. Start the presentation.  Note the length of the sound when it plays.
4. If desired, add other slides with different quality sound files.

Actual Results:
Sound files with "best quality" (e.g., 220-260 kbps as stored from Audacity) play completely in an Impress presentation.  Sound files with low quality (e.g., 45-85 kbps) are significantly shortened: 8.3 seconds rather than the full 12 seconds in my test.

Expected Results:
Impress should play sound files in full (as Windows Media Player does), regardless of the audio quality.


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.3.6.2 (x64) / LibreOffice Community
Build ID: c28ca90fd6e1a19e189fc16c05f8f8924961e12e
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 1 David F Smith 2022-10-13 19:40:03 UTC
Created attachment 183021 [details]
Example Impress presentation with three slides, demonstrating the problem.

The three photographs in this presentation (Great Kiskadee) have attached sound files, each 12 seconds long with five songs of the Great Kiskadee.  Details and results:
Quality       "Lame VBR quality"  Impress plays
220-260 kbps      0               All five songs (12.0 sec)
80-120 kbps       7               First four songs and one note of fifth (~11.3 sec)
45-85 kbps        9               First three songs (~8.3 sec)

"Lame VBR quality" is as displayed by Exiftool.  There are other parameters that differ between the files.

The three audio files are attached separately.
Comment 2 David F Smith 2022-10-13 19:41:03 UTC
Created attachment 183023 [details]
Great Kiskadee sound, best quality (220-260 kbps)
Comment 3 David F Smith 2022-10-13 19:42:08 UTC
Created attachment 183024 [details]
Great Kiskadee sound, medium quality (80-120 kbps)
Comment 4 David F Smith 2022-10-13 19:42:53 UTC
Created attachment 183025 [details]
Great Kiskadee sound, low quality (45-85 kbps)
Comment 5 Buovjaga 2023-02-24 15:33:59 UTC
No sounds play for me in the attached presentation. Testing with the low quality (45-85 kbps) file, it plays fully for me after I insert it into Impress.

On Windows, I have these codecs: https://github.com/Nevcairiel/LAVFilters/releases

Do you still see this issue with 7.5? If so, which codecs do you have and do those LAV Filters help?

Set to NEEDINFO.
Change back to UNCONFIRMED, if the problem persists. Change to RESOLVED WORKSFORME, if the problem went away.

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: ab20dba30769a5a52830220daa347772485db6a2
CPU threads: 2; OS: Windows 10.0 Build 22621; UI render: Skia/Raster; VCL: win
Locale: en-US (en_FI); UI: en-US
Calc: threaded

Arch Linux 64-bit, X11
Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f12e547c42103a3b934b393b6b63c2b096bbd06e
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 24 February 2023
Comment 6 David F Smith 2023-04-17 00:07:25 UTC
Buovjaga, I apologize for the delay.  I'm getting ready for a presentation, so I would rather not upgrade to 7.5 yet.  I'll answer your questions when I have a chance to upgrade.
Comment 7 QA Administrators 2023-04-17 03:20:23 UTC Comment hidden (obsolete)
Comment 8 Buovjaga 2023-04-17 05:45:33 UTC
(In reply to David F Smith from comment #6)
> Buovjaga, I apologize for the delay.  I'm getting ready for a presentation,
> so I would rather not upgrade to 7.5 yet.  I'll answer your questions when I
> have a chance to upgrade.

I would still like to know about the codecs you use. Normally it is always about them and not LibreOffice itself.
Comment 9 David F Smith 2023-04-17 13:40:54 UTC
Created attachment 186727 [details]
Screenshot of my audio codecs, as of 17-Apr-2023 (Windows 10)

In answer to buovjaga's question in comment 8
Comment 10 David F Smith 2023-04-17 13:44:59 UTC
(My understanding of codecs is rudimentary.  I (re)install the KLite pack when I think there is a need to.  I have just posted here a screenshot of the currently installed list of audio codecs.)

For what it's worth, the behavior I see on this issue is still exactly the same as in my original report.  I currently have the following:
Version: 7.4.6.2 (x64) / LibreOffice Community
Build ID: 5b1f5509c2decdade7fda905e3e1429a67acd63d
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
Comment 11 Buovjaga 2023-04-17 13:45:11 UTC
(In reply to David F Smith from comment #9)
> Created attachment 186727 [details]
> Screenshot of my audio codecs, as of 17-Apr-2023 (Windows 10)
> 
> In answer to buovjaga's question in comment 8

Ok, I recommend to try LAV Filters like I explained in comment 5
Comment 12 Stéphane Guillou (stragu) 2023-10-18 21:08:18 UTC
David, were you able to test again with version 7.5 or 7.6, and with the codecs recommended by Buovjaga?
Comment 13 QA Administrators 2024-04-16 03:16:16 UTC Comment hidden (obsolete)
Comment 14 David F Smith 2024-04-16 15:06:37 UTC
Apologies for my delayed response, and thanks for the nudge.
I upgraded LibreOffice:
Version: 7.6.6.3 (X86_64) / LibreOffice Community
Build ID: d97b2716a9a4a2ce1391dee1765565ea469b0ae7
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Then I ran my test presentation again, with the same incorrect behavior as in my Comment 1.

Then, at Buovjaga's suggestion, I downloaded and installed LAVFilters 0.79.2 from https://github.com/Nevcairiel/LAVFilters/releases and restarted LibreOffice.  Now my test presentation works correctly: all three of the sound files play completely.

I am even more ignorant of all things Codec than I thought I was, because I don't know how to verify that what I installed (Codecs? Filters?) is actually being used.  But regardless, the behavior of my attached sounds is now correct, so I'm happy.  Thanks to all, especially Buovjaga.