Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
3 total  XML / RSS feed 

Burn ISO osx

Open Terminal and type:
hdiutil burn image.iso

How to Rip a DVD in Ubuntu Linux

First, install Handbrake:


sudo apt-get install nasm build-essential devscripts fakeroot
mkdir ~/tmp
cd tmp
wget http://apt.cerkinfo.be/pool/main/x264/x264_0.0.20050906-1.diff.gz
wget http://apt.cerkinfo.be/pool/main/x264/x264_0.0.20050906-1.dsc
wget http://apt.cerkinfo.be/pool/main/x264/x264_0.0.20050906.orig.tar.gz
dpkg-source -x x264_0.0.20050906-1.dsc
cd x264-0.0.20050906/
dpkg-buildpackage -rfakeroot
cd ..
sudo dpkg -i *.deb
sudo apt-get install debhelper libgtk2.0-dev jam nasm liba52-dev libavcodec-dev libdvdcss2-dev libdvdread3-dev libfaac-dev libmpeg2-4-dev liblame-dev libmp4v2-dev libogg-dev libsamplerate-dev libvorbis-dev libwxgtk2.6-dev libx264-dev libxvidcore-dev
wget http://handbrake.m0k.org/mirrors/m0k/HandBrake-0.6.2-src.tar.gz
tar -xzvf HandBrake-0.6.2-src.tar.gz
cd HandBrake-0.6.2
jam
sudo cp HBTest /usr/local/bin/handbrake

Next, follow the instructions from the Ubuntu Forums to compile and install MPlayer 2.0 from CVS.


Now we can actually rip the DVD:


cd ~/tmp
handbrake -e xvid -E ac3 -2 -S 1400 -i /dev/cdrom -o MOVIENAME.avi


Finally, split the DVD into two files:


mencoder -ovc copy -oac copy -endpos 700MB -o MOVIENAME.CD1.avi MOVIENAME.avi


The output will finish with something like:

Video stream: 1297.378 kbit/s  (162172 B/s)  size: 638610165 bytes  3937.851 secs  94414 frames

Note the number of seconds (in this case: 3937).


mencoder -ovc copy -oac copy -ss NUMER_OF_SECONDS -o MOVIENAME.CD2.avi MOVIENAME.avi


That's it!

Defeat Apple's Anti-DVD-Screenshot DRM

Apple disables the OS X screenshot capability while a DVD is playing, but there is a workaround.

Using terminal, type in this command.
screencapture -i ~/Desktop/filename.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 "filename.jpg" will appear on your desktop.

Found here with many more options:
http://highschoolblows.blogspot.com/2005/11/take-screenshot-of-dvd-player-in-os-x.html
« Newer Snippets
Older Snippets »
3 total  XML / RSS feed