LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 04-23-2010, 11:33 AM   #1
danpaluska
LQ Newbie
 
Registered: Dec 2009
Location: new york city and sometimes boston and hopefully sometime somewhere warmer
Distribution: i'm trying to remain agnostic. but fedora and ubuntu so far.
Posts: 20

Rep: Reputation: 0
mplayer: load a directory of movies, play on repeat shuffle fullscreen?


mplayer (or other movie player)

1. load all the movies in a directory.
2. put in repeat, shuffle and fullscreen mode.
3. auto-update daily as more movies are added to directory.

is this possible to do from the command line?

i have a directory of movies that gets movies auto added to it on a daily basis and i want the mplayer to either 1. add these movies to the playlist or 2. close itself and restart with all the movies from the given directory.

thanks,
d
 
Old 04-25-2010, 04:10 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
1. Mplayer supports playlists. Just use 'find' and output all files to a plain text file or use something like "/path/to/files/*.extension".
2. Shuffle is "-shuffle" and fullscreen mode is "-fs".
3. Recreate the playlist using a cronjob then restart mplayer or use something like inotify to trigger restarts.
* Except for the cronjob/incron script, reading the manual should have gotten you most of it in about 10 secs.
 
1 members found this post helpful.
Old 06-08-2010, 06:48 PM   #3
danpaluska
LQ Newbie
 
Registered: Dec 2009
Location: new york city and sometimes boston and hopefully sometime somewhere warmer
Distribution: i'm trying to remain agnostic. but fedora and ubuntu so far.
Posts: 20

Original Poster
Rep: Reputation: 0
yes, i admit it was rather poor research on my part.

for reference this is what i'm currently doing.
i made a shell script called
videoloop.sh

it looks like this.
Code:
#! /bin/bash

while [ 1 ]
do
mplayer -fs -shuffle /home/timelapse/Videos/*.mp4

sleep 2 
# sleep line is so if i break out of this with esc key. 
# i have a couple seconds to hit ctl-c before it starts mplayer again
done
so each time mplayer finishes the playlist, it grabs all the files from the directory and starts again.


this is the installation i'm using it for.
although this movie was taken slightly before i implemented the bash script. was just manually restarting mplayer each time i came into the studio... http://www.youtube.com/watch?v=p_Ztwlc7Z_Q

then the mplayer lines was
Code:
mplayer -loop 0 -fs -shuffle /home/timelapse/Videos/*.mp4

thanks all.
 
  


Reply



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
Mplayer error. Can't play movies! nsk078 Linux - Software 9 04-05-2008 06:13 AM
FC6--Mplayer::Can't play all the movies--more plugins? knockout_artist Linux - Newbie 3 12-09-2007 02:31 AM
MPlayer & Kaffeine Will Not Play Movies Dakota42784 Linux - Software 2 11-18-2007 11:03 AM
mplayer won't play fullscreen Ren Linux - Software 4 10-28-2004 05:36 PM
mplayer wont play fullscreen mildseven Linux - Software 1 11-25-2003 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:36 AM.

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
Open Source Consulting | Domain Registration