<p>This is an update on my previous episode <a href="https://hackerpublicradio.org/eps.php?id=3179"><em>hpr3179 :: MakeMKV to back up media</em></a>.</p>
<p>In the past month, MakeMKV.com has been updated to include Raspberry Pi support.</p>
<h3 id="sources">Sources:</h3>
<ul>
<li>MakeMKV on Linux post<br />
<a href="https://forum.makemkv.com/forum/viewtopic.php?f=3&amp;t=224" class="uri">https://forum.makemkv.com/forum/viewtopic.php?f=3&amp;t=224</a></li>
<li>MakeMKV on ARM release<br />
<a href="https://forum.makemkv.com/forum/viewtopic.php?p=105912#p105912" class="uri">https://forum.makemkv.com/forum/viewtopic.php?p=105912#p105912</a></li>
</ul>
<p>It was a very uneventful "It's here"</p>
<p><em>MakeMV on Raspberry Pi (ARM)</em><br />
<a href="https://hackerpublicradio.org/eps/hpr3294/Picture1.png"><img src="https://hackerpublicradio.org/eps/hpr3294/Picture1_thumbnail.png" alt="MakeMV on Raspberry Pi (ARM)" /></a> <br/><small><small><em>Click the thumbnail to see the full-sized image</em></small></small></p>
<pre><code>wget https://www.makemkv.com/download/makemkv-bin-1.16.1.tar.gz
wget https://www.makemkv.com/download/makemkv-oss-1.16.1.tar.gz</code></pre>
<p>Unpack both packages and starting from source package and do the following steps:</p>
<p>For makemkv-oss package:</p>
<pre><code>./configure
make
sudo make install</code></pre>
<p>For makemkv-bin package:</p>
<pre><code>make
sudo make install</code></pre>
<p>Install ccextractor and necessary packages</p>
<pre><code>sudo apt install libtesseract-dev autoconf sysconftool

git clone https://github.com/CCExtractor/ccextractor.git
cd ccextractor/linux/
./build</code></pre>
<p>nnn: command line file browser with vim-like keybindings</p>
<p><a href="https://github.com/jarun/nnn" class="uri">https://github.com/jarun/nnn</a></p>
<p>Script to rip TV episodes</p>
<p>makemkv.tv.sh</p>
<pre><code>#!/bin/bash
#echo &quot;Series?&quot;
series=Battlestar
echo &quot;Series: $series&quot;
echo &quot;What Season is this?&quot;
read season
echo &quot;Season: $season&quot;
echo &quot;Which disc # is this?&quot;
read disknum
echo &quot;This is disk #$disknum&quot;
echo &quot;Starting with which episode?&quot;
read episode

eject -x20
mkdir &quot;&quot;disc.&quot;$disknum&quot;
makemkvcon mkv --progress=-same --minlength=2100 disc:0 all &quot;&quot;disc.&quot;$disknum&quot;
cd &quot;&quot;disc.&quot;$disknum&quot;

#episode=1
episode=$episode
for track in *.mkv
do
  mv $track $series&quot;_S&quot;$season&quot;_D&quot;$disknum&quot;_E&quot;$episode.mkv
  episode=$((episode+1))
done

cd ..</code></pre>
<p>Script to convert multiple episodes</p>
<p>mkv2mkv_mult.sh</p>
<pre><code>#!/bin/bash
mkdir encoded
for i in *.mkv
do
  HandBrakeCLI --first-subtitle --subtitle-default=none -i $i -o &quot;encoded&quot;/&quot;`basename -s .mkv $i`.mkv&quot;
done</code></pre>
<p>Before and after the rename loop</p>
<p><em>Before rename</em><br />
<img src="https://hackerpublicradio.org/eps/hpr3294/Picture2.png" alt="Before rename" /></p>
<p><em>After rename</em><br />
<img src="https://hackerpublicradio.org/eps/hpr3294/Picture3.png" alt="After rename" /></p>
