Looping a single file

*nix specific usage questions
aleph
New Cone
New Cone
Posts: 2
Joined: 14 Nov 2005 15:46

Looping a single file

Postby aleph » 29 Jan 2006 23:00

Hi guys,
I need to run VLC immediately after the system starts and make it play indefinitely a single video file.
I've seen that the --loop option only works with playlists; is there a way to loop a single file?
If not, how can I create a playlist from the command line?

Another project for the future: I'd like VLC to play (in loop) all the video content of a specific folder. I should be able to remotely add a video file to that folder and it should be automatically added to the playlist... is it possible? If yes, how?

Thank you all very much.

Aleph

h2g2bob
Blank Cone
Blank Cone
Posts: 46
Joined: 02 Oct 2005 13:09
Location: Exeter, UK

loopy

Postby h2g2bob » 02 Feb 2006 15:28

Just use a playlist with 1 item in it -
vlc --loop filename

Also just add a folder as a playlist item to add a whole folder
vlc '/mnt/c/my_music/'
vlc "C:\my music\"

As for dynamically looping whats in the folder, try this in bash / sh

Code: Select all

while echo; do \ for FNAME in *; do \ vlc "$FNAME" vlc:quit; \ done; \ done;


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 17 guests