1

Vlc provide documents in which there are lots of command are given to control vlc from command line. Here is the link of documentation. Now in my task, I need to run a video in a loop, for this I am using this command

vlc --fullscreen --loop t.mp4

where t.mp4 is my video.This is working fine.Now on some particular input I have to run some another video, for this I am again using this command

vlc --fullscreen t1.mp4

Now the problem is, after completing this video I want to run previous video. For this somehow I need to know my current video is completed. For this please tell me the command through which I can know the completion of vlc video.

1 Answer 1

1

In your link the first example:

"vlc file1.mpg :fullscreen file2.mpg"

performs what you need. I mean something like this:

vlc t.mp4 :fullscreen :loop t1.mp4 :fullscreen t.mp4 :fullscreen :loop

If you need to be sure that "vlc" process has finished (not just movie) you may do the folloving:

ps ax | grep -v grep| grep "vlc t.mp4" || vlc t.mp4 :fullscreen :loop

This means that if no (||) "vlc t.mp4" string in the process list (ps ax) then start vlc t.mp4.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.