Bug 168477 - [FILEOPEN PPTX] video loop setting repeatCount="indefinite" ignored on import
Summary: [FILEOPEN PPTX] video loop setting repeatCount="indefinite" ignored on import
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Media
  Show dependency treegraph
 
Reported: 2025-09-19 12:59 UTC by Pablo
Modified: 2026-01-22 17:31 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
PPTX with video loop (335.25 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2025-09-19 12:59 UTC, Pablo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pablo 2025-09-19 12:59:16 UTC
Description:
The attached PPTX has a video with 'Loop until stopped' setting checked in PowerPoint.
The video doesn't loop in Impress.

Steps to Reproduce:
1. Import the attached PPTX to Impress.
2. Start the presentation.
3. Watch the video.

Actual Results:
The video plays once.
In the Media Playback panel in Impress the Repeat button is not pressed.

Expected Results:
The video should loop until stopped.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 25.8.1.1 (X86_64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 2; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: threaded
Comment 1 Pablo 2025-09-19 12:59:47 UTC
Created attachment 202905 [details]
PPTX with video loop
Comment 2 m_a_riosv 2025-09-19 21:37:26 UTC
Does not work for me with
Microsoft® PowerPoint® para Microsoft 365 MSO (versión 2508 compilación 16.0.19127.20192) de 64 bits
Comment 3 Buovjaga 2026-01-20 17:00:38 UTC
If the claim about looping was true, we should find an element like

<p:showPr loop="1">

within the ppt/presProps.xml inside the .pptx file. However, I can't find any p:showPr element when searching through the extracted files with

find . -name '*.xml' -exec grep -i --color=always 'showPr' {} +

Nor do I find any hit for loop.

The loop attribute is discussed here: https://stackoverflow.com/questions/77327048/python-pptx-module-setting-presentation-to-loop-until-escape

Documentation in dotnet API: https://learn.microsoft.com/en-us/dotnet/api/documentformat.openxml.linq.nonamespace.loop

So per this and Miguel's testing, I think we can close as this seems to be a mistake.
Comment 4 Pablo 2026-01-20 17:14:49 UTC
Did you try to play the video in PowerPoint and compare it to Impress? In PowerPoint the video loops while in Impress it doesn't.

slide1.xml has the following <p:video> element. Notice the repeatCount="indefinite" attribute:

<p:video>
    <p:cMediaNode vol="80000">
        <p:cTn id="7" repeatCount="indefinite" fill="hold" display="0">
            <p:stCondLst>
                <p:cond delay="indefinite"/>
            </p:stCondLst>
        </p:cTn>
        <p:tgtEl>
            <p:spTgt spid="5"/>
        </p:tgtEl>
    </p:cMediaNode>
</p:video>
Comment 5 Buovjaga 2026-01-20 18:27:16 UTC
Ah, I missed that repeatCount. What I see in office.com is that the video does not play automatically. If I click play, it loops. As online Office is different than desktop, I guess it could explain why it didn't loop for Miguel.

Now I notice bug 149969 which is dealing with repeatCount. If I open attachment 202905 [details] in 7.5, which the fix for bug 149969 went into, the video does not loop. So the fix did not affect this particular file. It's the same behaviour in oldest of win64-7.4 repo as well.

Let's ask Miklós, if he has ideas about why our import code is not picking up this particular XML structure.
Comment 6 Miklos Vajna 2026-01-22 08:25:36 UTC
Hm, that other bug was about handling the "loop" from an animation on the media shape, and this looks like something directly on the video shape?

If so, that may be a starting point for parallel debugging. Unfortunately I don't have other ideas off the top of my head.