Page 1 of 1

Last element of playlist loop

Posted: 26 May 2008 23:00
by crimson69666
Hi!

I'm trying to find a way of looping the last element of a playlist. I tried about everything without any luck.

Is there a way to achieve that?

Eample:
======
media1.mpg <=== Play 1 time
media2.mpg <=== Play 1 time
media3.mpg <=== Loop the last

I tried with XPSF <loop> media3.mpg </loop> but VLC simply stop to play when it reaches this part.

Thanks!

Crimson69666

Re: Last element of playlist loop

Posted: 27 May 2008 04:30
by crimson69666
Correction: i tried XSPF playlist (sorry for typo).

Googling around, i saw some people asking last year to add <loop> </loop> to XSPF. I would be
so cool if VLC would be able to correctly interpret this ! Have the "loop" command acting
globally won't cut it for us.

The idea is to play the content of a playlist and loop on the last item listed inside the playlist.

At the right time, we'd connect remotely by telnet and launch another playlist with the same idea: the
last element of the playlist would be played in loop.

We already have the Windows PC auto-logging and the shell is now VLC (instead of Windows Explorer) so
change of video files are smooth instead of window blinks when using the explorer shell.

Re: Last element of playlist loop

Posted: 01 Mar 2012 20:22
by metafaniel
This question was made several years ago...
Almost 4 years later I repeat the same question: Is it possible to loop a single track in the XSPF playlist??
In therms of a pause we can do it in a xspf playlist as follows:

Code: Select all

<track> <location>vlc://pause:10</location> <extension application="http://www.videolan.org/vlc/playlist/0"> <vlc:id>1</vlc:id> </extension> </track>
Simple! Powerful!
Is there something similar to loop a track???
With CLI VLC it is possible to loop a given number of times:

Code: Select all

cvlc Example.mp4 :input-repeat=3
So I think it can be done using a XSPF playlist.

Please someone enlight me with wisdom and knowledge to accomplish this task!

Thanks in advance.

Re: Last element of playlist loop

Posted: 02 Mar 2012 19:33
by VLC_help
.bat playlist might work in theory with :repeat before the last item, but I ain't sure.