LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do you make MPlayer with shuffle and loop 0? (https://www.linuxquestions.org/questions/linux-software-2/how-do-you-make-mplayer-with-shuffle-and-loop-0-a-4175424274/)

JackL92 08-27-2012 03:48 PM

How do you make MPlayer with shuffle and loop 0?
 
Currently I am start my mplayer with the following command:
Code:

mplayer -playlist playlist -loop 0
and it works fine.

However, if I use
Code:

mplayer -playlist playlist -loop 0 -shuffle
My songs will play in a random order, but the loop does not work anymore. The player will stop when it play all the songs from the playlist.

Is there anyway to make MPlayer shuffle and also loop forever? Thank you for helping!

Syst: CentOS 6.x x86_64

SharpyWarpy 08-28-2012 09:38 PM

Quote:

Originally Posted by JackL92 (Post 4765695)
Currently I am start my mplayer with the following command:
Code:

mplayer -playlist playlist -loop 0
and it works fine.

However, if I use
Code:

mplayer -playlist playlist -loop 0 -shuffle
My songs will play in a random order, but the loop does not work anymore. The player will stop when it play all the songs from the playlist.

Is there anyway to make MPlayer shuffle and also loop forever? Thank you for helping!

Syst: CentOS 6.x x86_64

This:
Code:

mplayer -loop 0 -shuffle $(cat your_playlist.m3u)
seems to work.

JackL92 08-29-2012 12:11 AM

Quote:

Originally Posted by SharpyWarpy (Post 4766958)
This:
Code:

mplayer -loop 0 -shuffle $(cat your_playlist.m3u)
seems to work.

Let me give it a try! I will give you a reply tomorrow!
Thank you so much!

EDIT: Confirmed, it works fine, as what I wanted to. Thank you again! Problem Solved!


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