<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	     xmlns:dc="http://purl.org/dc/elements/1.1/"
	   xmlns:atom="http://www.w3.org/2005/Atom"
	     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Command Line Backup for DVDs &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/2012/02/command-line-backup-for-dvds/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Sun, 20 Dec 2015 20:22:52 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>Command Line Backup for DVDs &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Command Line Backup for DVDs]]></title>
		<link>https://shkspr.mobi/blog/2012/02/command-line-backup-for-dvds/</link>
					<comments>https://shkspr.mobi/blog/2012/02/command-line-backup-for-dvds/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Wed, 22 Feb 2012 12:37:39 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[drm]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[ripping]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=5364</guid>

					<description><![CDATA[This is a quick tutorial to show you how to rip DVDs on a headless server.  That is; one which only has command line access.  The documentation for MakeMKV is available.  It&#039;s a bit sparse. It also doesn&#039;t have many of the features of the GUI.  For example, the GUI allows you to select which video, audio, and subtitles, you want to copy. So if you only want the original German director&#039;s…]]></description>
										<content:encoded><![CDATA[<p>This is a quick tutorial to show you how to rip DVDs on a headless server.  That is; one which only has command line access.</p>

<p><a href="http://www.makemkv.com/developers/usage.txt">The documentation for MakeMKV is available</a>.  It's a bit sparse. It also doesn't have many of the features of the GUI.</p>

<p>For example, the GUI allows you to select which video, audio, and subtitles, you want to copy. So if you only want the original German director's commentary, with the Swedish subtitles from the main feature, you can do that.
<img src="https://shkspr.mobi/blog/wp-content/uploads/2012/02/makemkv-gui.jpg" alt="makemkv gui" title="makemkv gui" width="312" height="324" class="aligncenter size-full wp-image-5365">
The command line is an "all or nothing affair".</p>

<h2 id="install-the-software"><a href="https://shkspr.mobi/blog/2012/02/command-line-backup-for-dvds/#install-the-software">Install The Software</a></h2>

<p>We're going to be using MakeMKV.  The <a href="http://www.makemkv.com/forum2/viewtopic.php?f=3&amp;t=224">latest version of the Linux software</a> can be found on their forum.</p>

<p>First, download both pieces of software.</p>

<pre>wget http://www.makemkv.com/download/makemkv-bin-1.7.6.tar.gz
wget http://www.makemkv.com/download/makemkv-oss-1.7.6.tar.gz</pre>

<p>Then, extract the files.</p>

<pre>tar -zxvf makemkv-bin-1.7.6.tar.gz
tar -zxvf makemkv-oss-1.7.6.tar.gz</pre>

<p>Get the tools you need to build the software</p>

<pre>sudo apt-get install build-essential libc6-dev libssl-dev libexpat1-dev libgl1-mesa-dev libqt4-dev</pre>

<p><strong>NOTE:</strong> You need GCC version 4.6 or higher.  If you're unsure which version you have, type:</p>

<pre>gcc --version</pre>

<p>If you need a more recent version, <a href="http://superuser.com/questions/310809/how-can-i-update-gcc-to-the-latest-version-in-ubuntu-10-04/394811#394811">follow these GCC upgrade instructions on StackOverflow</a>.</p>

<p>To build the software, first compile the Open Source part</p>

<pre>cd makemkv-oss-1.7.6
make -f makefile.linux
sudo make -f makefile.linux install</pre>

<p>Then install the binary part (you will have to agree to a licence).</p>

<pre>cd ../makemkv-bin-1.7.6
make -f makefile.linux
sudo make -f makefile.linux install</pre>

<p>All should be installed without error!</p>

<h2 id="running-for-the-first-time"><a href="https://shkspr.mobi/blog/2012/02/command-line-backup-for-dvds/#running-for-the-first-time">Running for the First Time</a></h2>

<p>Stick a DVD in your drive and run the following command</p>

<pre>makemkvcon -r info</pre>

<p>You should get a bunch of information about the drive and the program.</p>

<p>To see information about the disc, run</p>

<pre>makemkvcon -r info disc:0</pre>

<p>Assuming that your DVD drive is 0.</p>

<h2 id="how-to-rip"><a href="https://shkspr.mobi/blog/2012/02/command-line-backup-for-dvds/#how-to-rip">How To Rip</a></h2>

<p>This command rips all the movies on the disc which are longer than 3600 seconds (60 minutes).  This means that it should skip any special features etc.</p>

<p>You will need to create the folder you want to rip to first. The filename will be "title00.mkv" so make sure you're ripping to a unique folder each time.</p>

<pre>makemkvcon --minlength=3600 -r --decrypt --directio=true mkv disc:0 all /DVDs/MovieName/ ; eject -r</pre>

<p>The " ; eject -r" tells the system to eject the disc once ripped.</p>

<h2 id="what-cant-you-do"><a href="https://shkspr.mobi/blog/2012/02/command-line-backup-for-dvds/#what-cant-you-do">What Can't You Do?</a></h2>

<p>MakeMKVcon is missing the following functionality (hopefully being fixed by its creator)</p>

<ul>
    <li>Can't select a specific title.</li>
    <li>Can't extract specific audio files.</li>
    <li>Can't specify subtitles.</li>
    <li>Can't create folder.</li>
    <li>Can't set filename.</li>
</ul>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=5364&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2012/02/command-line-backup-for-dvds/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
