LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-18-2011, 11:49 AM   #1
fmr
Member
 
Registered: Oct 2009
Posts: 32

Rep: Reputation: 0
Lightbulb HOWTO: Play a movie on a projector without dragging over a window


Hi, I hope this is useful to someone!

Scenario:

Two of my friends and I do sound, lighting and video projection for functions such as prize givings, concerts, etc. This time, we did a fashion show at a school. For this we had to play videos (things like interviews and movie clips) on a projector. For casual functions, it's OK to use a laptop with windows, connect it to the projector, "extend your desktop" to the projector, double click the movie, drag it over, and maximize it. This was however a formal occasion and many different videos and sound clips had to be played in quick succession. Also, due to decor and lighting, the projector was not visible from the control area at all times.

Solution

I ...
  • used an oldish PC running OpenSuse 11.3 ...
  • ... and installed MPlayer and all the video codecs I could find in YaST.
  • hooked up my PC to a monitor, and to a VGA splitter, and the VGA splitter to another monitor and the projector, so that I could see what happens on the projector at all times.
  • configured my desktop for "dual screen" or "Xinerama".
  • made my desktop (Gnome) background black, so that the projector appears to be turned off.
  • opened a terminal, and started experimenting with MPlayer's command line options. After much trial, error and "man mplayer", this worked for me:
    Code:
    mplayer -v -fs -zoom -xy 1024 -lavdopts threads=2 -screenw 1024 -screenh 768 -double -osdlevel 0 -xineramascreen 1 [video_filename]

Results

The projector goes from black to video and back to black without problems. This looks really professional, and your don't even need the mouse.

Tips
  • Use "man mplayer" to find out what all of these options do.
  • Write a script with the necessary commands, replacing [filename] with "$@" (including quotes). Give it a simple name such as "m" (excluding quotes of course :P ). Then use
    Code:
    m [filename] [other options]
  • Change the values for resolution, screen size, and screen number to fit your needs.
  • Write a script that displays a menu to choose the video to play.

Enjoy!
 
Old 03-20-2011, 02:46 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

Thanks for sharing that. I'm sure it'll come in handy.

Kind regards,

Eric
 
  


Reply

Tags
dual monitor, mplayer, projector, video, xinerama



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
Dvd's do not play in VLC, xine, mplayer, or movie play (Karmic) Nizzok Linux - Software 2 01-02-2010 06:12 AM
not able to disable "show window content while dragging" sanjeevsk Linux - Software 1 10-31-2007 04:57 AM
blank window when displaying movies through video-projector guillaume31 Linux - General 1 07-10-2007 04:21 PM
Dont show window contents whilst dragging in GNOME dangerousdave Linux - Newbie 2 08-25-2005 04:08 PM
window dragging exigent Linux - General 2 09-21-2002 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:17 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