LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Mplayer simple question (https://www.linuxquestions.org/questions/linux-software-2/mplayer-simple-question-63174/)

Mega Man X 06-02-2003 06:30 AM

Mplayer simple question
 
Hi!!!

I've been using mplayer for a while now and I still have a question that I did not find (or accidentally skipped) from it's docs :)

Is there any "auto-loop", "loop" or "repeat" or any similar function to use at command line? Those similar to any other player when, after the file playing ends, repeats, instead of closing the application.

Also, is it possible to open multiples files at the command line?

Any help would be great

thanks

acid_kewpie 06-02-2003 06:38 AM

yeah that's easy, mplayer actually has a basic structured playlist, which can contain internal loops etc... e.g. play these two 3 times, then play this one.... all in the docs. playing multiple files without structure is even eaiser, just stick them all on the command line.

MasterC 06-02-2003 06:40 AM

Just as Chris said, I'm simply quoting the docs:
Quote:

MPlayer utilizes a complex playtree. It consists of global options written as first (for example mplayer -vfm 5), and options written after filenames, that apply only to the given filename/URL/whatever (for example mplayer -vfm 5 movie1.avi movie2.avi -vfm 4).
You can group filenames/URLs together using { and }. It's useful with option -loop: mplayer { 1.avi -loop 2 2.avi } -loop 3 will play files in this order: 1 1 2 1 1 2 1 1 2
Cool

Mega Man X 06-02-2003 07:50 AM

Got it
 
Thanks acid_kewpie and MasterC that worked :) It took a while for me to understand the maths above (yeah, I've failed twice at maths) but it's simply to set a number after the play file as

mplayer movie1.avi -loop 200

That would repeat movie1 for 200 times :)

Thanks


All times are GMT -5. The time now is 01:56 PM.