LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   repeat mode in mplayer (https://www.linuxquestions.org/questions/linux-software-2/repeat-mode-in-mplayer-337507/)

msound 06-26-2005 11:48 PM

repeat mode in mplayer
 
I've done a million google searches for this but i dont understand what the result pages are saying. How do i configure mplayer to repeat playback? thanks.

acid_kewpie 06-27-2005 02:49 AM

use the -loop option

sudhasmyle 06-27-2005 04:08 AM

HI,
You can use -l option or press the space bar key at the end.

The best solution is configure with GUI mode while installing then you can do it simply just check the loop option.

msound 06-27-2005 06:58 AM

could either of you tell me where to find this loop option? are you saying i have to recompile mplayer in order to get the loop playback feature?

msound 06-27-2005 02:56 PM

bump

kencaz 06-27-2005 03:20 PM

You can involk loop from the command line with either "mplayer" or "gmplayer"

mplayer -loop 3 ~/my_video.mpg
gmplayer -loop 3 ~/my_video.mpg

3=number of times to loop

You can also use "PgDown" to restart current video playing manually. You could probably add the loop option in the mplayer.conf file but not sure if it would work. Probably better to just start manually from command line or make a script.

KC

soupy 08-02-2005 06:31 AM

loop playback
 
ok, i had to post a reply, because i've just tried the -loop option. i rtfm'd and thought i should be able to just add the line:

-loop 0

to the config file in ~/.mplayer but every time i try ti run mplayer with this in the config file, i get the error msg:

Option -loop needs a parameter at line 2

dunno what this means or how to fix it, but as cool as mplayer is, i'm sure there's a way to get it to loop playback, there's just gotta be.

kencaz 08-02-2005 12:58 PM

The only parameter -loop has in a number...

mplayer -loop 0 my_file.mp3

works fine and play's my_file continuous, however, it may be an option that mplayer will not use in the config file because it, (loop), may be looking for a filename before mplayer passes it...

You may be able to pass the -loop 0 option to a playlist, however, this would do basically the same thing...

KC

sekhonp 12-05-2005 02:22 PM

looping and always on top
 
Here's what does the job in my /etc/mplayer/mplayer.conf

ontop="1"
loop="0"


All times are GMT -5. The time now is 08:29 AM.