Taking an OS X Screenshot When DVD Player Is Running

From Stack Overflow
Jump to: navigation, search

From http://highschoolblows.blogspot.com/2005/11/take-screenshot-of-dvd-player-in-os-x.html

Take a Screenshot of DVD Player in OS X

Ever since OS X came out, Apple made sure that it would not be possible to take a screenshot of a DVD. When DVD Player is open, you can't capture the screen with Grab. Command-Shift-3 and Command-Shift-4 both do not work when DVD Player is open. This makes no sense at all (If you own the DVD, you should have every right to do whatever you want with it! But that's another story). However, Apple forgot one thing...

1) Put your DVD in your computer and open DVD Player (Applications -> DVD Player) if it does not open automatically. Go to Video -> Maximum Size, or hit Command-3. Fast forward to the frame you want to capture, or select the scene to start at.

2) Open the Terminal (Applications -> Utilities -> Terminal). Type this, or copy / paste it right in the Terminal:

screencapture -i ~/Desktop/dvd.jpg

Your mouse should turn into crosshairs. Now hit the space bar. Your mouse should now be a camera. Click the window the DVD is playing in. A file called "dvd.jpg" will appear on your desktop.

3) Sweet! If you want, you can go into Photoshop or another image editing application and trim off the window part of the capture.

More Screencapture Options

Feel free to adjust the code to your likings. Here are all the options for the Unix command 'screencapture': usage: screencapture [-icmwsWx] [files] -i capture screen interactively, by selection or window control key - causes screen shot to go to clipboard space key - toggle between mouse selection and window selection modes escape key - cancels interactive screen shot -c force screen capture to go to the clipboard -m only capture the main monitor, undefined if -i is set -w only allow window selection mode -s only allow mouse selection mode -W start interaction in window selection mode -x do not play sounds -S in window capture mode, capture the screen not the window -C capture the cursor as well as the screen. only in non-interactive modes -t image format to create, default is png files where to save the screen capture, 1 file per screen

You can easily set the file format by replacing '.jpg' with any other image format (png, gif, etc).


Why does this work? Did Apple simply forget about screencapture and taking screenshots with Unix commands? Or maybe they thought that it wasn't worth the hassle to fix? Perhaps something else? What do you think?