LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2003, 07:30 AM   #1
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Question 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
 
Old 06-02-2003, 07:38 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
 
Old 06-02-2003, 07:40 AM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 06-02-2003, 08:50 AM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Original Poster
Rep: Reputation: 64
Thumbs up 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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
Simple mplayer question Mega Man X Linux - Software 6 01-06-2004 10:19 PM
give it to me simple..mplayer... rab62184 Mandriva 12 11-13-2003 03:31 AM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 05:08 AM


All times are GMT -5. The time now is 02:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration