#!/bin/bash

Lines=$(cat input.txt)
for p in $Lines
do
    unrar X $p*.rar
    cp $p*.mkv .
    cp $p*.mp4 .
done