Page 1 of 1

Slide (JPG) duration

Posted: 22 May 2016 02:32
by Loonix
I have a playlist that starts with some JPGs, then has a couple of short MP4's (under 3 minutes each). I would like to make the slides display for a certain duration for each. So one slide will be 6 seconds, another 10 seconds, another slide 7, etc. I edited the playlist (XML) and changed the durations, but it made no difference, they all defaulted to 10 seconds (10000 mS- how to change that?). How do I make VLC respect the <duration> tags? Or, how do I change the duration for each slide (JPG)? How do I change the default duration?

In case it matters, I am running VLC on Windows 10 in this instance.

Re: Slide (JPG) duration

Posted: 22 May 2016 11:48
by mederi
xspf playlist

Code: Select all

<vlc:option>image-duration=6</vlc:option>

Re: Slide (JPG) duration

Posted: 22 May 2016 23:45
by Loonix
Thank you fro the suggestion, mederi. When I use lines like these: "<vlc:option>image-duration=6</vlc:option>", it won't load the playlist file at all. Putting them back to ones like these allows VLC to load the playlist again, albeit with the default duration of 10 seconds for each slide.

A sample line looks like this when it loads:
<track>
<location>file:///E:/3_JWorg_Help_03.jpg</location>
<duration>8000</duration>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>2</vlc:id>
</extension>
</track>

It fails to load like this:
<trackList>
<track>
<location>file:///E:/1_JWorg_Help_01.jpg</location>
<vlc:option>image-duration=6000</vlc:option>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:id>0</vlc:id>
</extension>
</track>

Re: Slide (JPG) duration

Posted: 22 May 2016 23:47
by Loonix
<vlc:option>image-duration=6</vlc:option> doesn't work, either (instead of 6000)

Re: Slide (JPG) duration

Posted: 23 May 2016 09:11
by Loonix
My bad- I found that placing the suggested line in the right place within <extension application=> worked! Thanks very much, medori.

Re: Slide (JPG) duration

Posted: 23 Nov 2016 19:15
by jboerst
I have the same question. How to edit the duration of a slide.
I am on a new MAC computer. I have tried Mederi suggestion to no avail.
Thanks for any help. jboerst

Re: Slide (JPG) duration

Posted: 23 Nov 2016 22:19
by jboerst
Finally figured it out.
Will work on my XML

Re: Slide (JPG) duration

Posted: 25 Oct 2018 08:03
by scifenefics
What Loonix means for future trouble shooters is that to put it between <extension application=> and </extension>. So the final working code looks like the below:


<track>
<location>file:///D:/images/6S-max-1min.jpeg</location>
<extension application="http://www.videolan.org/vlc/playlist/0">
<vlc:option>image-duration=6</vlc:option>
<vlc:id>0</vlc:id>
</extension>
</track>