Ask Your Question
0

Calculate total duration of an impress presentation

asked 2016-01-14 03:12:44 +0200

thiago gravatar image

updated 2016-03-10 23:27:37 +0200

Alex Kemp gravatar image

Hello guys,

Is there any way to I calculate the total duration of my presentation? Maybe reading the metadata from my .odp file and using some script.

I need this to kill the process after my presentation ends. I didn't found another way to just start my presentation from terminal, show all slides and close the presentation.

If you know another way to do this please tell me :) I'm just beginning in the free software world.

I'm using LibreOffice 4.2.8.2 420m0(Build:2) In a Elementary OS

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2016-09-28 13:47:12 +0200

ax5 gravatar image

In the content.xml that is inside the .odp (you can use unzip to extract it) there is a tag telling the duration of slides for each style. In the following example it is 876 (with PT before and S after):

<style:style style:name="dp3" style:family="drawing-page"><style:drawing-page-properties presentation:transition-type="automatic" presentation:duration="PT876S" presentation:background-visible="true" presentation:background-objects-visible="true" presentation:display-footer="false" presentation:display-page-number="true" presentation:display-date-time="false" smil:type="zoom" smil:subtype="rotateIn"/></style:style>

If your presentation have only one slide style, you can probably make a simple script to get that number and multiply by the number of slides (i think it is the number of times the string <draw:frame appears). If more than one slide styles, the parsing would be harder, as you will need to know how many slides use each style.

edit flag offensive delete link more
0

answered 2016-09-29 08:47:20 +0200

pierre-yves samyn gravatar image

Hi

The Presenter Console gives you the total duration of a presentation.

In your case, it seems safer to interrupt the presentation after projection of a number of slides (which you determine).

The LimitPresentation.odp attached includes 3 slides. It is set to be screened in a loop. The addListener macro starts the Slideshow and ends after projection of 6 slides.

Just change the value of NbMax constant in the beginning of the procedure according to you needs.

Regards

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-01-14 03:12:44 +0200

Seen: 308 times

Last updated: Sep 29 '16