x264transcode works in _completely unattended mode_ and is designed to run in
the background. It rips ALL subtitles and ALL audio tracks and transcodes video
to x264, profile 3.1, crf mode, with b-frames. Video stream is cropped (cropping
uses twenty 200-frame samples across the entire length of the main feature).
Chapters work. The container is MKV.

Workflow:

inittab --> autorip.py +-> ripper.sh --> iso files --> picked up by monitor.sh
                       \-> crippler.sh --> mp3 files

		monitor.sh --> x264transcode.sh --> mkv file


You (may) need dbus-1-python (or dbus-python) and python-gobject2 (or
python-gobject) dependencies for autorip.py to work.

Note that "/org/freedesktop/Hal/devices/storage_model_SONY____CD_RW__CRX320E"
string is specific to MY computer, you can get the correct value by running:

	dbus-monitor --system

and inserting a dvd in the drive. Substitute whatever comes out of your
dbus-monitor into both locations in the python script.

You can invoke both monitoring scripts for ripping and transcoding by putting
them in /etc/inittab like this:

	10:35:respawn:/usr/bin/python /sbin/autorip.py >/dev/tty10 </dev/tty10
	11:35:respawn:/sbin/monitor.sh >/dev/tty11 </dev/tty11

or write a proper init script or crontab.

All code is licensed under GNU GPL version 3 or later.

Changelog:

EDIT: Added avidemux2_cli remuxing of video stream to work around buggy mencoder
muxer
EDIT: Fixed the "don't mess with the IFS" bug
EDIT: Fixed stuttering on b-frames (=0 now) and changed bitrate control to
crf=18, removed remuxing step - no longer required
EDIT: Fixed /etc/inittab entry for ripper.py
EDIT: Moved -nosound -noautosub in video encode line to the beginning, thanks
Epon!
EDIT: ARccOS note, minor cleanups in ripping script -- added -vo null -ao null
there
EDIT: Re-enabled b-frames (mplayer muxer is evil), added pullup,softskip,harddup
EDIT: Fixed bug in sp -> spa (possibly others) language selection code, thanks
bliss!
EDIT: Added workaround for mkvmerge 2.4.0 always muxing video as 25fps unless
--default-duration (in miliseconds) is specified
EDIT: Removed no-longer-available "bime" option from the h264 encode
EDIT: Added x264 capability check for mencoder (thanks bogolisk!)
EDIT: Added handling of non-subtitled DVDs
EDIT: Added -ofps in mencoder section (required for pulled-up encodes)
EDIT: Added 24.000fps (real), finally changed x264 threads to auto (doh!)
EDIT: Fixed that bizarre non-printing character in me=umh string
EDIT: Added the "-noautosub" bug warning.
EDIT: Added (disabled by default) upsampling option. 720p, crf 20, profile 4.0


14/09/2009: Merged changes/fixes from SevenOf29. Last version distributed inline
on the forum.
	- non-subbed rips work
	- support for multiple episodes added
	- large amount of bugfixes
	- Licensing change (from PD -> GPLv3+)
	- First numbered release: v0.1.0
